/* ==========================================================================
   NOBLE CARD GRADING — PUBLIC CERTIFICATE VERIFICATION REGISTRY (CGC / TAG)
   ========================================================================== */

.ncg-cert-page {
  background: #070A0F;
  color: #F8FAFC;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  padding: 60px 20px 100px 20px;
  width: 100%;
  box-sizing: border-box;
}

.ncg-cert-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.ncg-lookup-wrapper {
  max-width: 1200px;
  margin: 0 auto 75px auto;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #F8FAFC;
}

/* --------------------------------------------------------------------------
   1. TERMINAL SEARCH BOX
   -------------------------------------------------------------------------- */
.ncg-lookup-form-container {
  background: linear-gradient(145deg, #131B26 0%, #0D131C 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 16px;
  padding: 36px 32px;
  text-align: center;
  max-width: 780px;
  margin: 0 auto 30px auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(212, 175, 55, 0.12);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.ncg-lookup-form-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #D4AF37, transparent);
}

.ncg-lookup-form-container:hover {
  border-color: rgba(212, 175, 55, 0.65);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 175, 55, 0.2);
}

.ncg-lookup-input-group {
  display: flex;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.ncg-lookup-input {
  flex: 1;
  background: #070A0F;
  border: 1px solid #1E293B;
  color: #F8FAFC;
  font-family: 'Space Grotesk', monospace;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 14px 18px;
  border-radius: 10px;
  outline: none;
  transition: all 0.25s;
  text-transform: uppercase;
  box-sizing: border-box;
}

.ncg-lookup-input::placeholder {
  color: #64748B;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.ncg-lookup-input:focus {
  border-color: #D4AF37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
}

.ncg-lookup-btn {
  background: linear-gradient(135deg, #D4AF37 0%, #B89628 100%);
  color: #070A0F;
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
}

.ncg-lookup-btn:hover {
  background: #F6D55C;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

/* Quick Sample Cert Chips */
.ncg-quick-cert-row {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #94A3B8;
}

.ncg-quick-cert-chip {
  background: #090D14;
  border: 1px solid #1E293B;
  color: #D4AF37;
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ncg-quick-cert-chip:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: #D4AF37;
  color: #F6D55C;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   2. CERTIFICATE RESULT SLAB CARD (DYNAMIC AJAX RESULT)
   -------------------------------------------------------------------------- */
.ncg-slab-result-card {
  max-width: 900px;
  margin: 0 auto 45px auto;
  background: linear-gradient(145deg, #162030 0%, #0D131C 100%);
  border: 1.5px solid #D4AF37;
  border-radius: 16px;
  padding: 35px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7), 0 0 30px rgba(212, 175, 55, 0.18);
  animation: ncg-fade-in 0.35s ease-out;
  box-sizing: border-box;
}

@keyframes ncg-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.ncg-slab-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  padding-bottom: 20px;
  margin-bottom: 25px;
}

.ncg-cert-badge-wrapper {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ncg-cert-label {
  font-size: 11px;
  text-transform: uppercase;
  color: #94A3B8;
  letter-spacing: 1px;
  font-weight: 700;
}

.ncg-cert-id {
  font-family: 'Space Grotesk', monospace;
  font-size: 24px;
  font-weight: 800;
  color: #D4AF37;
  letter-spacing: 1.5px;
}

.ncg-verification-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.5);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  width: fit-content;
}

.ncg-grade-badge {
  background: radial-gradient(circle at 30% 30%, #1E293B 0%, #090D14 100%);
  border: 2px solid #D4AF37;
  border-radius: 12px;
  padding: 14px 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(212, 175, 55, 0.15);
  min-width: 110px;
}

.ncg-grade-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 900;
  color: #D4AF37;
  line-height: 1;
}

.ncg-grade-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #F8FAFC;
  margin-top: 6px;
  letter-spacing: 1px;
}

/* Responsive Result Body Grid */
.ncg-cert-result-split {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 35px;
  align-items: center;
  margin: 25px 0;
}

.ncg-card-details-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 22px;
}

.ncg-info-item {
  background: #0D131C;
  border: 1px solid #1E293B;
  border-radius: 10px;
  padding: 12px 14px;
}

.ncg-info-label {
  font-size: 10px;
  text-transform: uppercase;
  color: #94A3B8;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 4px;
}

.ncg-info-value {
  font-size: 15px;
  font-weight: 700;
  color: #F8FAFC;
}

/* Sub-Grades Matrix */
.ncg-subgrades-box {
  background: #090D14;
  border: 1px solid #1E293B;
  border-radius: 12px;
  padding: 18px;
}

.ncg-subgrades-title {
  font-size: 11px;
  text-transform: uppercase;
  color: #D4AF37;
  letter-spacing: 1px;
  margin-bottom: 12px;
  font-weight: 800;
}

.ncg-subgrades-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ncg-subgrade-cell {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: #131B26;
  border: 1px solid #1E293B;
  border-radius: 8px;
  font-size: 13px;
}

.ncg-subgrade-cell span.name {
  color: #94A3B8;
  font-weight: 600;
}

.ncg-subgrade-cell span.score {
  font-weight: 800;
  color: #D4AF37;
}

.ncg-slab-footer {
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid #1E293B;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: #64748B;
}

.ncg-not-found {
  max-width: 780px;
  margin: 0 auto 30px auto;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #FCA5A5;
  padding: 18px 22px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

/* --------------------------------------------------------------------------
   3. LIVE REGISTRY STATS BAR & RECENT CERTIFICATES GALLERY
   -------------------------------------------------------------------------- */
.ncg-registry-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 45px 0 65px 0;
}

.ncg-registry-stat-card {
  background: #0D131C;
  border: 1px solid #1E293B;
  border-radius: 14px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.25s ease;
}

.ncg-registry-stat-card:hover {
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateY(-4px);
  background: #111A26;
}

.ncg-registry-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #D4AF37;
  flex-shrink: 0;
}

.ncg-registry-stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: #F8FAFC;
  line-height: 1.1;
}

.ncg-registry-stat-lbl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #D4AF37;
  margin-top: 2px;
}

/* Recent Verified Certificates Showcase Grid */
.ncg-registry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 20px;
}

.ncg-registry-card {
  background: #0D131C;
  border: 1px solid #1E293B;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease,
              box-shadow 0.3s ease,
              background 0.25s ease;
  box-sizing: border-box;
}

.ncg-registry-card:hover {
  transform: translateY(-8px);
  border-color: #D4AF37;
  background: #111A26;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(212, 175, 55, 0.2);
}

.ncg-registry-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.ncg-registry-thumb {
  width: 64px;
  height: 88px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: #070A0F;
  flex-shrink: 0;
}

.ncg-registry-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ncg-registry-cert-pill {
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  font-weight: 800;
  color: #D4AF37;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
  display: inline-block;
}

.ncg-registry-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #F8FAFC;
  margin: 0 0 4px 0;
}

.ncg-registry-meta {
  font-size: 12px;
  color: #94A3B8;
  margin: 0;
}

.ncg-registry-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid #182232;
}

.ncg-registry-grade-tag {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: #F6D55C;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
}

.ncg-registry-verify-btn {
  background: #1E293B;
  border: 1px solid #2A384C;
  color: #F8FAFC;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ncg-registry-card:hover .ncg-registry-verify-btn,
.ncg-registry-verify-btn:hover {
  background: #D4AF37;
  border-color: #D4AF37;
  color: #070A0F;
}

/* --------------------------------------------------------------------------
   4. LABEL VERIFICATION GUIDE & BUYER PROTECTION
   -------------------------------------------------------------------------- */
.ncg-cert-guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 75px;
}

.ncg-cert-guide-card {
  background: #0D131C;
  border: 1px solid #1E293B;
  border-radius: 16px;
  padding: 32px 28px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.ncg-cert-guide-card:hover {
  border-color: rgba(212, 175, 55, 0.55);
  transform: translateY(-5px);
  background: #111A26;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
}

.ncg-cert-guide-card h3 {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 19px !important;
  font-weight: 800 !important;
  color: #F8FAFC !important;
  margin: 0 0 12px 0 !important;
}

/* --------------------------------------------------------------------------
   5. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .ncg-registry-stats-row,
  .ncg-registry-grid,
  .ncg-cert-guide-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .ncg-cert-result-split {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

@media (max-width: 600px) {
  .ncg-cert-page {
    padding: 40px 16px 70px 16px;
  }
  .ncg-lookup-form-container {
    padding: 24px 18px !important;
  }
  .ncg-lookup-input-group {
    flex-direction: column;
  }
  .ncg-slab-result-card {
    padding: 22px 16px !important;
  }
  .ncg-slab-header {
    flex-direction: column !important;
    gap: 15px !important;
    align-items: center !important;
    text-align: center !important;
  }
  .ncg-verification-tag {
    margin: 0 auto;
  }
  .ncg-card-details-box,
  .ncg-subgrades-grid {
    grid-template-columns: 1fr !important;
  }
  .ncg-slab-footer {
    flex-direction: column !important;
    gap: 8px !important;
    text-align: center !important;
  }
}
