:root { --bg:#f6f7fb; --panel:#fff; --line:#dfe3ee; --text:#151a2d; --muted:#5c6684; --accent:#0f766e;
        --accent-ink:#fff; --warn:#b45309; --red:#b91c1c; --green:#15803d; --radius:10px; }
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; background:var(--bg); color:var(--text); font:16px/1.5 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; }
a { color:var(--accent); }
header.top { background:var(--panel); border-bottom:1px solid var(--line); }
.bar { max-width:1040px; margin:0 auto; padding:10px 16px; display:flex; gap:14px; align-items:center; flex-wrap:wrap; }
.brand { font-weight:800; font-size:18px; color:var(--text); text-decoration:none; margin-right:auto; }
.bar nav { display:flex; gap:14px; flex-wrap:wrap; align-items:center; }
.bar nav a { text-decoration:none; color:var(--text); font-size:15px; }
.bar nav a:hover { color:var(--accent); }
main { max-width:1040px; margin:0 auto; padding:20px 16px 60px; }
main.narrow { max-width:460px; }
h1 { font-size:26px; margin:6px 0 14px; line-height:1.2; }
h2 { font-size:18px; margin:0 0 10px; }
.card { background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); padding:18px; margin-bottom:16px; min-width:0; }
.grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:16px; }
label { display:block; font-size:14px; color:var(--muted); margin:10px 0 4px; }
input[type=text], input[type=email], input[type=password], input[type=search], select { width:100%; font:inherit; padding:9px 11px; border:1px solid var(--line); border-radius:8px; background:#fff; color:var(--text); }
textarea { width:100%; font:inherit; padding:9px 11px; border:1px solid var(--line); border-radius:8px; resize:vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
button, .btn { font:inherit; padding:9px 15px; border-radius:8px; border:1px solid var(--line); background:#fff; color:var(--text); cursor:pointer; text-decoration:none; display:inline-block; }
button.primary, .btn.primary { background:var(--accent); border-color:var(--accent); color:var(--accent-ink); font-weight:600; }
button.danger { color:var(--red); border-color:var(--red); }
button.small { padding:4px 10px; font-size:14px; }
button.link { border:0; background:none; padding:0; color:var(--accent); text-decoration:underline; }
.row { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.muted { color:var(--muted); font-size:14px; }
.flash { padding:10px 14px; border-radius:8px; margin-bottom:14px; background:#ecfdf5; border:1px solid #a7f3d0; }
.flash.warn, .error { background:#fff7ed; border:1px solid #fed7aa; color:#7c2d12; }
.error { padding:10px 14px; border-radius:8px; margin-bottom:12px; }
table { width:100%; border-collapse:collapse; }
th, td { text-align:left; padding:8px 6px; border-bottom:1px solid var(--line); vertical-align:middle; }
th { font-size:13px; color:var(--muted); font-weight:600; }
.table-wrap { overflow-x:auto; }
.pill { display:inline-block; font-size:13px; padding:2px 9px; border-radius:99px; border:1px solid var(--line); color:var(--muted); white-space:nowrap; }
.pill.ok { color:var(--green); border-color:#86efac; background:#f0fdf4; }
.pill.wait { color:var(--warn); border-color:#fcd34d; background:#fffbeb; }
.dot { display:inline-block; width:10px; height:10px; border-radius:50%; background:#c3c9d9; margin-right:6px; }
.dot.on { background:#22c55e; box-shadow:0 0 0 3px #bbf7d0; }
.code { font:700 34px/1 ui-monospace, Consolas, monospace; letter-spacing:.14em; }
pre.line { background:#0f172a; color:#e2e8f0; padding:14px; border-radius:8px; white-space:pre-wrap; word-break:break-all; font-size:14px; margin:8px 0; }
.divider { text-align:center; color:var(--muted); font-size:14px; margin:14px 0; }
.qr { width:220px; max-width:100%; height:auto; border:1px solid var(--line); border-radius:8px; background:#fff; }
form.inline { display:inline; }
ol.steps { padding-left:20px; margin:8px 0; }
ol.steps li { margin-bottom:6px; }

/* Màn hình chiếu của lớp */
body.screen { background:#0b1020; color:#eef2ff; min-height:100vh; display:grid; place-items:center; }
.screen-box { display:grid; grid-template-columns:auto auto; gap:6vw; align-items:center; padding:4vh 4vw; }
.screen-box img { width:min(44vh, 40vw); height:auto; background:#fff; border-radius:2vh; padding:1.5vh; }
.screen-eyebrow { color:#5eead4; font-size:2.2vh; letter-spacing:.14em; text-transform:uppercase; font-weight:700; }
.screen-title { font-size:6vh; font-weight:800; line-height:1.1; margin:1vh 0 3vh; }
.screen-code { font:800 13vh/1 ui-monospace, Consolas, monospace; letter-spacing:.1em; color:#fbbf24; }
.screen-url { font-size:2.6vh; color:#8e9ac0; margin-top:2vh; word-break:break-all; }
.screen-count { font-size:3.4vh; margin-top:4vh; }
.screen-count b { font-size:6vh; color:#5eead4; }
@media (max-width:800px) { .screen-box { grid-template-columns:1fr; text-align:center; } .screen-box img { margin:0 auto; } }
.brand-by { font:700 11px/1 ui-monospace, Consolas, monospace; letter-spacing:.12em; text-transform:uppercase; color:#0f766e; border:1px solid currentColor; border-radius:99px; padding:3px 8px; margin-left:8px; vertical-align:middle; }
body.landing .brand-by, body.auth .brand-by { color:#5eead4; }
