.website-cert-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

@font-face {
  font-family: "Shabnam";
  src: url("/fonts/Shabnam.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Shabnam";
  src: url("/fonts/Shabnam-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Shabnam";
  src: url("/fonts/Shabnam-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

.website-cert-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
}

.website-cert-toolbar button,
.website-cert-toolbar a {
  border-radius: 0.75rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.website-cert-print-btn {
  border: none;
  background: #047857;
  color: #fff;
}

.website-cert-print-btn:hover {
  background: #065f46;
}

.website-cert-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c4b5fd;
  background: #f5f3ff;
  color: #5b21b6;
  text-decoration: none;
}

.website-cert-download-btn:hover:not(:disabled) {
  background: #ede9fe;
}

.website-cert-download-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.website-cert-sheet {
  position: relative;
  width: min(100%, 794px);
  min-height: auto;
  overflow: hidden;
  border: 1px solid #dbeafe;
  background: #fff;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  color: #0f172a;
  font-family: "Shabnam", Tahoma, sans-serif;
}

.website-cert-sheet,
.website-cert-sheet * {
  font-family: "Shabnam", Tahoma, sans-serif;
}

.website-cert-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 2rem 2.5rem 5.5rem;
}

.website-cert-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.website-cert-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.website-cert-brand img {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.9rem;
  background: #ecfdf5;
  padding: 0.55rem;
}

.website-cert-brand-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f766e;
}

.website-cert-brand-sub {
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: #64748b;
}

.website-cert-heading {
  margin: 1.25rem 0 1rem;
  text-align: center;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1d4ed8;
}

.website-cert-fields {
  margin: 0 auto;
  width: min(100%, 34rem);
  display: grid;
  gap: 0.55rem;
}

.website-cert-field {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px dotted #cbd5e1;
  padding-bottom: 0.35rem;
  font-size: 0.92rem;
  line-height: 1.8;
}

.website-cert-field-label {
  flex-shrink: 0;
  font-weight: 700;
  color: #334155;
}

.website-cert-field-value {
  text-align: left;
  font-weight: 600;
  color: #0f172a;
}

.website-cert-field-value[dir="ltr"] {
  direction: ltr;
  unicode-bidi: plaintext;
}

.website-cert-body {
  margin: 1rem auto 0;
  width: min(100%, 36rem);
  text-align: justify;
  font-size: 0.88rem;
  line-height: 1.95;
  color: #1e293b;
}

.website-cert-footer-meta {
  margin-top: 1.25rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding-top: 0.75rem;
}

.website-cert-sign {
  min-width: 11rem;
}

.website-cert-sign-text {
  position: relative;
  display: inline-block;
  min-width: 9rem;
  padding: 0.35rem 0;
  text-align: right;
  isolation: isolate;
}

.website-cert-sign-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
}

.website-cert-sign-role {
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: #475569;
}

.website-cert-seal {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 6.75rem;
  height: 6.75rem;
  object-fit: contain;
  transform: translate(-50%, -50%) rotate(-12deg);
  pointer-events: none;
}

.website-cert-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.website-cert-qr-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.5rem;
  height: 5.5rem;
  background: #fff;
  padding: 0;
}

.website-cert-qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.25rem;
}

.website-cert-qr-caption {
  font-size: 0.68rem;
  color: #475569;
}

.website-cert-wave {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 4.5rem;
  pointer-events: none;
}

.website-cert-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

@media print {
  body * {
    visibility: hidden;
  }

  .website-cert-sheet,
  .website-cert-sheet * {
    visibility: visible;
  }

  .website-cert-sheet {
    position: absolute;
    left: 0;
    top: 0;
    width: 210mm;
    min-height: 297mm;
    border: none;
    box-shadow: none;
  }

  .website-cert-no-print {
    display: none !important;
  }
}
