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

  --yes:#22c55e;
  --maybe:#facc15;
  --no:#ef4444;
}

*{
  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{text-decoration:none;color:inherit;}
section{position:relative;z-index:1;}

/* HERO */
.hero{
  height:60vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:0 20px;
}

.hero h1{
  font-size:clamp(2.5rem,6vw,4rem);
  margin-bottom:20px;
  font-weight:700;
}

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

/* LAYOUT */
.container{
  max-width:1100px;
  min-width: 0px;
  margin:auto;
  padding:20px 24px;
}

/* =========================
   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;
}

/* FORM */
.form-box{
  max-width:700px;
  margin:auto;
  background:linear-gradient(180deg,#0f172a,#020617);
  border:1px solid #1f2937;
  border-radius:16px;
  padding:32px;
}

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

textarea{
  resize:vertical;
}

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

/* BUTTONS */
.btn{
  padding:14px 24px;
  border-radius:10px;
  border:none;
  cursor:pointer;
  font-weight:600;
  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);
}

/* SECTION TITLE */
.section-title{
  text-align:center;
  margin-bottom:48px;
}

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

.section-title p{
  color:var(--muted);
}

/* GRID */
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:24px;
}

/* CANDIDATE CARD */
.card{
  background:linear-gradient(180deg,#0f172a,#020617);
  border:1px solid #1f2937;
  border-radius:16px;
  padding:28px;
  position:relative;
  transition:all 0.3s ease;
  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{
  transform:translateY(-6px);
  border-color:rgba(94,234,212,0.4);
  box-shadow:0 0 40px rgba(94,234,212,0.08);
}

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

/* CARD HEADER */
.card-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:16px;
}

.rank-badge{
  background:#020617;
  border:1px solid #1f2937;
  padding:6px 12px;
  border-radius:999px;
  font-size:14px;
  color:var(--muted);
}

/* RECOMMENDATION */
.recommendation{
  font-weight:700;
  margin-bottom:10px;
}

.rec-yes{color:var(--yes);}
.rec-maybe{color:var(--maybe);}
.rec-no{color:var(--no);}

/* META */
.meta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:16px;
}

.meta span{
  background:#020617;
  border:1px solid #1f2937;
  padding:6px 10px;
  border-radius:8px;
  font-size:13px;
  color:var(--muted);
}

/* QUESTIONS */
.questions li{
  font-style:italic;
}

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

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

#particles-js canvas{
  pointer-events:none;
}

/* ===============================
   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;
}

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

.candidate-card {
  min-width: 360px;
  max-width: 420px;
  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;
}

/* ===============================
   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;
}

/* ===============================
   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;
}

/* ===============================
   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;
  }

  .candidate-card {
    page-break-inside: avoid;
    margin-bottom: 24px;
    max-width: 100%;
  }

  .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;
  }
}

/* ===============================
   PAYWALL
================================ */

.paywall{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  backdrop-filter:blur(10px);
  background:rgba(2,6,23,0.75);
  z-index:10;
}

.paywall.hidden{display:none;}

.paywall-card{
  max-width:420px;
  background:linear-gradient(180deg,#0f172a,#020617);
  border:1px solid rgba(63,184,165,0.4);
  border-radius:20px;
  padding:36px;
  text-align:center;
  box-shadow:0 0 50px rgba(63,184,165,0.15);
}

.paywall-card h3{
  font-size:22px;
  margin-bottom:12px;
}

.paywall-sub{
  color:var(--muted);
  margin-bottom:18px;
}

.paywall-list{
  text-align:left;
  margin-bottom:24px;
}

.paywall-list li{
  margin-bottom:8px;
  font-size:14px;
}

.paywall-price{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px;
  font-size:15px;
}

.paywall-price strong{
  font-size:22px;
  color:var(--accent);
}

.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;
}


.paywall-note{
  font-size:12px;
  margin-top:14px;
}

/* 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); }
}
