:root {
  --bg-primary: #0d0f17;
  --bg-secondary: #13161f;
  --bg-tertiary: #1a1d2e;
  --bg-hover: #1f2235;
  --accent-primary: #7c3aed;
  --accent-second: #a855f7;
  --accent-glow: #6d28d9;
  --neon-green: #10b981;
  --neon-red: #ef4444;
  --neon-yellow: #f59e0b;
  --neon-cyan: #06b6d4;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #2a2d3e;
  --border-active: #7c3aed;
  --gold: #f59e0b;
  --silver: #94a3b8;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 10%, rgba(124, 58, 237, 0.18), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(6, 182, 212, 0.12), transparent 28%),
    var(--bg-primary);
  color: var(--text-primary);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.7;
}

body.print-mode {
  background: #fff;
  color: #111827;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
select,
input,
textarea {
  outline-offset: 3px;
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--neon-cyan);
}

a {
  color: inherit;
  text-decoration: none;
}

code,
pre,
textarea,
.CodeMirror {
  font-family: "JetBrains Mono", Consolas, monospace;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: #4c1d95;
  border-radius: 999px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 76px;
  padding: 0.8rem clamp(1rem, 3vw, 2.4rem);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(13, 15, 23, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: Sora, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-logo {
  height: 60px;
  width: auto;
  display: block;
}

.brand-mark,
.avatar-dot {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-primary), var(--neon-cyan));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.35);
}

.nav-toggle {
  display: none;
  justify-self: end;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  cursor: pointer;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  align-items: center;
}

.nav-links a {
  position: relative;
  padding: 0.55rem 0.7rem;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.9rem;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.3rem;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-primary);
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 156px;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(26, 29, 46, 0.75);
}

.avatar-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 0.78rem;
  overflow: hidden;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-chip strong,
.profile-chip small {
  display: block;
  line-height: 1.2;
}

.profile-chip small {
  color: var(--text-secondary);
  font-size: 0.76rem;
}

#app {
  min-height: calc(100vh - 76px);
}

.page {
  width: min(1320px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.page.wide {
  width: min(1520px, calc(100% - 1.4rem));
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  overflow: hidden;
  width: min(1420px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 6rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(148, 163, 184, 0.3) 1px, transparent 1px),
    linear-gradient(120deg, rgba(124, 58, 237, 0.12), rgba(6, 182, 212, 0.08));
  background-size: 36px 36px, 100% 100%;
  mask-image: linear-gradient(90deg, #000, transparent 78%);
  pointer-events: none;
}

.hero-content,
.hero-visual {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  color: var(--neon-cyan);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: Sora, sans-serif;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 860px;
  margin: 0.8rem 0 1.2rem;
  font-size: clamp(2.5rem, 7vw, 5.9rem);
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-primary), var(--neon-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 760px;
  color: var(--text-secondary);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-actions,
.toolbar,
.button-row,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-actions {
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 42px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-weight: 800;
  cursor: pointer;
  transition: transform 300ms ease, border-color 300ms ease, background 300ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--border-active);
  background: var(--bg-hover);
}

.btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-second));
  box-shadow: 0 12px 36px rgba(124, 58, 237, 0.28);
}

.btn.cyan {
  border-color: rgba(6, 182, 212, 0.45);
  color: #b7f7ff;
  background: rgba(6, 182, 212, 0.08);
}

.btn.danger {
  border-color: rgba(239, 68, 68, 0.4);
  color: #fecaca;
}

.btn.icon {
  width: 42px;
  padding: 0;
}

.hero-visual {
  min-height: 500px;
  display: grid;
  align-content: center;
  gap: 1rem;
}

.code-window {
  border: 1px solid rgba(124, 58, 237, 0.34);
  border-radius: 8px;
  background: rgba(19, 22, 31, 0.84);
  box-shadow: var(--shadow), 0 0 60px rgba(124, 58, 237, 0.14);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--neon-red);
}

.dot:nth-child(2) {
  background: var(--neon-yellow);
}

.dot:nth-child(3) {
  background: var(--neon-green);
}

.code-window pre {
  margin: 0;
  padding: 1rem;
  min-height: 260px;
  overflow: auto;
  color: #dbeafe;
  font-size: 0.92rem;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.stat-card,
.card,
.panel,
.lesson-shell > *,
.project-card,
.challenge-card,
.badge-card,
.cheat-card,
.question-card {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: rgba(19, 22, 31, 0.82);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.stat-card {
  padding: 1rem;
}

.stat-card strong {
  display: block;
  font-family: Sora, sans-serif;
  font-size: 1.35rem;
}

.stat-card span {
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.section {
  padding: 4rem 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.4rem;
}

.section-head p,
.muted {
  color: var(--text-secondary);
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid.features {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.cards-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.panel,
.project-card,
.challenge-card,
.badge-card,
.cheat-card,
.question-card {
  padding: 1rem;
}

.card {
  transition: transform 300ms ease, border-color 300ms ease;
}

.card:hover,
.project-card:hover,
.challenge-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.5);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.8rem;
  border-radius: 8px;
  color: #d8b4fe;
  background: rgba(124, 58, 237, 0.14);
}

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
}

.accordion-body {
  display: none;
  padding-bottom: 1rem;
  color: var(--text-secondary);
}

.accordion-item.open .accordion-body {
  display: block;
}

.layout-3 {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 360px;
  gap: 1rem;
  align-items: start;
}

.roadmap-map {
  position: relative;
  display: grid;
  gap: 1.2rem;
  padding: 1rem;
}

.roadmap-map::before {
  content: "";
  position: absolute;
  top: 2rem;
  bottom: 2rem;
  left: 2.1rem;
  border-left: 2px dashed rgba(148, 163, 184, 0.24);
}

.road-node {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0.9rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-tertiary);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.road-node:hover:not(.locked) {
  transform: translateX(6px);
  border-color: var(--neon-cyan);
}

.road-node.locked {
  opacity: 0.5;
  filter: grayscale(1);
  cursor: not-allowed;
}

.road-node.completed {
  border-color: rgba(16, 185, 129, 0.6);
}

.road-node.current {
  border-color: rgba(124, 58, 237, 0.75);
  box-shadow: 0 0 34px rgba(124, 58, 237, 0.18);
}

.road-node strong,
.road-node small {
  display: block;
  text-align: left;
}

.road-node strong {
  margin-bottom: 0.2rem;
  color: var(--text-primary);
  font-size: 1.05rem;
}

.road-node small {
  font-size: 0.85rem;
  line-height: 1.4;
}

.node-orb {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #111827;
  border: 2px solid var(--border);
  color: var(--text-primary);
  font-weight: 900;
}

.completed .node-orb {
  border-color: var(--neon-green);
  color: var(--neon-green);
}

.current .node-orb {
  border-color: var(--accent-primary);
  color: #fff;
  background: var(--accent-primary);
}

.list-nav {
  display: grid;
  gap: 0.45rem;
}

.list-nav a,
.list-nav button {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
}

.list-nav a.active,
.list-nav button.active,
.list-nav a:hover,
.list-nav button:hover {
  border-color: var(--border);
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #0f172a;
}

.progress span {
  display: block;
  height: 100%;
  width: var(--value, 0%);
  background: linear-gradient(90deg, var(--accent-primary), var(--neon-cyan));
  transition: width 300ms ease;
}

.lesson-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) minmax(360px, 0.85fr);
  gap: 1rem;
  align-items: start;
}

.lesson-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.lesson-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 28px;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 800;
}

.tag.green {
  color: #bbf7d0;
  border-color: rgba(16, 185, 129, 0.35);
}

.tag.gold {
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.35);
}

.editor-panel {
  position: sticky;
  top: 92px;
}

.editor-host {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-tertiary);
  resize: vertical;
}

.CodeMirror {
  height: 100%;
  min-height: 330px;
  font-size: 14px;
}

.playground-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr);
  gap: 1rem;
  align-items: start;
}

.terminal {
  min-height: 180px;
  max-height: 320px;
  overflow: auto;
  padding: 1rem;
  border-radius: 8px;
  background: #050816;
  color: #bbf7d0;
  white-space: pre-wrap;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.88rem;
}

.terminal.error {
  color: #fecaca;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  color: var(--text-secondary);
  font-weight: 800;
  font-size: 0.84rem;
}

.field input,
.field select,
.field textarea,
.search-input {
  width: 100%;
  min-height: 42px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.project-card,
.challenge-card {
  display: grid;
  gap: 0.8rem;
}

.card-link {
  display: block;
  color: inherit;
}

.question-option {
  display: block;
  width: 100%;
  margin-top: 0.55rem;
  padding: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
}

.question-option.correct {
  border-color: var(--neon-green);
  background: rgba(16, 185, 129, 0.12);
}

.question-option.wrong {
  border-color: var(--neon-red);
  background: rgba(239, 68, 68, 0.12);
}

.badge-card.locked {
  filter: grayscale(1);
  opacity: 0.45;
}

.badge-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #111827;
  background: var(--gold);
}

.chart-box {
  min-height: 260px;
}

.heatmap-months {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 4px;
  margin-left: 28px;
  margin-bottom: 6px;
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.heatmap-body {
  display: flex;
  gap: 8px;
}

.heatmap-days {
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  gap: 4px;
  color: var(--text-secondary);
  font-size: 0.7rem;
  text-align: right;
  padding-right: 4px;
  width: 20px;
}

.heatmap-cells {
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  grid-auto-flow: column;
  gap: 4px;
  flex: 1;
}

.heat-cell {
  aspect-ratio: 1;
  border-radius: 4px;
  background: #1e293b;
}

.heat-cell.active-1 {
  background: #4c1d95;
}

.heat-cell.active-2 {
  background: #6d28d9;
}

.heat-cell.active-3 {
  background: #8b5cf6;
}

.cheat-card pre {
  position: relative;
  overflow: auto;
  padding: 1rem;
  border-radius: 8px;
  background: #050816;
}

.toast-root {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  display: grid;
  gap: 0.7rem;
}

.toast {
  min-width: 240px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 8px;
  background: rgba(5, 8, 22, 0.92);
  color: #dcfce7;
  box-shadow: var(--shadow);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
}

.modal {
  width: min(520px, 100%);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-secondary);
  padding: 1.2rem;
}

.hidden {
  display: none !important;
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: auto auto 1fr;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem;
    border-bottom: 1px solid var(--border);
    background: rgba(13, 15, 23, 0.97);
  }

  .nav-links.open {
    display: flex;
  }

  .profile-chip {
    justify-self: end;
  }

  .hero,
  .playground-grid,
  .layout-3,
  .lesson-shell {
    grid-template-columns: 1fr;
  }

  .editor-panel {
    position: static;
  }

  .grid.features,
  .grid.cards-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar {
    grid-template-columns: auto auto;
  }

  .profile-chip {
    grid-column: 1 / -1;
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }

  .hero-visual {
    min-height: auto;
  }

  .stat-strip,
  .grid.features,
  .grid.cards-4,
  .grid.cards-3,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .CodeMirror {
    height: 260px;
  }
}

@media print {
  .topbar,
  .btn,
  .toolbar,
  .toast-root {
    display: none !important;
  }

  body,
  .page,
  .card,
  .panel,
  .cheat-card {
    background: #fff !important;
    color: #111827 !important;
    box-shadow: none !important;
  }
}

/* --- CERTIFICATE STYLES --- */

.certificate-container {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  position: relative;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease-out forwards;
}

.cert-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
}

.cert-close:hover {
  color: var(--text-primary);
}

.certificate {
  position: relative;
  background: #f8fafc;
  color: #0f172a;
  padding: 10px;
  border-radius: 4px;
}

.cert-border {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 4px double var(--color-gold);
  border-radius: 2px;
  pointer-events: none;
}

.cert-content {
  padding: 3rem 4rem;
  background-image: radial-gradient(circle at center, transparent 0%, rgba(212, 175, 55, 0.03) 100%);
}

.cert-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: var(--neon-cyan);
  margin-bottom: 2rem;
}

.cert-header i {
  font-size: 2.5rem;
  color: #38bdf8;
}

.cert-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.cert-header h2 {
  font-size: 1.5rem;
  margin: 0;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #334155;
}

.cert-title {
  font-size: 3.5rem;
  font-family: 'Times New Roman', serif;
  color: #1e293b;
  margin: 1rem 0;
}

.cert-presented {
  font-size: 1.2rem;
  color: #64748b;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.cert-name {
  font-size: 3rem;
  font-family: 'Times New Roman', serif;
  color: var(--neon-cyan);
  border-bottom: 2px solid var(--color-gold);
  display: inline-block;
  padding: 0 2rem 0.5rem;
  margin-bottom: 1.5rem;
}

.cert-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #475569;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.cert-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 2rem;
  margin-top: 2rem;
}

.cert-date, .cert-signature {
  text-align: center;
}

.cert-date span {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.signature-font {
  font-family: 'Brush Script MT', cursive;
  font-size: 2rem;
  color: #0f172a;
  display: block;
  margin-bottom: 0.2rem;
}

.cert-date hr, .cert-signature hr {
  border: 0;
  border-bottom: 1px solid #94a3b8;
  margin: 0.5rem 0;
}

.cert-date label, .cert-signature label {
  font-size: 0.9rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cert-seal {
  font-size: 4rem;
  color: var(--color-gold);
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.cert-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

@media print {
  body * {
    visibility: hidden;
  }
  .certificate, .certificate * {
    visibility: visible;
  }
  .certificate {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    box-shadow: none;
  }
  @page {
    size: landscape;
    margin: 0;
  }
}
