:root {
  --primary-color: #FFD500;
  --secondary-color: #F1F1F1;
  --border-color: #1D1D1D;       
  --card-bg-color: #00000075;
  --button-bg-color: #FFB902;
  --text-color: #fff;
}

/* Kill Bootstrap's default white card background */
.card.verify-card{
  --bs-card-bg: transparent;         /* Bootstrap var override */
  --bs-card-cap-bg: transparent;
}

/* Main verify card */
.verify-card,
.verify-card .card-body{
  background: var(--card-bg-color) !important;  /* translucent dark */
  color: var(--text-color);
  border-radius: 20px;
}

.verify-card{
  border: 2px solid var(--border-color) !important; 
  box-shadow: 0 12px 30px rgba(0,0,0,.55);
}

/* Ensure inner body stays transparent (no white caps) */
.card.verify-card > .card-body{
  background: transparent !important;
}

/* Readable muted text on dark */
.verify-card .text-muted{
  color: var(--secondary-color) !important;
  opacity: .85;
}

/* ===== Result panel (verification output) ===== */
.verify-result{
  background: rgba(0,0,0,.6) !important;
  border: 2px solid var(--border-color) !important;
  border-radius: 14px;
  color: var(--text-color);
}
.verify-result code{
  color: var(--primary-color);
  font-weight: 600;
  word-break: break-all;
}

/* ===== Input ===== */
.verify-input{ position: relative; flex: 1 1 340px; }
.verify-input input.form-control{
  background: #0f0f0f;
  color: var(--text-color);
  border: 2px solid var(--border-color);
  border-radius: 999px;
}
.verify-input input::placeholder{ color: #a7b0bb; }
.verify-input input:focus{
  outline: none;
  border-color: var(--button-bg-color);
  box-shadow: 0 0 0 3px rgba(255,185,2,.25);
}

/* ===== Buttons ===== */
.btn.btn-warning{
  background: var(--button-bg-color);
  border: 2px solid #d39e00;
  color: #111;
  border-radius: 999px;
}
.btn.btn-warning:hover{ background: var(--primary-color); }

.btn.btn-outline-secondary{
  border: 2px solid rgba(255,255,255,.18);
  color: var(--secondary-color);
  border-radius: 999px;
}
.btn.btn-outline-secondary:hover{
  border-color: var(--button-bg-color);
  color: var(--text-color);
}

/* ===== Badges ===== */
.badge.bg-success{
  background: linear-gradient(180deg,#1fd28e,#0aa86c) !important;
  border:1px solid #0aa86c;
  color:#071b14;
  font-weight:700;
}
.badge.bg-danger{
  background: linear-gradient(180deg,#ff8272,#e64c3b) !important;
  border:1px solid #d5493a;
}

/* Member pills inside result */
.badge.bg-dark{
  background: #0f0f0f !important;
  border: 1px solid var(--border-color);
  color: var(--secondary-color);
}

/* ===== 'Browse winners' panels ===== */
.verify-panel{
  background: rgba(0,0,0,.55);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,.55);
}
.verify-panel .card-title{ color: var(--secondary-color); }
.verify-panel .list-group-item{
  background: transparent !important;
  color: var(--secondary-color);
  border-color: rgba(255,255,255,0.08);
}
.verify-panel .badge.bg-secondary{
  background:#1e2530 !important;
  color:#cfd6de;
  border:1px solid #2a3443;
  border-radius:999px;
  min-width:44px;
  text-align:center;
}

/* Optional: ensure ANY nested card/list never flips back to white */
.verify-card .card,
.verify-panel .card{
  background: transparent !important;
  --bs-card-bg: transparent;
}
.cert-thumb {
  max-height: 220px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
}

.cert-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
}
.cert-lightbox.d-none { display: none !important; }
.cert-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
}
.cert-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #FFF500;
  color: #000;
  font-size: 22px;
  line-height: 0;
  cursor: pointer;
}
.cert-card {
  background: rgba(0,0,0,0.65);
  border: 2px solid var(--primary-color);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,.55);
  color: var(--text-color);
}

.main-center-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 90vh; 
  width: 100%;
}

.verify-card {
  margin: 0 auto;
  max-width: 1000px;
  width: 100%;
}

footer { display: block; }

