:root { --navy: #1f3864; --blue: #2e75b6; --green: #1e8e5a; --green-soft: #e6f5ee; --red: #c0392b; --red-soft: #fbecea;
  --amber: #8a6400; --amber-soft: #fff6dc; --bg: #f3f5f9; --line: #e3e7ee; --muted: #667085; --text: #1d2433; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; }
a { color: var(--blue); }
.top { background: linear-gradient(120deg, var(--navy), var(--blue)); padding: 12px 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; max-width: 980px; margin: 0 auto; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand b { display: block; font-size: 17px; }
.brand small { display: block; opacity: .85; font-size: 12.5px; }
main { max-width: 980px; margin: 22px auto; padding: 0 16px; }
.card { background: #fff; border-radius: 14px; box-shadow: 0 1px 3px rgba(16,24,40,.08), 0 6px 18px rgba(16,24,40,.05); padding: 22px 24px; margin-bottom: 16px; }
.card h1 { margin: 0 0 8px; color: var(--navy); font-size: 24px; }
.card h2 { margin: 0 0 12px; color: var(--navy); font-size: 18px; }
.center { text-align: center; }
.status { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; align-items: start; }
.status .ico { grid-row: span 6; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; font-weight: 800; color: #fff; }
.status.ok { background: var(--green-soft); } .status.ok .ico { background: var(--green); } .status.ok h1 { color: #145c3b; }
.status.bad { background: var(--red-soft); } .status.bad .ico { background: var(--red); } .status.bad h1 { color: #8e2a20; }
.status.wait { background: var(--amber-soft); } .status.wait .ico { background: #d9a400; } .status.wait h1 { color: var(--amber); }
.status p { margin: 4px 0; }
.muted { color: var(--muted); font-size: 14px; }
.warn { color: var(--red); }
.mono { font-family: Consolas, "SFMono-Regular", Menlo, monospace; letter-spacing: .5px; }
table.info { width: 100%; border-collapse: collapse; }
table.info th, table.info td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.info th { width: 210px; color: var(--muted); font-weight: 500; }
canvas.cert { width: 100%; height: auto; display: block; border-radius: 6px; box-shadow: 0 6px 24px rgba(31,56,100,.18); }
.btn, .idform button { display: inline-block; background: var(--blue); color: #fff; border: 0; border-radius: 10px; padding: 10px 18px; font-size: 15px; cursor: pointer; text-decoration: none; margin-top: 12px; }
.btn:hover, .idform button:hover { background: var(--navy); }
.idform { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.idform input { flex: 1; max-width: 340px; min-width: 220px; height: 44px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 14px; font-size: 17px; font-family: Consolas, monospace; text-transform: uppercase; }
.idform button { margin-top: 0; height: 44px; }
footer { max-width: 980px; margin: 0 auto 30px; padding: 0 16px; color: var(--muted); font-size: 13.5px; text-align: center; }
@media (max-width: 600px) { table.info th { width: auto; display: block; border: 0; padding-bottom: 0; } table.info td { display: block; padding-top: 2px; }
  .status { grid-template-columns: 1fr; } .status .ico { margin-bottom: 8px; } .card { padding: 18px 16px; } }
ul.kurslar { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
ul.kurslar li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
ul.kurslar img, ul.kurslar .kb { width: 40px; height: 40px; border-radius: 10px; flex: none; background: linear-gradient(135deg, var(--navy), var(--blue)); }
ul.kurslar small { display: block; color: var(--muted); font-size: 13.5px; }
.btn.ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--blue); background: #fff; }
.actions .btn { margin-right: 6px; }
@page { size: A4 landscape; margin: 6mm; }
@media print {
  body { background: #fff; }
  .top, footer, .status, table.info, .actions, .card h2, section.card:not(:has(canvas)) { display: none !important; }
  main { margin: 0; padding: 0; max-width: none; } .card { box-shadow: none; padding: 0; margin: 0; }
  canvas.cert { box-shadow: none; border-radius: 0; }
}
