:root {
  --sdm-green: #0b6b3a;
  --sdm-green-dark: #08502b;
  --sdm-gold: #f5b700;
  --sdm-bg: #f3f5f2;
}
body { background: var(--sdm-bg); min-height: 100vh; }
body.has-nav main { padding-bottom: 96px !important; }

.topbar {
  position: sticky; top: 0; z-index: 1020;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: var(--sdm-green); color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.net-pill { width: 12px; height: 12px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.net-pill.off { background: #ef4444; }

.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
  display: flex; justify-content: space-around; align-items: flex-end;
  background: #fff; border-top: 1px solid #e5e7eb;
  padding: 6px 4px; padding-bottom: max(6px, env(safe-area-inset-bottom));
}
.bottomnav a { flex: 1; text-align: center; color: #6b7280; text-decoration: none; font-size: 11px; }
.bottomnav a i { display: block; font-size: 22px; line-height: 1.2; }
.bottomnav a.active { color: var(--sdm-green); font-weight: 600; }
.bottomnav a.add i {
  width: 52px; height: 52px; margin: -26px auto 0; border-radius: 50%;
  background: var(--sdm-green); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(11,107,58,.4); border: 4px solid #fff;
}

.card { border: 0; border-radius: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.stat { border-radius: 14px; padding: 14px; color: #fff; }
.stat .num { font-size: 28px; font-weight: 700; line-height: 1; }
.stat small { opacity: .85; }
.bg-sdm { background: var(--sdm-green) !important; }
.btn-sdm { background: var(--sdm-green); border-color: var(--sdm-green); color: #fff; }
.btn-sdm:hover, .btn-sdm:focus { background: var(--sdm-green-dark); border-color: var(--sdm-green-dark); color: #fff; }
.form-label { font-weight: 600; font-size: .9rem; margin-bottom: .25rem; }
.form-control, .form-select { padding: .65rem .75rem; border-radius: 10px; }
.req::after { content: " *"; color: #dc3545; }

.auth main { max-width: 440px; }
.list-item { display: flex; justify-content: space-between; gap: 8px; padding: 12px 14px; border-bottom: 1px solid #f0f0f0; }
.list-item:last-child { border-bottom: 0; }
.queue-banner { border-radius: 12px; }

/* ID card */
.idcard {
  width: 100%; max-width: 340px; margin: 0 auto; aspect-ratio: 54 / 86;
  border-radius: 16px; overflow: hidden; background: #fff; position: relative;
  box-shadow: 0 6px 24px rgba(0,0,0,.15); display: flex; flex-direction: column; text-align: center;
}
.idcard .band { background: var(--sdm-green); color: #fff; padding: 14px 10px 30px; }
.idcard .band small { color: var(--sdm-gold); letter-spacing: .08em; font-weight: 700; }
.idcard .photo {
  width: 110px; height: 110px; margin: -26px auto 6px; border-radius: 50%; object-fit: cover;
  border: 5px solid #fff; background: #e5e7eb; display: flex; align-items: center; justify-content: center;
  font-size: 44px; font-weight: 700; color: var(--sdm-green);
}
.idcard .qr svg { width: 108px; height: 108px; }
.idcard .foot { margin-top: auto; background: var(--sdm-gold); font-size: 11px; font-weight: 700; padding: 5px; }
@media print {
  .topbar, .bottomnav, .no-print { display: none !important; }
  body { background: #fff; }
  .idcard { box-shadow: none; border: 1px solid #ccc; }
}
