
/* ====== CERT SECTION ====== */
.cert-section{
  max-width:1000px;
  margin:60px auto;
  padding:30px 20px 50px;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,43,43,.08), transparent 40%),
    repeating-linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.02) 1px, transparent 1px, transparent 3px),
    linear-gradient(180deg, #080000, #02040a);
  border-radius:18px;
  box-shadow:0 0 35px rgba(0,234,255,.25);
  position:relative;
  overflow:hidden;
}

/* ====== TITLE ====== */
.cert-section h2{
  text-align:center;
  color:#ff2d2d;
  font-family:'Orbitron', sans-serif;
  letter-spacing:1px;
  margin-bottom:18px;
  text-shadow:0 0 12px rgba(255,45,45,.7), 0 0 20px rgba(0,234,255,.3);
}

.cert-section h2 i{
  color:#00eaff;
  margin-right:8px;
}

/* ====== FORM ====== */
.cert-form{
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
  margin-bottom:20px;
}

/* ====== INPUT WITH ICON ====== */
.cert-input{
  position:relative;
  flex:1 1 320px;
  max-width:420px;
}

.cert-input i{
  position:absolute;
  top:50%;
  left:12px;
  transform:translateY(-50%);
  color:#ff0000;
  text-shadow:0 0 8px rgba(0,234,255,.7);
  pointer-events:none;
}

.cert-input input{
  width:100%;
  padding:12px 14px 12px 38px;
  border-radius:10px;
  border:1px solid rgba(63, 4, 4, 0.899);
  background:rgba(8,14,40,.9);
  color:#eaffff;
  outline:none;
  font-family:'Share Tech Mono', monospace;
  transition:.25s ease;
  height:46px; /* unified height */
}

.cert-input input:focus{
  border-color:#ff2d2d;
  box-shadow:0 0 0 2px rgba(255,45,45,.25), 0 0 15px rgba(0,234,255,.35);
}

/* ====== BUTTON ====== */
.cert-form button{
  padding:12px 20px;
  border:none;
  border-radius:10px;
  background:linear-gradient(135deg,var(--red),var(--cyan));
  color:#fff;
  font-family:'Orbitron', sans-serif;
  font-weight:700;
  letter-spacing:1px;
  cursor:pointer;
  box-shadow:0 0 20px rgba(255,45,45,.6);
  transition:.25s ease;
  height:46px; /* unified height */
  display:flex;
  align-items:center;
  justify-content:center;
}

.cert-form button:hover{
  box-shadow:
    0 0 0 1px rgba(255, 230, 0, .9),
    0 0 12px rgba(255, 230, 0, .7),
    0 0 28px rgba(255, 230, 0, .45);
}

/* ====== PREVIEW AREA ====== */
.cert-preview{
  margin-top:20px;
  padding:12px;
  border-radius:14px;
  background:rgba(5,10,30,.85);
  border:1px dashed rgba(0,234,255,.35);
  min-height:140px;
  box-shadow:inset 0 0 25px rgba(0,234,255,.15);
}

/* ====== DOWNLOAD BUTTON AREA ====== */
.cert-download{
  margin-top:16px;
  text-align:center;
}

/* ====== CYBER SCAN EFFECT ====== */
.cert-section::after{
  content:"";
  position:absolute;
  top:-120%;
  left:0;
  width:100%;
  height:140%;
  background:linear-gradient(180deg, transparent, rgba(0,234,255,.08), transparent);
  animation:scanCert 5s linear infinite;
  pointer-events:none;
}

@keyframes scanCert{
  0%{top:-140%;}
  100%{top:140%;}
}

/* ====== MOBILE (ONLY MOBILE EDITS) ====== */
@media(max-width:48px){
  .cert-section{ margin:30px 10px; padding:18px 12px 24px; }

  .cert-form{
    flex-direction:column;
    gap:6px;              /* 🔽 gap kam */
    margin-bottom:12px;  /* 🔽 spacing kam */
  }

  .cert-input{ max-width:100%; }

  .cert-input input{
    height:46px;         /* 💡 laptop jaisi height */
    font-size:14px;
  }

  .cert-form button{
    width:100%;
    height:38px;         /* 💡 laptop jaisi height */
    font-size:13.5px;
    padding:12px 16px;
  }

  .cert-preview{
    margin-top:10px;     /* 🔽 kam spacing */
    padding:8px;
    min-height:120px;
  }

  .cert-download{
    margin-top:10px;     /* 🔽 kam spacing */
    padding:0;
  }

  .cert-input i{
    font-size:16px;
  }
}

/* ====== HELP CARD ====== */
.help-card{
  margin-top:16px;
  padding:16px 18px;
  border-radius:14px;
  position:relative;
  background:
    radial-gradient(circle at 10% 15%, rgba(255,45,45,.08), transparent 40%),
    radial-gradient(circle at 90% 15%, rgba(0,234,255,.08), transparent 40%),
    linear-gradient(180deg, #070c1a, #02040a);
  border:1px solid rgba(0,234,255,.35);
  box-shadow:0 0 22px rgba(0,234,255,.25);
  overflow:hidden;
}

/* corner cyber dots */
.help-card::before,
.help-card::after{
  content:"";
  position:absolute;
  width:8px;
  height:8px;
  border-radius:50%;
  background:#00eaff;
  box-shadow:0 0 12px rgba(0,234,255,.9);
}
.help-card::before{ top:10px; left:10px; }
.help-card::after{ bottom:10px; right:10px; }

.help-card h3{
  margin:0 0 8px;
  color:#ff2d2d;
  font-family:'Orbitron', sans-serif;
  font-size:16px;
  letter-spacing:.5px;
  text-shadow:0 0 8px rgba(255,45,45,.7);
}

.help-card h3 i{
  color:#00eaff;
  margin-right:6px;
}

.help-card ul{
  margin:0;
  padding-left:18px;
  color:#cfefff;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size:15.5px;
  line-height:1.5;
}

.help-card ul li{ margin-bottom:6px; }

.help-actions{
  margin-top:12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.help-btn{
  flex:1 1 160px;
  text-align:center;
  padding:10px 12px;
  border-radius:10px;
  text-decoration:none;
  color:#fff;
  font-family:'Orbitron', sans-serif;
  font-size:12.5px;
  letter-spacing:.5px;
  background:linear-gradient(135deg, #ff2d2d, #8b0000);
  box-shadow:0 0 14px rgba(255,45,45,.6);
  transition:.25s ease;
  height:42px;                 /* unified height */
  display:flex;
  align-items:center;
  justify-content:center;
}

.help-btn i{ margin-right:6px; }

.help-btn:hover{
  transform:translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255, 230, 0, .9),
    0 0 12px rgba(255, 230, 0, .7),
    0 0 28px rgba(255, 230, 0, .45);
}

.help-btn.alt{
  background:linear-gradient(135deg, #00eaff, #007a99);
  box-shadow:0 0 14px rgba(0,234,255,.6);
}

.help-btn.alt:hover{ box-shadow:0 0 20px rgba(0,234,255,.9); }

/* ===== Light Theme Support ===== */
body[data-theme="light"] .help-card,
body[data-theme="light"] .cert-section{
  background:linear-gradient(180deg, #ebf1f3, #eaf7ff);
  border:1px solid rgb(222, 246, 244);
}

body[data-theme="light"] .help-card h3,
body[data-theme="light"] .help-card ul{ color:#000; }

body[data-theme="light"] .cert-preview,
body[data-theme="light"] .cert-input input{ background:#fff; }

body[data-theme="light"] .help-btn{ color:#fff; }

/* ===== Mobile Responsive (Help Card) ===== */
@media(max-width:48px){
  .help-card{ padding:10px; border-radius:12px; margin-top:10px; }

  .help-actions{
    flex-direction:column;
    gap:6px;             /* 🔽 buttons ke beech gap kam */
  }

  .help-btn{
    width:100%;
    height:42px;        /* 💡 laptop jaisi feel */
    font-size:12.5px;
  }
}

/* ===== EXTRA SMALL MOBILE ===== */
@media (max-width:360px){
  .cert-section h2{ font-size:16px; }
  .cert-input input{ font-size:13px; }
  .help-card ul{ font-size:12px; }
}