*{box-sizing:border-box;margin:0;padding:0}
:root{--primary:#2563eb;--primary2:#4f46e5;--dark:#0f172a;--muted:#64748b;--bg:#f1f5f9;--card:#fff;--success:#16a34a;--danger:#dc2626;--border:#e2e8f0}
body{font-family:Inter,Segoe UI,Arial,sans-serif;background:var(--bg);color:#0f172a;min-height:100vh}
button,input,select,textarea{font:inherit}
button{cursor:pointer;border:0}
.container{width:min(1180px,92%);margin:auto}
.nav{height:70px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 4%;position:sticky;top:0;z-index:10}
.logo{font-size:22px;font-weight:800;color:var(--primary)}
.logo span{color:var(--dark)}
.nav-right{display:flex;gap:10px;align-items:center}
.btn{padding:11px 17px;border-radius:10px;font-weight:700;transition:.2s}
.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover{background:#1d4ed8}
.btn-dark{background:var(--dark);color:#fff}.btn-light{background:#e2e8f0;color:#0f172a}
.btn-danger{background:#fee2e2;color:#991b1b}.btn-success{background:#dcfce7;color:#166534}
.hero{padding:70px 0;background:linear-gradient(135deg,#eff6ff,#eef2ff)}
.hero-grid{display:grid;grid-template-columns:1.3fr .7fr;gap:30px;align-items:center}
.hero h1{font-size:48px;line-height:1.05;margin-bottom:18px}.hero h1 span{color:var(--primary)}
.hero p{font-size:18px;color:var(--muted);line-height:1.7;margin-bottom:25px}
.hero-card,.card{background:var(--card);border:1px solid var(--border);border-radius:18px;padding:24px;box-shadow:0 8px 30px rgba(15,23,42,.06)}
.stat-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.stat{padding:18px;background:#f8fafc;border-radius:14px}.stat b{font-size:27px;display:block}.stat small{color:var(--muted)}
.section{padding:42px 0}.section h2{margin-bottom:20px}
.test-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.test-card h3{margin:10px 0}.test-card p{color:var(--muted);line-height:1.5}.tag{display:inline-block;background:#dbeafe;color:#1d4ed8;padding:5px 9px;border-radius:20px;font-size:12px;font-weight:700}
.footer{padding:30px;text-align:center;color:var(--muted)}
.auth-wrap{min-height:100vh;display:grid;place-items:center;padding:25px;background:linear-gradient(135deg,#dbeafe,#eef2ff)}
.auth{width:min(430px,100%);background:#fff;padding:32px;border-radius:20px;box-shadow:0 20px 60px rgba(15,23,42,.12)}
.auth h1{margin-bottom:7px}.auth p{color:var(--muted);margin-bottom:22px}
.form-group{margin-bottom:15px}.form-group label{display:block;font-size:13px;font-weight:700;margin-bottom:7px}
.form-group input,.form-group select,.form-group textarea{width:100%;padding:12px 13px;border:1px solid var(--border);border-radius:10px;outline:none}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{border-color:var(--primary)}
.full{width:100%}.msg{padding:10px;border-radius:9px;margin-bottom:15px;font-size:14px;display:none}.msg.show{display:block}.msg.error{background:#fee2e2;color:#991b1b}.msg.ok{background:#dcfce7;color:#166534}
.dashboard{padding:30px 0}.dash-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px;gap:15px}.dash-head p{color:var(--muted);margin-top:5px}
.side-layout{display:grid;grid-template-columns:220px 1fr;gap:22px}.sidebar{height:max-content}.side-btn{display:block;width:100%;text-align:left;padding:12px;margin-bottom:6px;background:transparent;border-radius:9px}.side-btn.active,.side-btn:hover{background:#dbeafe;color:#1d4ed8;font-weight:700}
.panel{display:none}.panel.active{display:block}
.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:22px}
.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse}.table th,.table td{padding:12px;text-align:left;border-bottom:1px solid var(--border);white-space:nowrap}.table th{font-size:13px;color:var(--muted)}
.modal{position:fixed;inset:0;background:rgba(15,23,42,.55);display:none;place-items:center;padding:20px;z-index:100}.modal.show{display:grid}.modal-box{width:min(600px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:18px;padding:25px}.modal-head{display:flex;justify-content:space-between;margin-bottom:18px}
.test-shell{min-height:100vh;background:#f8fafc}.test-top{background:#fff;border-bottom:1px solid var(--border);padding:14px 4%;display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;z-index:10}
.timer{font-weight:800;color:#b91c1c;background:#fee2e2;padding:9px 14px;border-radius:10px}
.test-main{width:min(850px,92%);margin:35px auto}.progress{height:8px;background:#e2e8f0;border-radius:10px;overflow:hidden;margin:15px 0 25px}.progress div{height:100%;background:var(--primary);transition:.3s}
.question{font-size:23px;line-height:1.45;margin:20px 0}.options{display:grid;gap:12px}.option{padding:16px;border:2px solid var(--border);border-radius:12px;background:#fff;text-align:left}.option:hover{border-color:#93c5fd}.option.selected{border-color:var(--primary);background:#eff6ff}.option.correct{border-color:#22c55e;background:#dcfce7}.option.wrong{border-color:#ef4444;background:#fee2e2}
.feedback{padding:16px;border-radius:12px;margin-top:18px;display:none}.feedback.show{display:block}.feedback.correct{background:#dcfce7;color:#166534}.feedback.wrong{background:#fee2e2;color:#991b1b}
.test-actions{display:flex;justify-content:space-between;margin-top:25px}
.rules{line-height:1.8;color:#475569}.rules li{margin-left:20px}
.result{text-align:center;padding:45px}.score{font-size:55px;font-weight:900;color:var(--primary);margin:15px}
.empty{text-align:center;color:var(--muted);padding:35px}
.toast{position:fixed;right:20px;bottom:20px;background:var(--dark);color:#fff;padding:13px 17px;border-radius:10px;display:none;z-index:50}.toast.show{display:block}
@media(max-width:850px){.hero-grid,.side-layout{grid-template-columns:1fr}.test-grid{grid-template-columns:1fr}.kpis{grid-template-columns:repeat(2,1fr)}.hero h1{font-size:38px}}
@media(max-width:500px){.kpis{grid-template-columns:1fr}.nav{padding:0 3%}.hero{padding:45px 0}.dash-head{align-items:flex-start;flex-direction:column}}

.brand{display:flex;align-items:center;gap:9px}
.brand-logo{width:38px;height:38px;border-radius:9px;object-fit:contain;background:#fff}
.brand-name{font-weight:800;color:#0f172a}
.brand-product{font-weight:800;color:#2563eb}

.brand{display:flex;align-items:center;gap:9px}.brand-logo{width:38px;height:38px;object-fit:contain;border-radius:9px}.brand-name{font-size:19px;font-weight:800;color:#0f172a}.brand-name small{font-size:12px;color:#64748b;font-weight:700}.auth-brand{margin-bottom:8px}

.user-progress{margin-top:20px}.leaderboard{margin-top:20px}
button:disabled{opacity:.55;cursor:not-allowed}

.test-lock{font-size:12px;font-weight:800;background:#fef3c7;color:#92400e;padding:8px 11px;border-radius:9px}
@media(max-width:600px){.test-top{gap:8px}.test-lock{display:none}}

.fullscreen-warning{position:fixed;inset:0;background:rgba(15,23,42,.88);display:none;place-items:center;z-index:1000;padding:20px;text-align:center;color:#fff}
.fullscreen-warning.show{display:grid}.fullscreen-warning>div{background:#fff;color:#0f172a;padding:30px;border-radius:18px;width:min(430px,100%)}
.fullscreen-warning h2{margin-bottom:10px}.fullscreen-warning p{color:#64748b;margin-bottom:20px}

.test-shell{user-select:none}
.test-top{gap:14px}
.exam-warning{background:#fff7ed;color:#9a3412;border:1px solid #fed7aa;padding:10px 12px;border-radius:10px;font-size:13px;margin-bottom:14px}
