:root {
  --navy: #0a1e3f;
  --navy-light: #14305c;
  --gold: #d4af37;
  --gold-light: #f0d878;
  --bg: #f7f8fa;
  --white: #ffffff;
  --text: #1c2530;
  --text-muted: #6b7684;
  --danger: #d64545;
  --success: #2e9e5b;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.topbar {
  background: var(--navy);
  color: var(--white);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar .brand {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.5px;
}
.topbar .brand span { color: var(--gold); }

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

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(10,30,63,0.08);
}

.card h3 { margin: 0 0 6px; font-size: 16px; }
.card p { margin: 0; color: var(--text-muted); font-size: 14px; }

.reward {
  color: var(--success);
  font-weight: 800;
  font-size: 17px;
}

.btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 13px;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: var(--navy); color: var(--gold-light); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-danger { background: var(--danger); color: white; }
.btn-success { background: var(--success); color: white; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

input, select, textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1.5px solid #dde2e8;
  font-size: 15px;
  margin-bottom: 12px;
  font-family: inherit;
}
label { font-size: 13px; font-weight: 600; color: var(--text-muted); display: block; margin-bottom: 4px; }

.stat-row { display: flex; gap: 12px; }
.stat-box { flex: 1; background: var(--white); border-radius: var(--radius); padding: 16px; text-align: center; }
.stat-box .num { font-size: 22px; font-weight: 800; color: var(--navy); }
.stat-box .label { font-size: 12px; color: var(--text-muted); }

.tabbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid #eaecef;
  display: flex;
  padding: 8px 0;
  max-width: 480px;
  margin: 0 auto;
}
.tabbar a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
}
.tabbar a.active { color: var(--navy); }
.tabbar .icon { font-size: 20px; display: block; margin-bottom: 2px; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}
.badge-pending { background: #fff3cd; color: #8a6d00; }
.badge-approved { background: #d4edda; color: #1e6b3a; }
.badge-rejected { background: #f8d7da; color: #8a1c26; }
.badge-active { background: #d4edda; color: #1e6b3a; }
.badge-paid { background: #d0e4ff; color: #14305c; }

.hidden { display: none !important; }

.msg { padding: 12px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; }
.msg-error { background: #f8d7da; color: #8a1c26; }
.msg-success { background: #d4edda; color: #1e6b3a; }

.section-title { font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin: 20px 0 10px; }

.copy-box {
  display: flex;
  gap: 8px;
  background: var(--navy);
  color: var(--gold-light);
  padding: 12px;
  border-radius: 10px;
  align-items: center;
  font-size: 13px;
  word-break: break-all;
}
.copy-box button {
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

a.plain { color: var(--navy); font-weight: 700; text-decoration: none; }
