* { box-sizing: border-box; }
body {
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f4f6f9;
    margin: 0;
    color: #1f2937;
}
.navbar {
    background: #1e3a8a;
    color: #fff;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar a { color: #fff; text-decoration: none; margin-left: 16px; }
.navbar .brand { font-weight: 700; font-size: 18px; }
.navbar .nav-links { display: flex; align-items: center; }
.nav-dropdown { position: relative; margin-left: 16px; }
.nav-dropdown-label { color: #fff; cursor: pointer; font-size: 15px; }
.nav-dropdown-menu {
    display: none; position: absolute; right: 0; top: 26px; background: #fff;
    border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.15); min-width: 260px;
    padding: 6px 0; z-index: 20;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
    display: block; color: #1a1f2e; margin: 0; padding: 9px 16px; font-size: 14px;
}
.nav-dropdown-menu a:hover { background: #f2f4fc; }
.container { max-width: 900px; margin: 30px auto; padding: 0 16px; }
.card {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}
.badge { padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-free { background: #e5e7eb; color: #374151; }
.badge-vip { background: #fde68a; color: #92400e; }
.badge-admin { background: #ddd6fe; color: #5b21b6; }
input, select, button {
    width: 100%;
    padding: 10px 12px;
    margin: 6px 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
}
button {
    background: #2563eb;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
}
button:hover { background: #1d4ed8; }
.exam-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}
.locked { opacity: 0.6; }
.error { color: #dc2626; margin-bottom: 12px; }
.success { color: #16a34a; margin-bottom: 12px; }

.google-btn {
    display: flex; align-items: center; justify-content: center;
    width: 100%; padding: 11px; border: 1px solid #dadce0; border-radius: 8px;
    background: #fff; color: #3c4043; font-weight: 600; font-size: 14.5px;
    text-decoration: none; box-sizing: border-box;
}
.google-btn:hover { background: #f7f8f8; }
.divider { display: flex; align-items: center; text-align: center; color: #9aa0ac; font-size: 13px; margin: 16px 0; }
.divider::before, .divider::after { content: ''; flex: 1; border-bottom: 1px solid #e5e7eb; }
.divider span { padding: 0 10px; }
.question-block { margin-bottom: 22px; }
.qr-box { text-align: center; }
.qr-box img { max-width: 260px; border-radius: 8px; }
