:root {
  --charcoal: #12141A;
  --charcoal-elevated: #1B1E27;
  --charcoal-input: #21242F;
  --gold: #D4AF37;
  --gold-dim: #B8973F;
  --green: #2ECC71;
  --red: #E8564F;
  --white: #F5F6F8;
  --grey: #8A8F9C;
  --border: #2A2D38;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--charcoal);
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  padding-bottom: 76px; /* room for bottom nav */
}

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

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 18px;
}

/* Top bar */
.topbar {
  max-width: 480px;
  margin: 0 auto;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.topbar h2 { margin: 0; font-size: 18px; font-weight: 700; }
.topbar .brand { display: flex; align-items: center; gap: 10px; }
.brand-dot {
  width: 26px; height: 26px; border-radius: 8px;
  border: 1.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.brand-dot span { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* Cards */
.card {
  background: var(--charcoal-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
}
.card-title { font-size: 13px; color: var(--grey); margin: 0 0 6px; }
.card-value { font-size: 24px; font-weight: 700; margin: 0; }

/* Forms */
label {
  display: block;
  font-size: 13px;
  color: var(--grey);
  margin: 14px 0 6px;
}
input, select, textarea {
  width: 100%;
  background: var(--charcoal-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--white);
  font-size: 15px;
  outline: none;
  font-family: inherit;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
textarea { resize: vertical; min-height: 90px; }

button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 20px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  margin-top: 18px;
}
.btn-primary { background: var(--gold); color: var(--charcoal); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-secondary { background: transparent; color: var(--white); border: 1px solid var(--border); }
.btn-danger { background: transparent; color: var(--red); border: 1px solid var(--red); }

.error-text { color: var(--red); font-size: 13px; margin-top: 10px; min-height: 16px; }
.help-text { color: var(--grey); font-size: 12.5px; margin-top: 8px; line-height: 1.5; }
.link-row { text-align: center; margin-top: 18px; font-size: 14px; color: var(--grey); }
.link-row a { color: var(--gold); font-weight: 600; }

/* Status pill */
.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid var(--border);
}
.pill-active { color: var(--green); border-color: var(--green); }
.pill-pending { color: var(--gold); border-color: var(--gold); }
.pill-rejected { color: var(--red); border-color: var(--red); }
.pill-neutral { color: var(--grey); }

/* Task list */
.task-item {
  background: var(--charcoal-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  display: block;
}
.task-item h3 { margin: 0 0 6px; font-size: 15.5px; }
.task-item p { margin: 0; color: var(--grey); font-size: 13px; }
.task-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px;
}
.task-reward { color: var(--gold); font-weight: 700; font-size: 14px; }

/* Bottom nav */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--charcoal-elevated);
  border-top: 1px solid var(--border);
  display: flex;
  max-width: 480px;
  margin: 0 auto;
}
.bottom-nav a {
  flex: 1;
  text-align: center;
  padding: 12px 0 10px;
  color: var(--grey);
  font-size: 11px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.bottom-nav a.active { color: var(--gold); }
.bottom-nav .icon { font-size: 19px; }

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--grey);
}

.loading { text-align: center; padding: 40px 0; color: var(--grey); font-size: 14px; }

.row-between { display: flex; align-items: center; justify-content: space-between; }
.divider { height: 1px; background: var(--border); margin: 14px 0; border: none; }

.disclosure {
  font-size: 12px; color: var(--grey); line-height: 1.6;
  background: var(--charcoal-input); border-radius: 10px; padding: 12px 14px; margin-top: 16px;
}
