:root {
  --bg: #0f172a;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #2563eb;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #d97706;
  --border: #e2e8f0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  background: #0f172a;
  color: var(--text);
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

.mobile-shell {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  background: #f1f5f9;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.45);
}

.mobile-card {
  background: var(--surface);
  margin: 20px 16px;
  padding: 22px 18px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
}

.mobile-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-brand h1 {
  font-size: 17px;
  font-weight: 800;
}

.mobile-brand p {
  font-size: 12px;
  color: var(--muted);
}

.field-group {
  margin-bottom: 14px;
}

.field-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #334155;
}

.mobile-input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
}

.mobile-btn {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.mobile-btn.primary { background: var(--primary); color: #fff; }
.mobile-btn.success { background: var(--success); color: #fff; }
.mobile-btn.danger  { background: var(--danger); color: #fff; }

.mobile-alert {
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 14px;
  line-height: 1.45;
}

.mobile-alert.error {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.mobile-alert.success {
  background: #dcfce7;
  color: #15803d;
}

.security-tag {
  display: inline-block;
  background: #fef3c7;
  color: #b45309;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.muted-text {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 14px;
  line-height: 1.45;
}

/* HEADER & BOTTOM NAV */
.mobile-header {
  background: #0f172a;
  color: #fff;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.staff-title {
  font-weight: 800;
  font-size: 16px;
}

.staff-sub {
  font-size: 11px;
  color: #93c5fd;
}

.btn-mini {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
}

.mobile-content {
  padding: 14px 14px 86px;
  flex: 1;
}

.section-box {
  background: #fff;
  border-radius: 14px;
  padding: 15px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
}

.section-box h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 4px;
  z-index: 50;
}

.bnav-btn {
  background: none;
  border: none;
  padding: 6px 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.bnav-btn.active {
  color: var(--primary);
  font-weight: 800;
}

.list-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.list-item:last-child {
  border-bottom: none;
}

.pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.pill-green { background: #dcfce7; color: #15803d; }
.pill-amber { background: #fef3c7; color: #b45309; }
.pill-blue  { background: #dbeafe; color: #1d4ed8; }
