/* ======================================================
   ROOT VARIABLES
====================================================== */
:root {
  /* DEFAULT (PABE) */
  --pabe-gradient: linear-gradient(
    135deg,
    #0f766e,
    #16a34a,
    #0284c7,
    #0f766e
  );

  /* KMSC – ORANGE */
  --kmsc-gradient: linear-gradient(
    135deg,
    #f97316,
    #fb923c,
    #ea580c
  );

  /* EDM – BLUE */
  --edm-gradient: linear-gradient(
    135deg,
    #2563eb,
    #38bdf8,
    #1e40af
  );

  /* TRU – YELLOW GREEN */
  --tru-gradient: linear-gradient(
    135deg,
    #84cc16,
    #a3e635,
    #4d7c0f
  );

  /* TRI – BRONZE */
  --tri-gradient: linear-gradient(
    135deg,
    #92400e,
    #b45309,
    #78350f
  );
}

/* ======================================================
   ANIMATIONS
====================================================== */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ======================================================
   RESET & BASE
====================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #ffffff;
  color: #1f2937;
  line-height: 1.5;
}

/* ======================================================
   HERO / HEADER  ✅ GRADIENT FIXED
====================================================== */
.hero {
  background: var(--active-gradient, var(--pabe-gradient));
  background-size: 300% 300%;
  animation: gradientShift 10s ease infinite;
  color: #ffffff;
  text-align: center;
  padding: 60px 24px;
}

.hero h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero p {
  font-size: 16px;
  opacity: 0.95;
}

/* ======================================================
   VERIFICATION SECTION
====================================================== */
.verification-section {
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* ======================================================
   LOGO ABOVE CARD
====================================================== */
.verification-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
  animation: fadeInUp 0.8s ease-out forwards;
  position: relative;
  z-index: 3;
}

.verification-logo img {
  max-width: 480px;
  display: block;
}

/* ======================================================
   VERIFICATION CARD
====================================================== */
.verification-card {
  position: relative;
  overflow: hidden;
  background: #f9fafb;
  padding: 32px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  width: 100%;
  max-width: 480px;
  text-align: center;
  animation: fadeInUp 0.9s ease-out forwards;
}

/* Faded watermark logo inside card */
.verification-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/images/pabe-logo.png") center center no-repeat;
  background-size: 220px;
  opacity: 0.07;
  z-index: 1;
  pointer-events: none;
}

.verification-card > * {
  position: relative;
  z-index: 2;
}

/* ======================================================
   STATUS BLOCK  ✅ GRADIENT FIXED
====================================================== */
.status-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
}

.status-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
}

.status-block h2 {
  font-size: 22px;
  font-weight: 700;
  background: var(--active-gradient, var(--pabe-gradient));
  background-size: 300% 300%;
  animation: gradientShift 8s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Invalid state */
.status-block h2.invalid {
  color: #b91c1c;
  background: none;
  -webkit-text-fill-color: initial;
}

/* ======================================================
   QR DATA DISPLAY
====================================================== */
.qr-data {
  margin: 12px 0 16px;
  padding: 10px 12px;
  background: rgba(0,0,0,0.03);
  border-radius: 6px;
  font-size: 13px;
}

.qr-data span {
  color: #6c737d;
}

.qr-data strong {
  font-weight: 600;
  margin-left: 6px;
  word-break: break-word;
}

/* ======================================================
   TEXT & DIVIDERS
====================================================== */
.verification-text {
  font-size: 15px;
  margin-bottom: 20px;
}

.divider {
  height: 1px;
  background: #dde1e7;
  margin: 16px 0;
}

/* ======================================================
   DETAILS LIST  ✅ GRADIENT FIXED
====================================================== */
.details {
  list-style: none;
  text-align: left;
  margin-bottom: 20px;
}

.details li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-weight: 500;
}

.details span {
  font-weight: 600;
  background: var(--active-gradient, var(--pabe-gradient));
  background-size: 300% 300%;
  animation: gradientShift 8s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ======================================================
   PRIVACY NOTE
====================================================== */
.privacy-note {
  font-size: 12px;
  color: #6c737d;
  margin-bottom: 20px;
}

/* ======================================================
   BUTTONS  ✅ GRADIENT FIXED
====================================================== */
.action-area {
  margin-top: 10px;
}

.pabe-button {
  display: inline-block;
  width: 100%;
  padding: 14px 16px;
  background: var(--active-gradient, var(--pabe-gradient));
  background-size: 300% 300%;
  animation: gradientShift 6s ease infinite;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  text-align: center;
}

.pabe-button:active {
  transform: scale(0.98);
}

/* Pre-footer CTA */
.pre-footer-cta {
  padding: 0 24px 32px;
  display: flex;
  justify-content: center;
}

/* ======================================================
   FOOTER
====================================================== */
.footer {
  text-align: center;
  font-size: 12px;
  color: #6c737d;
  padding: 20px 12px;
  line-height: 1.6;
}

/* ======================================================
   ACCESSIBILITY
====================================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transform: none !important;
  }
}
