:root {
  --bg:#0b0e14;
  --panel:#020617;
  --panel2:#0f172a;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --accent:#5eead4;
  --accent-glow:rgba(94,234,212,0.25);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Exo 2", sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 900px;
  margin: auto;
  padding: 40px 20px;
}

.hero {
  text-align: center;
  padding: 50px 20px 40px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 14px;
}

.hero p {
  color: var(--muted);
  font-size: 18px;
}

.card {
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid #1f2937;
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(94,234,212,0.15), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover::after {
  opacity: 1;
}

input, textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 16px;
  background: #020617;
  border: 1px solid #1f2937;
  border-radius: 12px;
  color: var(--text);
  outline: none;
}

input:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
}

.btn {
  padding: 14px 22px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--accent);
  color: #022c22;
  box-shadow: 0 0 30px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px var(--accent-glow);
}

.hidden {
  display: none;
}

.section-title {
  font-size: 22px;
  margin-bottom: 12px;
}

ul {
  padding-left: 20px;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(2,6,23,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--accent);
  border-radius: 18px;
}

footer {
  text-align: center;
  padding: 20px 20px;
  color: var(--muted);
  border-top: 1px solid #1f2937;
}

/* Ultra-futuristic particle background */
#particles-js{position:fixed;top:0;left:0;width:100%;height:100%;z-index:0;pointer-events: none;}
#particles-js canvas {
  pointer-events: none;
}

/* =========================
   HEADER
========================= */

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid #1f2430;
}

.brand {
  font-size: 1.05rem;
  letter-spacing: 0.4px;
  color:var(--accent);
}

.secondary-btn {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  border: 1px solid #2a2f3a;
  color: #cfd6e4;
}

.secondary-btn:hover {
  background: #1b1f2b;
}

/* ===============================
   PROGRESS BAR
================================ */

.progress-box {
  max-width: 520px;
  margin: 60px auto;
  text-align: center;
}

.progress-bar {
  height: 10px;
  background: #020617;
  border: 1px solid #1f2937;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 12px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--accent),
    rgba(94,234,212,0.6)
  );
  box-shadow: 0 0 15px var(--accent-glow);
  transition: width 0.4s ease;
}

/* ===============================
   PRINT / PDF EXPORT
================================ */
@media print {
  body {
    background: #ffffff;
    color: #000;
  }

  .btn,
  #particles-js,
  .paywall {
    display: none !important;
  }

  .results-row {
    display: block;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
    background: #fff;
  }

  .card-section h4 {
    color: #000;
  }

  .rank-badge,
  .recommendation {
    border: 1px solid #000;
    color: #000;
    background: none;
  }
}

.btn-unlock{
  width:100%;
  margin-top:8px;
}

.unlock-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: linear-gradient(90deg, #0f766e, #022c22);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 32px;
}

/* ===============================
   CARD CONTENT SECTIONS
================================ */

.card-section {
  margin-bottom: 18px;
}

.card-section h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  color: var(--accent);
}

.card-section ul {
  list-style: none;
  padding-left: 0;
}

.card-section li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--text);
}

.card-section li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.card-section p {
  font-size: 14px;
  color: var(--muted);
}

.locked {
  opacity: 0.5;
  pointer-events: none;
}

.locked-section .blurred {
  background: rgba(255,255,255,0.03);
  padding: 16px;
  border-radius: 10px;
  text-align: center;
  color: var(--accent);
  font-weight:600;
}

/* ===============================
   RECOMMENDATION TAGS
================================ */

.recommendation {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 14px;
}

.rec-yes {
  background: rgba(94,234,212,0.15);
  color: var(--accent);
}

.rec-maybe {
  background: rgba(251,191,36,0.15);
  color: #fbbf24;
}

.rec-no {
  background: rgba(239,68,68,0.15);
  color: #ef4444;
}


/* ===============================
   CANDIDATE CARD
================================ */

.candidate-card {
  min-width: 360px;
  scroll-snap-align: start;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.rank-badge {
  background: rgba(94,234,212,0.15);
  color: var(--accent);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
}

.meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

/* ===============================
   RESULTS LAYOUT
================================ */

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 20px;
}

.results-header h2 {
  font-size: 28px;
  margin-bottom: 4px;
}

.results-header .actions {
  display: flex;
  gap: 12px;
}

/* Horizontal candidate row */
.results-row {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 20px;
  scroll-snap-type: x mandatory;
}

.results-row::-webkit-scrollbar {
  height: 8px;
}
.results-row::-webkit-scrollbar-thumb {
  background: #1f2937;
  border-radius: 10px;
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-modal {
  background: #0b0f14;
  padding: 28px;
  border-radius: 16px;
  width: 90%;
  max-width: 420px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hidden {
  display: none;
}

.qr {
  width: 180px;
  margin: 16px 0;
}

.timer {
  margin-top: 14px;
  font-size: 20px;
  color: #ffaa00;
  font-weight: 600;
}

.verified {
  margin-top: 20px;
}

.tick {
  font-size: 48px;
  color: #00ff88;
  animation: pop 0.4s ease-out forwards;
}

@keyframes pop {
  0% { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Primary CTA Button */
.payment-modal button {
  width: 100%;
  padding: 14px;
  margin-top: 14px;
  border-radius: 12px;
  border: none;
  cursor: pointer;

  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.4px;

  color: #0b0f14;
  background: linear-gradient(135deg, #00ffd5, #00b3ff);
  box-shadow:
    0 0 0 rgba(0, 255, 213, 0),
    0 6px 24px rgba(0, 179, 255, 0.35);

  transition: all 0.25s ease;

  animation: pulseGlow 2.2s infinite;
}

/* Hover */
.payment-modal button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 12px rgba(0, 255, 213, 0.45),
    0 10px 28px rgba(0, 179, 255, 0.45);
}

/* Active (Click) */
.payment-modal button:active {
  transform: translateY(0);
  box-shadow:
    0 0 6px rgba(0, 255, 213, 0.25),
    0 4px 14px rgba(0, 179, 255, 0.25);
}

/* Disabled state (future-proof) */
.payment-modal button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 8px rgba(0, 255, 213, 0.25); }
  50% { box-shadow: 0 0 16px rgba(0, 255, 213, 0.55); }
  100% { box-shadow: 0 0 8px rgba(0, 255, 213, 0.25); }
}
