/* =========================================
   Ingle Performance Certificate (Diploma)
========================================= */

.ingle-perf-cert {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Main frame */
.ingle-perf-cert-frame {
  position: relative;
  width: 100%;
  max-width: 680px;
  padding: 28px 26px 30px;

  background: linear-gradient(180deg, #fffdf7 0%, #f7f1e3 100%);
  border: 10px solid #d6c3a3;
  border-radius: 8px;

  box-shadow:
    inset 0 0 0 2px #f4e9d8,
    0 12px 30px rgba(0,0,0,0.18);
}

/* Inner border lines */
.ingle-perf-cert-frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid #e5d3b3;
}

.ingle-perf-cert-frame::after {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(181,149,82,0.4);
}

/* Header */
.ingle-perf-cert-header {
  text-align: center;
  margin-bottom: 14px;
}

.ingle-perf-cert-title {
  font-family: "Times New Roman", serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #1f1f1f;
}

.ingle-perf-cert-subtitle {
  font-size: 13px;
  color: #6b7280;
  margin-top: 6px;
}

/* Name */
.ingle-perf-cert-name {
  text-align: center;
  font-family: "Times New Roman", serif;
  font-size: 30px;
  font-weight: 700;
  margin: 16px 0 12px;
  border-bottom: 1px solid #cbb88a;
  padding-bottom: 6px;
}

/* Meta */
.ingle-perf-cert-meta {
  text-align: center;
  font-size: 13px;
  margin-bottom: 16px;
  color: #374151;
}

/* Scores grid */
.ingle-perf-cert-scores {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.ingle-perf-cert-scores div {
  text-align: center;
  padding: 6px 4px;
  border-top: 1px solid #e5d3b3;
  font-size: 14px;
}

/* Sections */
.ingle-perf-cert-section {
  margin-bottom: 14px;
}

.ingle-perf-cert-section .title {
  font-size: 12px;
  font-weight: 700;
  color: #8a6d2f;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.ingle-perf-cert-question,
.ingle-perf-cert-transcript {
  font-size: 14px;
  line-height: 1.55;
  color: #1f2937;
}

/* Signature strip */
.cert-signature-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  margin: 24px 0 10px;
  gap: 10px;
}

.cert-sig-left,
.cert-sig-right {
  text-align: center;
  font-size: 12px;
}

.cert-sig-line {
  width: 80%;
  margin: 0 auto 6px;
  border-top: 1px solid #8b8b8b;
}

.cert-sig-label {
  font-size: 11px;
  color: #6b7280;
  text-transform: uppercase;
}

.cert-sig-value {
  font-size: 13px;
  font-weight: 600;
}

.cert-sig-name {
  font-family: "Brush Script MT", cursive;
  font-size: 20px;
  margin-bottom: 2px;
}

/* Seal */
.cert-seal-wrap {
  display: flex;
  justify-content: center;
}

.cert-seal {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle, #c0392b, #8e1b1b);
  box-shadow: 0 0 8px rgba(0,0,0,0.25);
  position: relative;
}

.cert-seal::after {
  content: "VOX";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 11px;
  font-weight: 700;
}

/* Footer */
.ingle-perf-cert-note {
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  margin-top: 12px;
}

.ingle-perf-cert-actions {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

/* Ensure modal centers it */
.shell-modal-work {
  display: flex;
  justify-content: center;
}
.ingle-perf-cert-frame {
  overflow: hidden;
}

.ingle-perf-cert-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Times New Roman", serif;
  font-size: 110px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(160, 140, 95, 0.08);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  transform: rotate(-18deg);
}

.ingle-perf-cert-frame > *:not(.ingle-perf-cert-watermark) {
  position: relative;
  z-index: 1;
}
.ingle-perf-cert-verify {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  color: #6b7280;
  word-break: break-word;
}
@media print {
  .cert-signature-strip,
  .ingle-perf-cert-note,
  .ingle-perf-cert-disclaimer,
  .ingle-perf-cert-actions {
    page-break-inside: avoid;
  }

  .ingle-perf-cert-frame::before,
  .ingle-perf-cert-frame::after {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .cert-seal {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
#ingleShellModal .shell-modal-layout.is-no-media {
  grid-template-columns: 1fr;
}

#ingleShellModal .shell-modal-layout.is-no-media .shell-modal-main {
  width: 100%;
}

#ingleShellModal .shell-modal-layout.is-no-media .shell-modal-work {
  display: flex;
  justify-content: center;
}
@media print {
  .cert-signature-strip,
  .ingle-perf-cert-note,
  .ingle-perf-cert-disclaimer,
  .ingle-perf-cert-actions {
    page-break-inside: avoid;
  }

  .ingle-perf-cert-frame::before,
  .ingle-perf-cert-frame::after {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .cert-seal {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
@page {
  size: letter portrait;
  margin: 0.45in;
}

@media print {
  html, body {
    width: 8.5in;
    height: 11in;
    margin: 0;
    padding: 0;
    background: #fff;
  }

  body {
    padding: 0;
  }

  .print-cert-wrap {
    display: block;
    width: 100%;
  }

  .ingle-perf-cert {
    width: 100%;
    display: block;
  }

  .ingle-perf-cert-frame {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0.28in 0.26in 0.3in;
    border-width: 7px;
    box-shadow: none;
    page-break-inside: avoid;
    box-sizing: border-box;
  }

  .ingle-perf-cert-frame::before {
    inset: 10px;
  }

  .ingle-perf-cert-frame::after {
    inset: 15px;
  }

  .ingle-perf-cert-title {
    font-size: 28px;
  }

  .ingle-perf-cert-name {
    font-size: 24px;
    max-width: 100%;
  }

  .ingle-perf-cert-summary,
  .ingle-perf-cert-note,
  .ingle-perf-cert-disclaimer,
  .ingle-perf-cert-verify {
    font-size: 11px;
    line-height: 1.4;
  }

  .ingle-perf-cert-question,
  .ingle-perf-cert-transcript {
    font-size: 13px;
    line-height: 1.45;
  }

  .ingle-perf-score-value {
    font-size: 24px;
  }

  .ingle-perf-cert-actions {
    display: none !important;
  }

  .cert-seal,
  .ingle-perf-cert-frame::before,
  .ingle-perf-cert-frame::after {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
/* =========================================
   Certificate Modal Buttons
========================================= */

.ws-btn {
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(60, 90, 130, 0.2);
  background: #f9fafb;
  color: #1f2937;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ws-btn:hover {
  background: #f3f4f6;
}

/* Primary = Print / PDF */
.ws-btn.primary {
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  color: #fff;
  border: none;
  font-weight: 600;
}

.ws-btn.primary:hover {
  background: linear-gradient(135deg, #1e40af, #2563eb);
}

/* Secondary (Close) */
.ws-btn.secondary {
  background: #f9fafb;
  color: #374151;
}

/* Optional: subtle spacing */
.shell-modal-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}
/* Footer for PDF */
.ingle-perf-cert-footer {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* Smaller QR */
.ingle-perf-cert-qr img {
  width: 80px;
  height: 80px;
  border: 1px solid rgba(0,0,0,0.15);
  padding: 4px;
  background: #fff;
}

/* Print URL (clean, centered) */
.ingle-perf-cert-verify-print {
  font-size: 11px;
  color: #444;
  text-align: center;
  word-break: break-word;
}

/* Screen verify */
.ingle-perf-cert-verify {
  margin-top: 10px;
  text-align: center;
}

.ingle-perf-cert-verify-link {
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: underline;
}
.ia-achievement-card {
  max-width: 420px;
  margin: 0 auto;
  padding: 24px 22px 22px;
  text-align: center;
  border-radius: 24px;
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.9), rgba(255,255,255,0.96)),
    #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.ia-achievement-badge {
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f1e8;
  box-shadow: inset 0 0 0 1px rgba(17,24,39,0.06);
}

.ia-achievement-badge-inner {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  background: #b91c1c;
  box-shadow: 0 10px 24px rgba(0,0,0,0.14);
}

.ia-achievement-gold .ia-achievement-badge-inner {
  background: linear-gradient(135deg, #b7791f, #f6d365);
  color: #111827;
}

.ia-achievement-silver .ia-achievement-badge-inner {
  background: linear-gradient(135deg, #6b7280, #e5e7eb);
  color: #111827;
}

.ia-achievement-rookie .ia-achievement-badge-inner {
  background: linear-gradient(135deg, #2563eb, #93c5fd);
}

.ia-achievement-hall .ia-achievement-badge-inner {
  background: linear-gradient(135deg, #111827, #6b7280);
}

.ia-achievement-kicker {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.ia-achievement-title {
  font-size: 30px;
  line-height: 1.1;
  font-weight: 800;
  color: #111827;
  margin-bottom: 12px;
}

.ia-achievement-message {
  font-size: 16px;
  line-height: 1.45;
  color: #374151;
  max-width: 340px;
  margin: 0 auto 20px;
}

.ia-achievement-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0;
}

.ia-achievement-meta div {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 10px;
  font-size: 13px;
  color: #111827;
  background: #fafafa;
}

.ia-achievement-meta span {
  display: block;
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 3px;
}

.ia-achievement-note {
  font-size: 14px;
  line-height: 1.45;
  color: #6b7280;
  margin: 16px auto 0;
  max-width: 340px;
}

.ia-achievement-actions {
  margin-top: 20px;
}

@media (max-width: 520px) {
  .ia-achievement-card {
    max-width: none;
    padding: 22px 16px;
  }

  .ia-achievement-title {
    font-size: 26px;
  }

  .ia-achievement-meta {
    grid-template-columns: 1fr;
  }
}
.ingl-modal-media video {
  max-width: 220px;
  margin: 0 auto;
  display: block;
  border-radius: 12px;
}