/* 📜 Specialized Certificate Styles (V11 - Absolute Precision) */
.cert-modal-body {
  padding: 20px;
  background: #f0f2f5;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cert-container {
  width: 860px;
  height: 580px;
  background: #fffdf2;
  position: relative;
  border: 18px solid #d4af37;
  border-image: repeating-linear-gradient(45deg, #d4af37, #f1c40f 10%, #d4af37 20%) 18;
  box-shadow: 0 0 0 2px #b8860b, 0 20px 50px rgba(0, 0, 0, 0.25);
  padding: 25px 40px;
  box-sizing: border-box;
  font-family: "STKaiti", "Kaiti SC", "楷体", serif;
  overflow: hidden;
  color: #333;
}

/* Corner Wheat Ear Decorations */
.cert-container::before,
.cert-container::after {
  content: '🌾';
  position: absolute;
  font-size: 40px;
  color: #d4af37;
  z-index: 10;
  opacity: 0.8;
}

.cert-container::before {
  top: 5px;
  left: 5px;
  transform: rotate(-45deg);
}

.cert-container::after {
  top: 5px;
  right: 5px;
  transform: rotate(45deg);
}

.cert-inner {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 15px 25px;
  box-sizing: border-box;
}

/* Bottom corner wheat ears */
.cert-inner::before,
.cert-inner::after {
  content: '🌾';
  position: absolute;
  font-size: 40px;
  color: #d4af37;
  z-index: 10;
  opacity: 0.8;
}

.cert-inner::before {
  bottom: -10px;
  left: -10px;
  transform: rotate(-135deg);
}

.cert-inner::after {
  bottom: -10px;
  right: -10px;
  transform: rotate(135deg);
}

.cert-header {
  text-align: center;
  margin-bottom: 10px;
}

.cert-header-badge {
  display: inline-block;
  background: #d4af37;
  color: #fff;
  font-size: 14px;
  padding: 2px 10px;
  border-radius: 4px;
  margin-bottom: 2px;
  letter-spacing: 2px;
}

.cert-title-big {
  color: #d4af37;
  font-size: 64px;
  margin: 0;
  letter-spacing: 45px;
  padding-left: 45px;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.05);
}

.cert-body-area {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 85%;
}

.cert-greeting {
  font-size: 26px;
  font-weight: bold;
  color: #333;
}

.cert-body-p {
  font-size: 20px;
  line-height: 1.6;
  color: #444;
  text-indent: 2em;
  text-align: justify;
}

.cert-highlight-msg {
  font-size: 24px;
  font-weight: bold;
  color: #b8860b;
}

.cert-promise {
  font-size: 15px;
  color: #666;
  font-style: italic;
}

/* 🎯 ABSOLUTE POSITIONING FOR FOOTER ELEMENTS - GUARANTEED INSIDE */
.cert-footer-info {
  position: absolute;
  bottom: 10px;
  /* Pushed further down */
  left: 60px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 20;
}

.cert-footer-item {
  font-size: 16px;
  color: #333;
  font-weight: 600;
  white-space: nowrap;
}

.cert-footer-medal-wrap {
  position: absolute;
  bottom: 10px;
  /* Pushed further down */
  right: 60px;
  width: 170px;
  height: 170px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
}

.cert-wreath-medal {
  width: 150px;
  height: 150px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-wreath-inner {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 40% 35%, #fffef8 0%, #fff4dc 55%, #fde68a 100%);
  border: 4px dashed rgba(217, 119, 6, .65);
  box-shadow:
    0 0 0 2px rgba(251, 191, 36, .45),
    0 4px 18px rgba(245, 158, 11, .25),
    inset 0 0 0 2px rgba(255, 255, 255, .5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-medal-ribbon {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 40px;
  background: linear-gradient(135deg, #d4af37, #b8860b);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
  z-index: 3;
}

.cert-pet-img-fixed {
  width: 90px;
  height: 90px;
  object-fit: contain;
}

.cert-stamp-modern {
  position: absolute;
  left: 50%;
  bottom: 80px;
  font-size: 110px;
  opacity: 0.1;
  color: #d4af37;
  transform: translateX(-50%) rotate(-15deg);
  pointer-events: none;
  z-index: 0;
}

.cert-export-btn-wrap {
  margin-top: 25px;
  display: flex;
  gap: 15px;
  justify-content: center;
}