:root {
    --bg: #eef3f8;
    --card: #ffffff;
    --text: #172033;
    --muted: #667085;
    --border: #d0d7e2;
    --primary: #0f62fe;
    --primary-dark: #0043ce;
    --success: #0f8a4b;
    --danger: #c62828;
    --warning: #a16207;
    --pending: #475467;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
}
.container {
    max-width: 980px;
    margin: 32px auto;
    padding: 0 16px;
}
.container.small { max-width: 520px; }
.container.wide { max-width: 1280px; }
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}
.topbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}
h1 { margin: 0 0 6px; font-size: 28px; }
h2 {
    font-size: 18px;
    margin: 22px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.subtitle, .hint, small { color: var(--muted); }
.form-grid section { margin-bottom: 20px; }
.grid-2, .grid-3 {
    display: grid;
    gap: 14px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-weight: 700;
    font-size: 14px;
}
input, textarea, select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    font: inherit;
    background: #fff;
    color: var(--text);
}
textarea { resize: vertical; }
.upload-box {
    border: 1px dashed #98a2b3;
    border-radius: 14px;
    padding: 14px;
    background: #f8fafc;
    min-height: 160px;
    justify-content: center;
}
.upload-box input { background: #fff; }
.checkbox {
    flex-direction: row;
    align-items: flex-start;
    font-weight: 400;
    line-height: 1.5;
    background: #f8fafc;
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 12px;
}
.checkbox input { width: auto; margin-top: 4px; }
button, .button-link {
    display: inline-block;
    border: none;
    border-radius: 12px;
    padding: 12px 18px;
    background: var(--primary);
    color: white;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
button:hover, .button-link:hover { background: var(--primary-dark); }
.primary { width: 100%; font-size: 16px; padding: 15px; }
.alert {
    padding: 12px 14px;
    border-radius: 12px;
    margin: 12px 0;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}
.alert.error {
    color: var(--danger);
    background: #fff1f2;
    border-color: #fecdd3;
}
.center { text-align: center; }
.success-icon {
    width: 62px;
    height: 62px;
    line-height: 62px;
    border-radius: 50%;
    background: #dcfce7;
    color: var(--success);
    font-size: 36px;
    margin: 0 auto 18px;
    font-weight: 800;
}
.ref { background: #f8fafc; padding: 10px; border-radius: 10px; }
.table-wrap { overflow-x: auto; }
.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1050px;
}
.admin-table th, .admin-table td {
    border-bottom: 1px solid var(--border);
    padding: 12px;
    vertical-align: top;
    text-align: left;
    font-size: 14px;
}
.admin-table th { background: #f8fafc; }
.file-links a {
    display: block;
    margin-bottom: 7px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}
.status {
    display: inline-block;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
    background: #eef2ff;
    color: var(--pending);
}
.status.verified { background: #dcfce7; color: var(--success); }
.status.rejected { background: #fee2e2; color: var(--danger); }
.status.needs-correction { background: #fef3c7; color: var(--warning); }
.status-form { display: grid; gap: 8px; min-width: 210px; }
.status-form button { padding: 9px 12px; }

@media (max-width: 760px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .card { padding: 18px; }
    .topbar { flex-direction: column; }
    h1 { font-size: 23px; }
}
