* { box-sizing: border-box; }
body {
    font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: #f4f5f7;
    color: #1f2430;
    margin: 0;
    padding: 0;
}
.topbar {
    background: #1f2937;
    color: #fff;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar a { color: #fff; text-decoration: none; margin-left: 16px; font-size: 14px; }
.topbar .brand { font-weight: 600; font-size: 16px; }
.container {
    max-width: 780px;
    margin: 40px auto;
    background: #fff;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.container.wide { max-width: 1100px; }
h1, h2 { margin-top: 0; }
label { display: block; margin: 14px 0 4px; font-weight: 600; font-size: 14px; }
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=date], input[type=tel], select, textarea {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 14px;
}
textarea { min-height: 90px; }
button, .btn {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    margin-top: 18px;
}
button.secondary, .btn.secondary { background: #6b7280; }
button.danger, .btn.danger { background: #dc2626; }
.flash { padding: 10px 14px; border-radius: 5px; margin-bottom: 16px; font-size: 14px; }
.flash.success { background: #dcfce7; color: #166534; }
.flash.error { background: #fee2e2; color: #991b1b; }
table { width: 100%; border-collapse: collapse; margin-top: 12px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #e5e7eb; font-size: 14px; }
th { background: #f9fafb; }
.badge { padding: 2px 8px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.badge.pending { background: #fef9c3; color: #854d0e; }
.badge.active { background: #dcfce7; color: #166534; }
.badge.locked { background: #fee2e2; color: #991b1b; }
.captcha-row { display: flex; align-items: center; gap: 12px; }
.hint { font-size: 12px; color: #6b7280; }
.nav-tabs { margin-bottom: 20px; }
.nav-tabs a { margin-right: 16px; text-decoration: none; color: #2563eb; font-size: 14px; }
