:root {
  --primary: #1890ff;
  --bg: #f5f7fa;
  --text: #1f2a37;
  --border: #e5e7eb;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}
.container {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 480px;
  padding: 32px;
}
.container.wide {
  max-width: 1200px;
}
h1 {
  margin: 0 0 8px;
  font-size: 24px;
  text-align: center;
  color: #111827;
}
.subtitle {
  text-align: center;
  color: #6b7280;
  margin-bottom: 24px;
  font-size: 14px;
}
.form-group { margin-bottom: 16px; }
.label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: #374151;
}
.input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}
.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(24,144,255,0.1);
}
.checkbox-wrap {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 20px;
}
.checkbox-wrap input { margin-right: 8px; }
.link { color: var(--primary); text-decoration: none; cursor: pointer; }
.link:hover { text-decoration: underline; }
.btn {
  width: 100%;
  padding: 10px;
  background-color: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.9; }
.btn:disabled { background-color: #9ca3af; cursor: not-allowed; }
.btn.ghost { background-color: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn.ghost:hover { background-color: #eff6ff; }
.msg {
  text-align: center;
  font-size: 14px;
  margin-top: 16px;
  min-height: 20px;
}
.dialog {
  padding: 24px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
  max-width: 400px;
  width: 90%;
}
.dialog::backdrop { background: rgba(0,0,0,0.5); }
.dialog-title { font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.dialog-content { font-size: 14px; color: #4b5563; margin-bottom: 20px; max-height: 60vh; overflow-y: auto; }
.dialog-footer { display: flex; justify-content: flex-end; gap: 10px; }
.dialog-footer .btn { width: auto; padding: 8px 16px; }

/* Admin styles */
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.panel-title { font-size: 16px; font-weight: 600; color: #111827; margin-bottom: 12px; }
.form-row { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.form-row .input { width: auto; min-width: 200px; }
.form-row .grow { flex: 1; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--border); }
th { color: #6b7280; font-weight: 500; }
.hint { font-size: 12px; color: #9ca3af; margin-top: 4px; }
.status-badge { padding: 2px 8px; border-radius: 99px; font-size: 12px; }
#wx_reg { margin: 20px auto; }
