/* Remove global styles to avoid header conflicts - box-sizing is already set globally */
.certificate-scroll-container,
.certificate-print-root,
.certificate-details-section {
  box-sizing: border-box;
}

.certificate-scroll-container *,
.certificate-print-root *,
.certificate-details-section * {
  box-sizing: border-box;
}

/* Certificate Scrollable Container */
.certificate-scroll-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  padding: 20px 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

.certificate-scroll-container::-webkit-scrollbar {
  height: 8px;
}

.certificate-scroll-container::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.certificate-scroll-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.certificate-scroll-container::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.certificate-print-root {
  display: block;
  width: 297mm;
  height: 210mm;
  min-width: 297mm;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

/* Certificate Actions */
.certificate-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 20px auto;
  padding: 0 20px;
  max-width: 297mm;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  min-width: 80px;
}

.btn-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-verify:hover {
  background: linear-gradient(135deg, #059669, #047857) !important;
  color: white !important;
}

.btn-print:hover {
  background: linear-gradient(135deg, #0d1b69, #0a1447) !important;
  color: white !important;
}

.btn-verify {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.btn-print {
  background: linear-gradient(135deg, #1a237e, #0d1b69);
  color: white;
}

.btn-pdf {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
}

.btn-pdf:hover {
  background: linear-gradient(135deg, #b91c1c, #991b1b) !important;
  color: white !important;
}

.btn-action i {
  font-size: 16px;
}

.btn-action span {
  font-size: 13px;
  font-weight: 600;
}

#certificate {
  position: absolute;
  left: 8mm;
  top: 8mm;
  width: 281mm;
  height: 194mm;
  margin: 0;
  background-image: url('/images/blue_and_gold.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  padding: 12mm;
  box-shadow: none;
  position: relative;
}

.title {
  text-align: center;
  color: #0d1b69;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 44px;
  margin: 12px 0 12px 0;
  position: relative;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 4px;
  background: #C49A3B;
}

.subtitle {
  text-align: center;
  color: #b8860b;
  font-weight: 600;
  letter-spacing: 1.5px;
  font-size: 24px;
  margin: 15px 0 14px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.lead {
  display: none;
}

.name {
  text-align: center;
  color: #0d1b69;
  font-weight: 900;
  font-size: 52px;
  letter-spacing: 1.5px;
  margin: 25px 0 30px 0;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
  line-height: 1.1;
}

.description {
  text-align: center;
  color: #2c2c2c;
  font-size: 18px;
  line-height: 1.8em;
  margin: 4px auto 0 auto;
  max-width: 75ch;
  font-weight: 500;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #B07F2C 15%, #B07F2C 85%, transparent 100%);
  border-radius: 1px;
  margin: 20px 6%;
}

.signatures {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: absolute;
  left: 50px;
  right: 50px;
  bottom: 60px;
  gap: 50px;
  color: #14213d;
}

.signature {
  text-align: center;
  width: 30%;
}

.center-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 40%;
  margin-top: 15px;
}

.main-logo {
  height: 100px;
  width: 140px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  margin-bottom: 6px;
}

.logo-tagline {
  color: #000000;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2px;
  text-align: center;
}

.signature .sig-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: 35px;
  object-fit: contain;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 8px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
  opacity: 0.9;
}

.signature .name-line {
  border-bottom: 3px solid #caa03a;
  margin: 0 auto 8px auto;
  width: 85%;
}

.signature .full-name {
  font-weight: 600;
  font-size: 14px;
  color: #1a237e;
  margin-bottom: 4px;
}

.signature .role {
  color: #000000;
  font-size: 12px;
  font-weight: 500;
  margin-top: 2px;
}

#seal {
  position: static;
  color: #caa03a;
  font-size: 50px;
  line-height: 1;
  margin: 0 12px;
  pointer-events: none;
}

#qr {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #ffffff;
  border: 2px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#qr:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.qr-link {
  text-decoration: none;
  color: inherit;
}

.qr-code-text {
  display: none;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 120mm;
  margin: 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.bottom-left,
.bottom-right {
  display: none;
}

.top-left-qr {
  display: none;
}

.qr-wrapper {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  overflow: hidden;
}

.qr-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.meta-row {
  position: absolute;
  left: 50px;
  right: 50px;
  bottom: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 2;
  flex-wrap: nowrap;
}

.meta-row .qr-link {
  flex-shrink: 0;
}

.meta-row .meta-inline {
  margin: 0;
  color: #1a237e;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2px;
  display: inline-flex;
  align-items: center;
  flex-shrink: 1;
  white-space: nowrap;
}

.meta-row .meta-inline .label {
  color: #7a8099;
  font-weight: 700;
  margin-right: 6px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.meta-row .meta-inline .sep {
  color: #C49A3B;
  margin: 0 10px;
  font-weight: 700;
}

.meta-row .meta-inline .value {
  color: #1a237e;
  font-weight: 600;
  font-size: 13px;
}

.meta-inline {
  margin: 0;
  color: #1a237e;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2px;
}

.meta-inline .label {
  color: #7a8099;
  font-weight: 700;
  margin-right: 6px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.meta-inline .sep {
  color: #C49A3B;
  margin: 0 10px;
  font-weight: 700;
}

.meta-inline .value {
  color: #1a237e;
  font-weight: 600;
  font-size: 13px;
}

.lider-logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 30%;
}

.lider-logo {
  height: 100px;
  width: 140px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
  margin-bottom: 5px;
}

.lider-logo-text {
  color: #000000;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

/* ===========================================
   PRINT STYLES - A4 Landscape
   =========================================== */
@media print {

  /* Page setup for A4 landscape */
  @page {
    size: A4 landscape;
    margin: 0;
  }

  /* Body and HTML print setup */
  html,
  body {
    width: 297mm;
    height: 210mm;
    margin: 0;
    padding: 0;
    background: #fff;
    overflow: hidden;
  }

  body {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Hide all elements except certificate */
  body * {
    visibility: hidden;
  }

  /* Hide scroll container padding/margins in print */
  .certificate-scroll-container {
    padding: 0;
    margin: 0;
    overflow: visible;
  }

  /* Show only certificate print root */
  .certificate-scroll-container,
  .certificate-print-root {
    visibility: visible;
    position: fixed;
    left: 0;
    top: 0;
    width: 297mm;
    height: 210mm;
    margin: 0;
    padding: 0;
    page-break-after: avoid;
    page-break-before: avoid;
    overflow: hidden;
  }

  .certificate-print-root * {
    visibility: visible;
  }

  /* Hide top meta and actions in print */
  .certificate-top-meta {
    display: none !important;
  }

  .certificate-top-meta .meta-actions {
    display: none !important;
  }

  /* Hide certificate actions in print */
  .certificate-actions {
    display: none !important;
  }

  /* Certificate positioning and sizing for print */
  #certificate {
    position: absolute;
    left: 8mm;
    top: 8mm;
    box-shadow: none;
    margin: 0;
    width: 281mm;
    height: 194mm;
    padding: 12mm;
    background-image: url('/images/blue_and_gold.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
  }

  /* Content adjustments for print */
  #certificate .content {
    padding-top: 8mm;
    margin-top: 0;
    height: auto;
  }

  #certificate .meta-row {
    position: absolute;
    bottom: 180px;
    left: 50px;
    right: 50px;
  }

  /* Signature area adjustments */
  #certificate .signatures {
    position: absolute;
    bottom: 80px;
    left: 50px;
    right: 50px;
  }

  #certificate .signature .full-name {
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 600;
  }

  #certificate .signature .role {
    margin-top: 2px;
    font-size: 12px;
    font-weight: 500;
  }

  /* Logo sizing for print */
  #certificate .main-logo {
    height: 100px;
    width: 140px;
  }

  #certificate .lider-logo {
    height: 100px;
    width: 140px;
  }

  #certificate .logo-tagline {
    font-size: 12px;
    font-weight: 500;
  }

  #certificate .lider-logo-text {
    font-size: 12px;
    font-weight: 500;
  }

  /* Title sizing for print */
  #certificate .title {
    font-size: 44px;
  }

  #certificate .subtitle {
    font-size: 24px;
  }

  #certificate .name {
    font-size: 52px;
  }

  /* Hide details section in print */
  .certificate-details-section {
    display: none !important;
  }
}

/* ===========================================
   CERTIFICATE DETAILS SECTION
   =========================================== */
.certificate-details-section {
  max-width: 1200px;
  margin: 60px auto 40px;
  padding: 0 20px;
}

.details-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

/* --------- Responsive layout enhancements for details --------- */
@media (max-width: 1200px) {
  .certificate-details-section {
    padding: 0 16px;
  }

  .details-container {
    gap: 20px;
  }

  .detail-card {
    padding: 22px;
  }
}

@media (max-width: 1024px) {
  .details-container {
    grid-template-columns: 1fr;
  }
}

/* Detail Cards */
.detail-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  margin-bottom: 24px;
}

.detail-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 16px;
  display: block;
}

.card-title {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 20px;
  line-height: 1.3;
}

/* ISSUED TO Card */
.issued-to-card .card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
}

.issued-to-card .card-actions .action-btn {
  flex: 0 1 auto;
}

/* Icon buttons stay together in default view */
.issued-to-card .card-actions .action-icon-btn {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.btn-share-primary {
  background: linear-gradient(135deg, #0a66c2, #004182);
  color: white;
  box-shadow: 0 2px 8px rgba(10, 102, 194, 0.3);
}

.btn-share-primary:hover {
  background: linear-gradient(135deg, #004182, #003d75);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(10, 102, 194, 0.4);
}

.btn-linkedin-white {
  background: #ffffff;
  color: #0a66c2;
  border: 2px solid #0a66c2;
}

.btn-linkedin-white:hover {
  background: #f0f7ff;
  transform: translateY(-1px);
}

.action-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 16px;
}

.action-icon-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #111827;
  transform: translateY(-1px);
}

.contact-info {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #f3f4f6;
  font-size: 13px;
  color: #6b7280;
}

.contact-link {
  color: #0a66c2;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: #004182;
  text-decoration: underline;
}

/* VERIFICATION Card */
.verification-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  border: 1px solid #d1fae5;
}

.verification-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #059669;
  margin-bottom: 20px;
}

.verification-label i {
  font-size: 16px;
}

.verification-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.verification-date {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

.info-value {
  font-size: 15px;
  color: #111827;
  font-weight: 600;
}

.verify-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  width: fit-content;
  cursor: pointer;
  font-family: inherit;
}

.verify-btn:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.credential-id {
  display: flex;
  gap: 8px;
  font-size: 13px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

.id-label {
  color: #6b7280;
  font-weight: 500;
}

.id-value {
  color: #111827;
  font-weight: 600;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.5px;
}

/* ISSUED BY Card */
.card-description {
  font-size: 14px;
  line-height: 1.7;
  color: #374151;
  margin-top: 12px;
}

/* Credential Attributes */
.credential-attributes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* two per row */
  gap: 10px;
  margin-bottom: 24px;
}

.attribute-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.attribute-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.attribute-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f4f6 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06), inset 0 1px 0 rgba(255, 255, 255, .6);
  border: 1px solid rgba(0, 0, 0, .05);
  color: #0a66c2;
  font-size: 18px;
}

.attribute-content {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex: 1;
}

.attribute-label {
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 88px;
}

.attribute-value {
  font-size: 14px;
  color: #111827;
  font-weight: 700;
  line-height: 1.4;
}

/* Attribute icon color variants */
.credential-attributes .attribute-card:nth-child(1) .attribute-icon {
  color: #4f46e5;
  background: linear-gradient(180deg, #eef2ff, #ffffff);
}

.credential-attributes .attribute-card:nth-child(2) .attribute-icon {
  color: #d97706;
  background: linear-gradient(180deg, #fff7ed, #ffffff);
}

.credential-attributes .attribute-card:nth-child(3) .attribute-icon {
  color: #0284c7;
  background: linear-gradient(180deg, #e0f2fe, #ffffff);
}

.credential-attributes .attribute-card:nth-child(4) .attribute-icon {
  color: #14b8a6;
  background: linear-gradient(180deg, #ccfbf1, #ffffff);
}

/* Description Card */
.description-title {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
  line-height: 1.3;
}

.description-content {
  font-size: 14px;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 20px;
}

.description-content p {
  margin-bottom: 12px;
}

.description-content p:last-child {
  margin-bottom: 0;
}

.learn-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0a66c2;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.learn-more-link:hover {
  color: #004182;
  gap: 10px;
}

.learn-more-link i {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.learn-more-link:hover i {
  transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 968px) {
  .certificate-scroll-container {
    padding: 15px 5px;
  }

  .details-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .credential-attributes {
    grid-template-columns: repeat(2, 1fr);
  }

  .issued-to-card .card-actions {
    gap: 8px;
  }

  .card-title {
    font-size: 22px;
  }

  .attribute-label {
    min-width: 84px;
  }
}

@media (max-width: 640px) {
  .certificate-scroll-container {
    padding: 10px 5px;
  }

  .certificate-details-section {
    margin: 40px auto 30px;
    padding: 0 16px;
  }

  .detail-card {
    padding: 20px;
  }

  .card-title {
    font-size: 20px;
  }

  .description-title {
    font-size: 18px;
  }

  .credential-attributes {
    grid-template-columns: 1fr;
    /* single column on small screens */
  }

  .issued-to-card .card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  /* Text buttons - each on separate row, full width */
  .issued-to-card .card-actions .action-btn {
    width: 100%;
    flex: 0 0 auto;
    justify-content: center;
    white-space: nowrap;
    font-size: 13px;
    padding: 10px 14px;
  }

  /* Icon buttons group - wrapper for icon buttons */
  .issued-to-card .card-actions .icon-buttons-group {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
  }

  /* Icon buttons inside the group */
  .issued-to-card .card-actions .icon-buttons-group .action-icon-btn {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    font-size: 18px;
    flex-shrink: 0;
  }

  .attribute-icon {
    width: 40px;
    height: 40px;
  }

  .attribute-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .attribute-label {
    min-width: 0;
    font-size: 11px;
  }

  .attribute-value {
    font-size: 13px;
  }
}

/* ===========================================
   VERIFICATION MODAL
   =========================================== */
.verification-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1060;
  backdrop-filter: blur(4px);
}

.verification-modal {
  background: #ffffff;
  border-radius: 16px;
  width: 680px;
  max-width: calc(100% - 32px);
  max-height: 90vh;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.verification-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid #e5e7eb;
}

.verification-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

.verification-modal-close {
  background: none;
  border: 0;
  font-size: 20px;
  cursor: pointer;
  color: #6b7280;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.verification-modal-close:hover {
  background: #f3f4f6;
  color: #111827;
}

.verification-modal-body {
  padding: 28px;
  overflow-y: auto;
  flex: 1;
}

/* Verification Steps */
.verification-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  overflow: visible;
}

.verification-step {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  /* reduced vertical spacing */
  position: relative;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  overflow: visible;
}

.verification-step.step-active {
  opacity: 1;
}

.verification-step.step-completed {
  opacity: 1;
}

.step-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 30;
  transition: all 0.4s ease;
}

.step-icon.step-pending {
  background: #e5e7eb;
  color: #9ca3af;
}

.step-icon.step-active {
  background: #0a66c2;
  color: #ffffff;
  animation: pulse 1.5s ease-in-out infinite;
}

.step-icon.step-completed {
  background: #10b981;
  color: #ffffff;
}

.step-number {
  font-size: 16px;
  font-weight: 700;
}

.step-icon.step-completed .step-number {
  display: none;
}

.step-icon.step-completed::after {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 18px;
}

.step-content {
  flex: 1;
  padding-top: 2px;
  position: relative;
  z-index: 30;
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.verification-step.step-pending .step-title {
  color: #9ca3af;
}

.step-info-icon {
  color: #0a66c2;
  font-size: 14px;
}

.step-description {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
}

.verification-step.step-pending .step-description {
  color: #9ca3af;
}

.verification-step.step-active .step-description,
.verification-step.step-completed .step-description {
  color: #374151;
}

/* Connecting Line */
.verification-steps {
  position: relative;
  padding-left: 0;
}

.verification-steps::before {
  display: none;
}

.verification-step {
  position: relative;
  z-index: 1;
}

.verification-step::after {
  content: '';
  position: absolute;
  left: 20px;
  top: 52px;
  /* slightly tighter below icon */
  bottom: -16px;
  /* slightly tighter above next icon */
  width: 2px;
  background: #e5e7eb;
  z-index: 0;
  transition: background 0.4s ease;
  pointer-events: none;
}

.verification-step.step-active::after {
  background: #0a66c2;
}

.verification-step.step-completed::after {
  background: #10b981;
}

.verification-step:last-child::after {
  display: none;
}

.verification-step:last-child~.verification-steps::before {
  display: none;
}

/* Final Result */
.verification-result {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  animation: slideIn 0.5s ease-out;
}

.result-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 24px;
}

.result-content {
  flex: 1;
}

.result-title {
  font-size: 18px;
  font-weight: 700;
  color: #065f46;
  margin-bottom: 8px;
}

.result-description {
  font-size: 14px;
  color: #047857;
  line-height: 1.6;
}

/* Animations */
@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(10, 102, 194, 0.4);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 8px rgba(10, 102, 194, 0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 640px) {
  .verification-modal {
    width: calc(100% - 16px);
    max-height: 95vh;
  }

  .verification-modal-header {
    padding: 20px;
  }

  .verification-modal-body {
    padding: 20px;
  }

  .verification-step {
    padding: 16px 0;
  }

  .step-icon {
    width: 36px;
    height: 36px;
  }

  .step-number {
    font-size: 14px;
  }

  .step-title {
    font-size: 15px;
  }

  .step-description {
    font-size: 13px;
  }
}