: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;
}
