:root {
  --green: #da09ac;
  --green-dark: #da09ac;
  --green-light: #e8f8ea;
  --green-mid: #c8efcb;
  --red: #e02020;
  --orange: #f57c00;
  --yellow: #ffc107;
  --blue: #1a73e8;
  --text: #1a1a1a;
  --text2: #4a4a4a;
  --text3: #9e9e9e;
  --border: #e8e8e8;
  --bg: #f5f5f5;
  --white: #ffffff;
  --card-shadow: 0 1px 4px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.04);
  --nav-h: 56px;
  --bot-h: 60px;
  --r: 12px;
  --r2: 16px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
html {
  font-size: 14px;
  scroll-behavior: smooth;
}
body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  max-width: 420px;
  margin: 0 auto;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── PAGE SYSTEM ── */
.page {
  display: none;
  min-height: 100vh;
  animation: fadeUp 0.25s ease;
}
.page.active {
  display: block;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #1a1a1a;
  color: white;
  padding: 11px 20px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── SCROLL AREA ── */
.scroll-area {
  padding-bottom: calc(var(--bot-h) + 16px);
}

/* ── TOP NAV ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.topbar-logo {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.3px;
}
.topbar-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
}
.topbar-back:active {
  background: var(--border);
}
.topbar-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.topbar-action {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text2);
  font-size: 1.05rem;
  transition: background 0.15s;
}
.topbar-action:active {
  background: var(--border);
}

/* ── BOTTOM NAV ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 420px;
  z-index: 100;
  background: var(--white);
  border-top: 1px solid var(--border);
  height: var(--bot-h);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 4px 4px;
}
.bnav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text3);
  cursor: pointer;
  padding: 6px 12px;
  flex: 1;
  transition: color 0.15s;
}
.bnav-btn i {
  font-size: 1.2rem;
}
.bnav-btn span {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}
.bnav-btn.active {
  color: var(--green);
}
.bnav-logout {
  color: #e02020 !important;
}

/* ── CARD ── */
.card {
  background: var(--white);
  border-radius: var(--r2);
  box-shadow: var(--card-shadow);
}

/* ────────────────────────────────
   PAGE 1 · LANDING
──────────────────────────────── */
#pg-landing {
  background: var(--white);
}

.land-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 48px 20px 0;
}
.land-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green);
}
.land-login-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green);
  cursor: pointer;
}

.land-hero {
  padding: 32px 20px 24px;
}
.land-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-light);
  color: var(--green-dark);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.land-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.land-title span {
  color: var(--green);
}
.land-sub {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.65;
  margin-bottom: 28px;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green);
  color: white;
  border: none;
  padding: 15px 24px;
  border-radius: var(--r);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: "Plus Jakarta Sans", sans-serif;
  transition: background 0.15s;
  width: 100%;
}
.btn-primary:active {
  background: var(--green-dark);
}

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--white);
  color: var(--text);
  border: 1.5px solid var(--border);
  padding: 13px 24px;
  border-radius: var(--r);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: "Plus Jakarta Sans", sans-serif;
  transition: background 0.15s;
  width: 100%;
  margin-top: 10px;
}
.btn-secondary:active {
  background: var(--bg);
}

.land-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 24px 0 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
}
.land-stat {
  padding: 16px 8px;
  text-align: center;
}
.land-stat + .land-stat {
  border-left: 1px solid var(--border);
}
.land-stat-n {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--green);
}
.land-stat-l {
  font-size: 0.62rem;
  color: var(--text3);
  margin-top: 3px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.land-divider {
  height: 8px;
  background: var(--bg);
  margin-top: 24px;
}

.land-section {
  padding: 24px 20px;
}
.land-section-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
}

.about-text {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.7;
  padding: 16px;
  background: var(--green-light);
  border-radius: var(--r);
  border-left: 3px solid var(--green);
}
.about-text strong {
  color: var(--green-dark);
}

.step-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.step-item:last-child {
  border: none;
  padding-bottom: 0;
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
}
.step-body {
}
.step-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}
.step-desc {
  font-size: 0.78rem;
  color: var(--text2);
  line-height: 1.5;
}
.step-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--green-light);
  color: var(--green-dark);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 700;
  margin-top: 7px;
}

/* ────────────────────────────────
   PAGE 2 · LOGIN
──────────────────────────────── */
#pg-login {
  background: var(--white);
}

.login-top {
  background: var(--green);
  padding: 56px 24px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.login-top::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 200%;
  height: 80px;
  background: var(--white);
  border-radius: 50%;
}
.login-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 2rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
}
.login-brand {
  font-size: 1.6rem;
  font-weight: 800;
  color: white;
  margin-bottom: 4px;
}
.login-tagline {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

.login-body {
  padding: 32px 20px 40px;
}
.login-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.login-sub {
  font-size: 0.82rem;
  color: var(--text3);
  margin-bottom: 24px;
}

.google-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 10px;
}
.google-btn:active {
  background: var(--bg);
}
.g-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 800;
}
.g-info {
  flex: 1;
}
.g-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}
.g-email {
  font-size: 0.7rem;
  color: var(--text3);
  margin-top: 1px;
}
.g-check {
  color: var(--green);
  font-size: 1.1rem;
}

.or-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
}
.or-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.or-text {
  font-size: 0.72rem;
  color: var(--text3);
  font-weight: 600;
}

.login-tos {
  font-size: 0.7rem;
  color: var(--text3);
  text-align: center;
  margin-top: 20px;
  line-height: 1.6;
}
.login-tos a {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}

/* ────────────────────────────────
   PAGE 3 · TUGAS LIST
──────────────────────────────── */
#pg-tugas {
  background: var(--bg);
}

.tugas-header {
  background: var(--green);
  padding: 20px 16px 28px;
  position: relative;
  overflow: hidden;
}
.tugas-header::after {
  content: "";
  position: absolute;
  bottom: -24px;
  left: 0;
  right: 0;
  height: 48px;
  background: var(--bg);
  border-radius: 24px 24px 0 0;
}
.th-greeting {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  margin-bottom: 2px;
}
.th-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
}
.th-subtitle {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 2px;
}

.task-list {
  padding: 8px 12px;
}

.task-card {
  background: var(--white);
  border-radius: var(--r2);
  box-shadow: var(--card-shadow);
  margin-bottom: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s;
}
.task-card:active {
  transform: scale(0.99);
}

.task-card-header {
  padding: 14px 14px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.task-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.task-icon.green {
  background: var(--green-light);
}
.task-icon.orange {
  background: #fff3e0;
}

.task-meta {
  flex: 1;
}
.task-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
}
.task-chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.chip {
  padding: 2px 9px;
  border-radius: 100px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.chip-green {
  background: var(--green-light);
  color: var(--green-dark);
}
.chip-blue {
  background: #e3f2fd;
  color: #1565c0;
}
.chip-orange {
  background: #fff3e0;
  color: #e65100;
}
.chip-red {
  background: #ffebee;
  color: #c62828;
}

.task-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0 0;
}

.task-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 10px 14px;
}
.ts {
  text-align: center;
}
.ts + .ts {
  border-left: 1px solid var(--border);
}
.ts-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
}
.ts-lbl {
  font-size: 0.58rem;
  color: var(--text3);
  margin-top: 1px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 600;
}
.ts-val.green {
  color: var(--green);
}
.ts-val.orange {
  color: var(--orange);
}

.task-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 14px;
}
.quota-info {
  font-size: 0.7rem;
  color: var(--text3);
}
.quota-bar {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  width: 72px;
  margin-top: 4px;
}
.quota-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--green);
}
.quota-fill.orange {
  background: var(--orange);
}

.btn-do {
  background: var(--green);
  color: white;
  border: none;
  padding: 9px 18px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  font-family: "Plus Jakarta Sans", sans-serif;
  transition: background 0.15s;
}
.btn-do:active {
  background: var(--green-dark);
}
.btn-do.orange {
  background: var(--orange);
}
.btn-do.orange:active {
  background: #e65100;
}

.empty-state {
  text-align: center;
  padding: 32px 24px;
}
.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.empty-text {
  font-size: 0.82rem;
  color: var(--text3);
  line-height: 1.6;
}

/* ────────────────────────────────
   PAGE 4 · DASHBOARD
──────────────────────────────── */
#pg-dashboard {
  background: var(--bg);
}

.dash-hero {
  background: var(--green);
  padding: 20px 16px 56px;
  position: relative;
  overflow: hidden;
}
.dash-hero::after {
  content: "";
  position: absolute;
  bottom: -28px;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--bg);
  border-radius: 28px 28px 0 0;
}
.dash-hero-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dash-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}
.dash-name-block {
  flex: 1;
}
.dash-greeting {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.8);
}
.dash-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: white;
}
.dash-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.62rem;
  font-weight: 700;
  margin-top: 4px;
}
.dash-status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7fe280;
  animation: blink 1.5s infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.dash-saldo-card {
  margin: 0 12px;
  background: white;
  border-radius: var(--r2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 18px;
  position: relative;
  z-index: 1;
}
.saldo-label {
  font-size: 0.7rem;
  color: var(--text3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}
.saldo-val {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}
.saldo-sub {
  font-size: 0.72rem;
  color: var(--text3);
  margin-top: 2px;
}

.saldo-divider {
  height: 1px;
  background: var(--border);
  margin: 14px 0;
}
.saldo-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.ss {
  text-align: center;
}
.ss + .ss {
  border-left: 1px solid var(--border);
}
.ss-val {
  font-size: 1.1rem;
  font-weight: 800;
}
.ss-val.green {
  color: var(--green);
}
.ss-val.red {
  color: var(--red);
}
.ss-val.yellow {
  color: var(--yellow);
}
.ss-lbl {
  font-size: 0.6rem;
  color: var(--text3);
  margin-top: 2px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.dash-content {
  padding: 12px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.section-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text);
}
.section-link {
  font-size: 0.75rem;
  color: var(--green);
  font-weight: 700;
  cursor: pointer;
}

.payment-card {
  background: var(--white);
  border-radius: var(--r2);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  margin-bottom: 10px;
}
.payment-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border-bottom: 1px solid var(--border);
}
.payment-item:last-child {
  border: none;
}
.pi-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.pi-body {
  flex: 1;
}
.pi-type {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.pi-date {
  font-size: 0.7rem;
  color: var(--text3);
  margin-top: 1px;
}
.pi-amount {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green);
}

.referral-card {
  background: var(--white);
  border-radius: var(--r2);
  box-shadow: var(--card-shadow);
  padding: 16px;
  margin-bottom: 10px;
}
.ref-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.ref-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
}
.ref-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}
.ref-sub {
  font-size: 0.72rem;
  color: var(--text3);
  margin-top: 1px;
}

.ref-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.ref-stat-box {
  background: var(--bg);
  border-radius: var(--r);
  padding: 12px;
  text-align: center;
}
.rsb-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--green);
}
.rsb-lbl {
  font-size: 0.65rem;
  color: var(--text3);
  font-weight: 600;
  margin-top: 2px;
  text-transform: uppercase;
}

.bonus-pill {
  background: #fff3e0;
  border-radius: var(--r);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.bp-pct {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--orange);
}
.bp-text {
  font-size: 0.75rem;
  color: var(--text2);
  line-height: 1.4;
}

.ref-link-box {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.ref-link-text {
  flex: 1;
  padding: 10px 12px;
  font-size: 0.7rem;
  color: var(--text2);
  word-break: break-all;
  font-family: "Plus Jakarta Sans", sans-serif;
}
.ref-copy-btn {
  padding: 10px 16px;
  background: var(--green);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: background 0.15s;
}
.ref-copy-btn:active {
  background: var(--green-dark);
}

/* ────────────────────────────────
   PAGE 5-6 · DETAIL TUGAS
──────────────────────────────── */
.detail-hero-card {
  margin: 12px 12px 0;
  background: var(--white);
  border-radius: var(--r2);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.dhc-top {
  padding: 16px;
  background: var(--green-light);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid var(--green-mid);
}
.dhc-top.orange {
  background: #fff3e0;
  border-color: #ffcc80;
}
.dhc-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex-shrink: 0;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.dhc-icon.orange {
  background: var(--orange);
}
.dhc-info h2 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 5px;
}
.reward-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--green);
  color: white;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
}
.reward-badge.orange {
  background: var(--orange);
}

.dhc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 12px 14px;
}
.dhs {
  text-align: center;
}
.dhs + .dhs {
  border-left: 1px solid var(--border);
}
.dhs-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
}
.dhs-val.green {
  color: var(--green);
}
.dhs-val.orange {
  color: var(--orange);
}
.dhs-lbl {
  font-size: 0.58rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 600;
  margin-top: 2px;
}

.alert-box {
  margin: 10px 12px;
  background: #fffde7;
  border: 1px solid #fff176;
  border-radius: var(--r);
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.alert-box i {
  color: var(--yellow);
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 0.85rem;
}
.alert-box p {
  font-size: 0.75rem;
  color: var(--text2);
  line-height: 1.5;
}

.instr-card {
  margin: 0 12px 10px;
  background: var(--white);
  border-radius: var(--r2);
  box-shadow: var(--card-shadow);
  padding: 16px;
}
.instr-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.instr-label::before {
  content: "";
  width: 3px;
  height: 12px;
  background: var(--green);
  border-radius: 2px;
}
.instr-text {
  font-size: 0.83rem;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 8px;
}
.instr-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.instr-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-light);
  color: var(--green-dark);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  border: 1px solid var(--green-mid);
  transition: background 0.15s;
}
.instr-download:active {
  background: var(--green-mid);
}
.instr-quota {
  font-size: 0.7rem;
  color: var(--text3);
  margin-top: 10px;
}

.form-card {
  margin: 0 12px 10px;
  background: var(--white);
  border-radius: var(--r2);
  box-shadow: var(--card-shadow);
  padding: 16px;
}
.form-card-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.form-card-label::before {
  content: "";
  width: 3px;
  height: 12px;
  background: var(--green);
  border-radius: 2px;
}

.fs-question {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.fs-hint {
  font-size: 0.73rem;
  color: var(--text3);
  margin-bottom: 12px;
  line-height: 1.5;
}

.cb-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.cb-item.checked {
  border-color: var(--green);
  background: var(--green-light);
}
.cb-box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  flex-shrink: 0;
  border: 2px solid var(--border);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.cb-item.checked .cb-box {
  background: var(--green);
  border-color: var(--green);
}
.cb-box i {
  font-size: 0.6rem;
  color: white;
  opacity: 0;
}
.cb-item.checked .cb-box i {
  opacity: 1;
}
.cb-emoji {
  font-size: 1.05rem;
}
.cb-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.form-group {
  margin-bottom: 14px;
}
.form-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text2);
  margin-bottom: 7px;
  display: block;
}
.form-label .req {
  color: var(--red);
  margin-left: 2px;
}
.form-label .opt {
  color: var(--text3);
  font-weight: 400;
  font-size: 0.7rem;
}
.form-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  color: var(--text);
  font-size: 0.85rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  outline: none;
  transition: border-color 0.15s;
}
.form-input::placeholder {
  color: var(--text3);
}
.form-input:focus {
  border-color: var(--green);
  background: white;
}
textarea.form-input {
  resize: none;
  min-height: 88px;
  line-height: 1.5;
}

.btn-submit {
  margin: 4px 12px 24px;
  width: calc(100% - 24px);
  background: var(--green);
  color: white;
  border: none;
  padding: 15px;
  border-radius: var(--r);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-submit:active {
  background: var(--green-dark);
}
.btn-submit.orange {
  background: var(--orange);
}
.btn-submit.orange:active {
  background: #e65100;
}

/* ────────────────────────────────
   PAGE 7 · EDIT PROFIL
──────────────────────────────── */
#pg-editprofil {
  background: var(--bg);
}

.ep-hero {
  background: var(--green);
  padding: 24px 20px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ep-hero::after {
  content: "";
  position: absolute;
  bottom: -28px;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--bg);
  border-radius: 28px 28px 0 0;
}
.ep-ring {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: rgba(255, 255, 255, 0.25);
  border: 3px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  font-weight: 800;
  color: white;
  position: relative;
  z-index: 1;
}
.ep-cam {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: white;
  color: var(--green);
  border: 2px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  cursor: pointer;
}
.ep-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
  position: relative;
  z-index: 1;
}
.ep-email {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 2px;
  position: relative;
  z-index: 1;
}

.ep-form-wrap {
  margin: 0 12px;
  position: relative;
  z-index: 1;
}

.ep-section {
  background: var(--white);
  border-radius: var(--r2);
  box-shadow: var(--card-shadow);
  margin-bottom: 10px;
  overflow: hidden;
}
.ep-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 16px 0;
}
.ep-field {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.ep-field:last-child {
  border: none;
}
.ep-field-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}
.ep-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.9rem;
  color: var(--text);
  font-family: "Plus Jakarta Sans", sans-serif;
  padding: 0;
}
.ep-input::placeholder {
  color: var(--text3);
}
.ep-select-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.ep-select-col {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.ep-select-col:first-child {
  border-right: 1px solid var(--border);
}
.ep-select {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.9rem;
  color: var(--text);
  font-family: "Plus Jakarta Sans", sans-serif;
  appearance: none;
  cursor: pointer;
}

.ep-sosmed-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.ep-sosmed-item:last-child {
  border: none;
}
.ep-sosmed-icon {
  font-size: 1.2rem;
  width: 24px;
  flex-shrink: 0;
  text-align: center;
}
.ep-sosmed-platform {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
  width: 64px;
  flex-shrink: 0;
}
.ep-sosmed-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.83rem;
  color: var(--text);
  font-family: "Plus Jakarta Sans", sans-serif;
}
.ep-sosmed-input::placeholder {
  color: var(--text3);
}
.ep-sosmed-save {
  padding: 6px 12px;
  background: var(--green-light);
  color: var(--green-dark);
  border: none;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.btn-save {
  width: 100%;
  margin-top: 4px;
  margin-bottom: 32px;
  background: var(--green);
  color: white;
  border: none;
  padding: 15px;
  border-radius: var(--r);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s;
}
.btn-save:active {
  background: var(--green-dark);
}

/* ── utils ── */
.mt8 {
  margin-top: 8px;
}
.mt12 {
  margin-top: 12px;
}
.mt16 {
  margin-top: 16px;
}
.ph12 {
  padding: 0 12px;
}

/* tambahan untuk list tugas */
/* =========================================
   COLOR SYSTEM (AUTO SYNC)
========================================= */

/* DEFAULT (fallback) */
.task-card {
  --c: var(--green);
  --c-light: var(--green-light);
  --c-dark: var(--green-dark);
}

/* VARIANTS */
.task-card.blue {
  --c: #da09ac;
  /* --c: #1a73e8; */
  --c-light: #e3f2fd;
  --c-dark: #1565c0;
}
.task-card.purple {
  --c: #da09ac;
  /* --c: #8e24aa; */
  --c-light: #f3e5f5;
  --c-dark: #6a1b9a;
}
.task-card.orange {
  --c: #da09ac;
  /* --c: #f57c00; */
  --c-light: #fff3e0;
  --c-dark: #e65100;
}
.task-card.red {
  --c: #da09ac;
  /* --c: #e02020; */
  --c-light: #ffebee;
  --c-dark: #b71c1c;
}
.task-card.pink {
  --c: #da09ac;
  /* --c: #ec407a; */
  --c-light: #fce4ec;
  --c-dark: #c2185b;
}
.task-card.teal {
  --c: #da09ac;
  /* --c: #00897b; */
  --c-light: #e0f2f1;
  --c-dark: #00695c;
}
.task-card.brown {
  --c: #da09ac;
  /* --c: #6d4c41; */
  --c-light: #efebe9;
  --c-dark: #4e342e;
}
.task-card.gray {
  --c: #da09ac;
  /* --c: #607d8b; */
  --c-light: #eceff1;
  --c-dark: #37474f;
}
.task-card.yellow {
  --c: #da09ac;
  /* --c: #ffc107; */
  --c-light: #fff8e1;
  --c-dark: #ff8f00;
}
.task-card.indigo {
  --c: #da09ac;
  /* --c: #3f51b5; */
  --c-light: #e8eaf6;
  --c-dark: #283593;
}

/* APPLY KE SEMUA ELEMEN */
.task-card .task-icon {
  background: var(--c-light);
}

.task-card .ts-val.main {
  color: var(--c);
}

.task-card .btn-do {
  background: var(--c);
}

.task-card .btn-do:active {
  background: var(--c-dark);
}

.task-card .quota-fill {
  background: var(--c);
}

/* CHIP AUTO */
.task-card .chip-main {
  background: var(--c-light);
  color: var(--c-dark);
}
/* end tambahan untuk list tugas */

.task-card.gold {
  --c: #d4af37;
  --c-light: #fff8e1;
  --c-dark: #b8962e;
}


/* =====================================================================
   CLEAN SKIN — tampilan bersih: latar abu muda, kartu putih berbayang,
   judul serif, tombol hitam, aksen magenta (--green) dipakai seperlunya.
   Semua struktur HTML tetap; blok ini menimpa gaya di atas.
   ===================================================================== */
:root {
  --ink: #111318;
  --bg: #f3f4f6;
  --text: #111318;
  --text2: #4b5160;
  --text3: #9aa0ac;
  --border: #eceef1;
  --green-light: #f3f4f6;
  --green-mid: #e7e9ed;
  --r: 14px;
  --r2: 22px;
  --card-shadow: 0 12px 30px -10px rgba(17, 19, 24, 0.12), 0 2px 6px rgba(17, 19, 24, 0.05);
  --shadow-sm: 0 4px 12px -2px rgba(17, 19, 24, 0.1), 0 1px 3px rgba(17, 19, 24, 0.06);
  --shadow-lg: 0 18px 40px -10px rgba(17, 19, 24, 0.28);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --bot-h: 84px;
}
body { background: var(--bg); }
#pg-landing, #pg-login, #pg-tugas, #pg-dashboard, #pg-editprofil { background: var(--bg); }
#pg-landing > div { background: transparent !important; }
.scroll-area { padding-bottom: calc(var(--bot-h) + 20px); }

/* label kecil kapital ala "MENU / HELP / OVERDUE" */
.section-title, .instr-label, .form-card-label, .ep-section-title, .saldo-label, .ep-field-label {
  font-size: 0.66rem; font-weight: 700; color: var(--text3);
  text-transform: uppercase; letter-spacing: 1.2px;
}
.instr-label::before, .form-card-label::before { display: none; }
.ep-section-title { color: var(--text3); padding-top: 18px; }

/* top bar */
.topbar { background: rgba(243, 244, 246, 0.9); backdrop-filter: blur(10px); border: 0; }
.topbar-back, .topbar-action { background: #fff; box-shadow: var(--shadow-sm); color: var(--ink); }
.topbar-title { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; }
.topbar-logo, .land-logo { font-family: var(--serif); color: var(--ink); }

/* kartu: putih, sudut besar, bayang lembut */
.card, .task-card, .payment-card, .referral-card, .detail-hero-card, .instr-card,
.form-card, .ep-section, .dash-saldo-card, .land-stats-row {
  border: 0; border-radius: var(--r2); box-shadow: var(--card-shadow); background: #fff;
}
.task-card { margin-bottom: 14px; }

/* tombol: hitam pill */
.btn-primary, .btn-submit, .btn-save, .btn-submit.orange,
.task-card .btn-do, .task-card .btn-do.orange, .btn-do, .btn-do.orange {
  background: var(--ink); color: #fff; border-radius: 999px; box-shadow: var(--shadow-lg);
}
.btn-primary:active, .btn-submit:active, .btn-save:active, .btn-do:active,
.task-card .btn-do:active, .btn-submit.orange:active { background: #000; transform: scale(0.98); }
.btn-do, .task-card .btn-do { padding: 10px 18px; box-shadow: 0 8px 18px -6px rgba(17, 19, 24, 0.4); }
.btn-primary i, .btn-submit i, .btn-save i { color: var(--green); }
.btn-secondary { background: #fff; border: 0; border-radius: 999px; box-shadow: var(--shadow-sm); }
.btn-submit { margin-top: 8px; width: calc(100% - 24px); }

/* chip netral */
.chip, .chip-green, .chip-blue, .chip-orange, .chip-red, .task-card .chip-main {
  background: #f3f4f6; color: var(--text2); font-weight: 600;
}
.chip-red { color: #d64550; background: #fdecee; }

/* ikon tugas: kotak abu netral */
.task-icon, .task-icon.green, .task-icon.orange, .task-card .task-icon,
.dhc-icon, .dhc-icon.orange, .pi-icon, .ref-icon {
  background: #f3f4f6; color: var(--ink); font-size: 1.1rem; border-radius: 14px;
}
.dhc-icon { width: 48px; height: 48px; }
.task-icon i, .dhc-icon i, .ref-icon i { color: var(--ink); }
.ref-icon { color: var(--ink); }
.task-name { font-size: 0.95rem; }
.ts-val, .dhs-val { font-variant-numeric: tabular-nums; }
.ts-val.green, .ts-val.orange, .ts-val.main, .dhs-val.green, .dhs-val.orange { color: var(--green); }
.task-divider { background: none; border-top: 1px dashed var(--border); }
.quota-bar { height: 4px; width: 80px; background: #eceef1; }
.quota-fill, .quota-fill.orange, .task-card .quota-fill { background: var(--green); }

/* header halaman: tanpa blok warna, judul serif */
.tugas-header, .dash-hero, .ep-hero { background: transparent; overflow: visible; }
.tugas-header::after, .dash-hero::after, .ep-hero::after { display: none; }
.tugas-header { padding: 26px 20px 10px; }
.th-greeting { color: var(--text3); text-transform: uppercase; letter-spacing: 1.2px; font-size: 0.66rem; font-weight: 700; }
.th-title { font-family: var(--serif); font-size: 2.1rem; font-weight: 500; color: var(--ink); letter-spacing: -0.5px; margin: 4px 0 2px; }
.th-subtitle { color: var(--text3); }
.task-list { padding: 8px 14px; }

/* dashboard */
.dash-hero { padding: 24px 16px 22px; }
.dash-avatar { background: var(--ink); color: #fff; border: 0; box-shadow: var(--shadow-sm); }
.dash-greeting { color: var(--text3); text-transform: uppercase; letter-spacing: 1.2px; font-size: 0.62rem; font-weight: 700; }
.dash-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; color: var(--ink); }
.dash-hero .topbar-action { color: var(--ink) !important; }
.dash-status { background: #fff; color: var(--text2); box-shadow: var(--shadow-sm); margin-top: 14px; }
.dash-status::before { background: #19b37f; }
.dash-saldo-card { margin: 0 14px !important; padding: 22px 20px; }
.saldo-val { font-family: var(--serif); font-size: 2.3rem; font-weight: 500; letter-spacing: -1px; margin-top: 4px; }
.saldo-divider { background: none; border-top: 1px dashed var(--border); }
.ss-val.green { color: #12926a; } .ss-val.yellow { color: #d99a00; } .ss-val.red { color: #d64550; }
.dash-content { padding: 14px; }
.section-header { margin: 18px 4px 10px; }
.pi-amount { color: #12926a; }
.ref-stat-box, .bonus-pill { background: #f6f7f9; }
.rsb-val { color: var(--ink); font-family: var(--serif); font-weight: 500; }
.bp-pct { color: var(--green); font-family: var(--serif); }
.ref-link-box { border: 0; background: #f6f7f9; border-radius: 999px; padding: 4px; align-items: center; }
.ref-link-text { padding: 8px 12px; }
.ref-copy-btn { background: var(--ink); border-radius: 50%; width: 38px; height: 38px; padding: 0; box-shadow: var(--shadow-sm); }

/* detail tugas */
.detail-hero-card { margin: 12px 14px 0; }
.dhc-top, .dhc-top.orange { background: #fff; border-bottom: 1px dashed var(--border); padding: 18px; }
.dhc-info h2 { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }
.reward-badge, .reward-badge.orange { background: #f3f4f6; color: var(--ink); }
.reward-badge i { color: var(--green); }
.alert-box { margin: 12px 14px; background: #fff; border: 0; box-shadow: var(--card-shadow); border-radius: var(--r2); }
.alert-box i { color: var(--green); }
.instr-card, .form-card { margin: 0 14px 12px; }
.instr-link { color: var(--green); }
.instr-download { background: #f3f4f6; color: var(--ink); }
.instr-download i { color: var(--green); }
.cb-item { border: 0; background: #f6f7f9; border-radius: var(--r); }
.cb-item.checked { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink), var(--shadow-sm); }
.cb-box { border: 1.5px solid #cfd3da; border-radius: 7px; }
.cb-item.checked .cb-box { background: var(--ink); border-color: var(--ink); }
.cb-emoji { width: 22px; text-align: center; color: var(--text3); font-size: 0.95rem; }
.cb-item.checked .cb-emoji { color: var(--green); }
.form-input { background: #f6f7f9; border: 1.5px solid transparent; }
.form-input:focus { background: #fff; border-color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-submit { margin-left: 14px; margin-right: 14px; width: calc(100% - 28px); }

/* landing */
.land-header { padding-top: 28px; }
.land-badge { background: #fff; color: var(--text2); box-shadow: var(--shadow-sm); }
.land-badge i { color: var(--green); }
.land-title { font-family: var(--serif); font-weight: 500; font-size: 2.7rem; letter-spacing: -1.2px; }
.land-title span { color: var(--green); font-style: italic; }
.land-login-link { background: #fff; color: var(--ink); padding: 8px 16px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.land-stats-row { margin-top: 28px; }
.land-stat-n { font-family: var(--serif); font-weight: 500; color: var(--ink); font-size: 1.4rem; }
.land-divider { height: 0; background: none; margin-top: 4px; }
.about-text { background: #fff; border: 0; box-shadow: var(--card-shadow); border-radius: var(--r2); padding: 20px; }
.about-text strong { color: var(--ink); }
.step-item { border-bottom: 1px dashed var(--border); }
.step-num { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); font-family: var(--serif); }
.step-tag { background: #fff; color: var(--text2); box-shadow: var(--shadow-sm); }
.step-tag i { color: var(--green); }
.land-section-title { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }

/* login */
.login-top { background: transparent; padding-top: 64px; }
.login-top::after { display: none; }
.login-icon { background: #fff; box-shadow: var(--card-shadow); border: 0; color: var(--ink); }
.login-brand { color: var(--ink); font-family: var(--serif); font-weight: 500; }
.login-tagline { color: var(--text3); }
.google-btn { border: 0; box-shadow: var(--card-shadow); border-radius: var(--r2); background: #fff; }
.g-avatar { background: var(--ink); }

/* edit profil */
#pg-editprofil .topbar { background: rgba(243, 244, 246, 0.9) !important; }
#pg-editprofil .topbar-back { color: var(--ink) !important; }
#pg-editprofil .topbar-title { color: var(--ink) !important; }
.ep-hero { padding: 14px 20px 18px; }
.ep-ring { background: var(--ink); border: 4px solid #fff; box-shadow: var(--card-shadow); color: #fff; }
.ep-cam { background: #fff; color: var(--ink); border: 0; box-shadow: var(--shadow-sm); }
.ep-name { color: var(--ink); font-family: var(--serif); font-weight: 500; }
.ep-email { color: var(--text3); }
.ep-form-wrap { margin: 0 14px; }
.ep-section { margin-bottom: 14px; }
.ep-field, .ep-select-col, .ep-sosmed-item { border-color: var(--border); }
.ep-sosmed-icon { color: var(--ink); font-size: 1.05rem; }
.ep-sosmed-save { background: #f3f4f6; color: var(--ink); }
.btn-save { margin-top: 8px; }

/* navigasi bawah: pil melayang, item aktif hitam */
.bottom-nav {
  bottom: 14px; width: calc(100% - 28px); height: 64px; padding: 6px; gap: 2px;
  border: 0; border-radius: 999px; background: #fff; box-shadow: var(--shadow-lg);
}
.bnav-btn { flex-direction: row; justify-content: center; gap: 8px; height: 100%; border-radius: 999px; padding: 0; color: var(--text3); transition: all 0.2s; }
.bnav-btn i { font-size: 1.05rem; }
.bnav-btn span { display: none; font-size: 0.72rem; letter-spacing: 0.3px; }
.bnav-btn.active { flex: 2.2; background: var(--ink); color: #fff; }
.bnav-btn.active i { color: #fff; }
.bnav-btn.active span { display: inline; }
.bnav-logout { color: #d64550 !important; }

.toast { bottom: 100px; background: var(--ink); box-shadow: var(--shadow-lg); }

/* item pesan */
.msg-item { display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 10px; cursor: pointer; transition: transform 0.15s; }
.msg-item:active { transform: scale(0.99); }
.msg-go { color: var(--text3); font-size: 0.75rem; }

/* ===== DASHBOARD LENGKAP ===== */
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card.pad { padding: 18px; margin-bottom: 14px; }
.topbar-action.has-dot { position: relative; }
.topbar-action.has-dot::after { content: ""; position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); border: 2px solid #fff; }
.dash-hero-top { gap: 10px; }
.dash-saldo-card .dash-status { font-size: 0.6rem; box-shadow: none; background: #f3f4f6; }
.dash-saldo-card .dash-status::before { display: inline-block; }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.qa { background: #fff; border-radius: 20px; box-shadow: var(--card-shadow); padding: 14px 4px 12px; text-align: center; font-size: 0.72rem; font-weight: 700; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: transform .15s; }
.qa:active { transform: scale(.96); }
.qa-ic { width: 40px; height: 40px; border-radius: 14px; background: #f3f4f6; display: grid; place-items: center; font-size: 1rem; color: var(--ink); }
.qa:first-child .qa-ic { background: var(--ink); color: #fff; }

.pct-badge { font-size: 0.72rem; font-weight: 800; color: #fff; background: var(--ink); padding: 4px 11px; border-radius: 999px; }
.pct-badge.muted { background: #f3f4f6; color: var(--text2); }
.goal-num { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; margin: 8px 0 12px; letter-spacing: -.5px; }
.goal-num span { font-family: "Plus Jakarta Sans", sans-serif; font-size: .8rem; color: var(--text3); font-weight: 600; letter-spacing: 0; }
.seg-bar { display: flex; gap: 3px; height: 14px; }
.seg-bar i { flex: 1; border-radius: 4px; background: #eceef1; }
.seg-bar i.on { background: var(--green); }
.seg-bar.thin { height: 8px; margin: 12px 0 4px; }
.seg-bar.thin i.on { background: var(--ink); }
.goal-foot { margin-top: 12px; font-size: .74rem; color: var(--text3); font-weight: 600; }
.link-sm { color: var(--ink); font-weight: 700; cursor: pointer; }
.link-sm i { font-size: .65rem; color: var(--green); margin-left: 3px; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.stat-card { background: #fff; border-radius: 20px; box-shadow: var(--card-shadow); padding: 14px; }
.stat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.stat-ic { width: 34px; height: 34px; border-radius: 11px; background: #f3f4f6; display: grid; place-items: center; font-size: .85rem; color: var(--ink); }
.stat-val { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; letter-spacing: -.5px; line-height: 1.1; }
.stat-lbl { font-size: .62rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text3); font-weight: 700; margin-top: 4px; }
.delta { font-size: .65rem; font-weight: 700; color: var(--text3); background: #f3f4f6; padding: 3px 8px; border-radius: 999px; display: inline-flex; align-items: center; gap: 3px; }
.delta.up { color: #12926a; background: #e5f6ef; }
.delta i { font-size: .55rem; }

.chart-total { font-family: var(--serif); font-size: 1.8rem; font-weight: 500; margin: 6px 0 4px; display: flex; align-items: center; gap: 10px; }
.chart-total .delta { font-family: "Plus Jakarta Sans", sans-serif; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .gl { stroke: #eceef1; stroke-dasharray: 3 5; }
.chart .ln { fill: none; stroke: var(--green); stroke-width: 2.6; stroke-linecap: round; }
.chart .vl { stroke: var(--ink); stroke-dasharray: 3 3; stroke-width: 1.3; }
.chart .cur { fill: #fff; stroke: var(--ink); stroke-width: 3; }
.chart .tp { fill: var(--ink); }
.chart .tt { fill: #fff; font-size: 10.5px; font-weight: 700; }
.chart .dl { fill: var(--text3); font-size: 10px; font-weight: 600; }

.level-row { display: flex; align-items: center; gap: 12px; }
.level-badge { width: 42px; height: 42px; border-radius: 14px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.level-name { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; }
.level-sub { font-size: .72rem; color: var(--text3); }
.mission-list { margin-top: 10px; }
.mission { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px dashed var(--border); font-size: .8rem; cursor: pointer; }
.mission span { flex: 1; font-weight: 600; }
.mission i { color: var(--text3); font-size: 1rem; }
.mission b { font-size: .72rem; color: var(--green); }
.mission.done { cursor: default; } .mission.done i { color: #12926a; } .mission.done span { color: var(--text3); text-decoration: line-through; }

.task-mini { display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 10px; cursor: pointer; transition: transform .15s; }
.task-mini:active { transform: scale(.99); }
.tm-pts { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; color: var(--green); text-align: right; line-height: 1; }
.tm-pts small { display: block; font-family: "Plus Jakarta Sans", sans-serif; font-size: .58rem; color: var(--text3); text-transform: uppercase; letter-spacing: 1px; margin-top: 3px; }

.timeline { padding: 8px 18px; margin-bottom: 14px; }
.tl-item { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px dashed var(--border); cursor: pointer; position: relative; }
.tl-item:last-child { border: 0; }
.tl-item b { display: block; font-size: .82rem; }
.tl-item small { font-size: .7rem; color: var(--text3); }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); margin-top: 5px; flex-shrink: 0; box-shadow: 0 0 0 4px #f3f4f6; }
.tl-dot.ok { background: #12926a; box-shadow: 0 0 0 4px #e5f6ef; }
.tl-dot.wt { background: #d99a00; box-shadow: 0 0 0 4px #fff3d6; }
.menu-row { display: flex; align-items: center; gap: 12px; cursor: pointer; }

/* profil */
.pf-hero { text-align: center; padding: 26px 20px 8px; }
.pf-ava { width: 84px; height: 84px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 1.8rem; margin: 0 auto 12px; border: 4px solid #fff; box-shadow: var(--card-shadow); }
.pf-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.pf-mail { font-size: .75rem; color: var(--text3); margin-top: 2px; }
.pf-badge { display: inline-flex; gap: 6px; align-items: center; margin-top: 10px; background: #fff; box-shadow: var(--shadow-sm); padding: 5px 12px; border-radius: 999px; font-size: .68rem; font-weight: 700; }
.pf-badge i { color: var(--green); }
.pf-stats { margin: 16px 14px 14px; display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: var(--r2); box-shadow: var(--card-shadow); }
.pf-stats > div { text-align: center; padding: 16px 6px; }
.pf-stats > div + div { border-left: 1px solid var(--border); }
.pf-stats b { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.pf-stats span { font-size: .6rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text3); font-weight: 700; }
.pf-menu { margin: 0 14px 14px; background: #fff; border-radius: var(--r2); box-shadow: var(--card-shadow); overflow: hidden; }
.pf-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); cursor: pointer; }
.pf-item:last-child { border: 0; }
.pf-item:active { background: #f8f9fa; }
.pf-item .pi-icon { width: 36px; height: 36px; }
.pf-item b { display: block; font-size: .85rem; } .pf-item small { font-size: .7rem; color: var(--text3); }
.pf-item .pi-body { flex: 1; }
.pf-item.danger b, .pf-item.danger .pi-icon i { color: #d64550; }

/* ===== Branding — logo BantuBrand (ditambahkan) ===== */
.land-logo-img { display: inline-flex; align-items: center; }
.land-logo-img img { height: 26px; width: auto; display: block; }
.login-icon-img { display: flex; align-items: center; justify-content: center; }
.login-icon-img img { width: 44px; height: 44px; display: block; }
@media (min-width: 640px) {
  .land-logo-img img { height: 30px; }
}
