/* =========================================================
   Qeeme Match - Super POWER CSS
   ========================================================= */

:root{
  --bg:#07070b;
  --bg-soft:#11131a;
  --panel:#131722;
  --panel-2:#191f2c;
  --text:#f5f7ff;
  --muted:#aab3c5;
  --line:rgba(255,255,255,.08);

  --pink:#ff4fd8;
  --violet:#8b5cf6;
  --blue:#4cc9ff;
  --gold:#ffd166;
  --green:#2ee59d;

  --shadow:0 18px 50px rgba(0,0,0,.35);
  --radius:22px;
  --radius-sm:14px;
  --max:1100px;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:Inter,Segoe UI,Arial,sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255,79,216,.14), transparent 28%),
    radial-gradient(circle at top right, rgba(139,92,246,.16), transparent 30%),
    radial-gradient(circle at bottom center, rgba(76,201,255,.10), transparent 26%),
    linear-gradient(180deg, #07070b 0%, #0b0d12 100%);
  color:var(--text);
  line-height:1.65;
}

img{
  max-width:100%;
  height:auto;
  display:block;
}

a{
  color:var(--blue);
  text-decoration:none;
  transition:.25s ease;
}

a:hover{
  color:#fff;
}

main,
.page-wrap,
.match-wrap{
  width:min(100% - 28px, var(--max));
  margin:0 auto;
}

.match-wrap{
  padding:36px 0 70px;
}

/* =========================================================
   HERO
   ========================================================= */

.match-hero{
  position:relative;
  overflow:hidden;
  background:
    linear-gradient(135deg, rgba(255,79,216,.16), rgba(139,92,246,.14)),
    rgba(255,255,255,.03);
  border:1px solid var(--line);
  border-radius:30px;
  box-shadow:var(--shadow);
  padding:34px 26px;
  margin:20px 0 28px;
}

.match-hero::before{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius:32px;
  padding:1px;
  background:linear-gradient(135deg, rgba(255,79,216,.55), rgba(76,201,255,.45), rgba(139,92,246,.5));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor;
          mask-composite:exclude;
  pointer-events:none;
}

.match-kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size:13px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#fff;
  background:linear-gradient(90deg, var(--pink), var(--violet));
  padding:9px 14px;
  border-radius:999px;
  box-shadow:0 10px 24px rgba(139,92,246,.25);
}

.match-hero h1{
  margin:18px 0 12px;
  font-size:clamp(34px, 5vw, 64px);
  line-height:1.02;
  letter-spacing:-.03em;
}

.match-lead{
  max-width:760px;
  font-size:clamp(17px, 2vw, 21px);
  color:var(--muted);
  margin:0 0 24px;
}

.match-hero-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:24px;
  align-items:center;
}

.match-badges{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:18px;
}

.match-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  color:#eef2ff;
  font-size:14px;
  font-weight:700;
}

.match-hero-card{
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.08);
  border-radius:24px;
  padding:18px;
  box-shadow:var(--shadow);
  backdrop-filter:blur(8px);
}

.match-hero-card .mini-title{
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:var(--gold);
  font-weight:800;
  margin-bottom:8px;
}

.match-hero-card h3{
  margin:0 0 10px;
  font-size:24px;
  line-height:1.15;
}

.match-hero-card p{
  margin:0;
  color:var(--muted);
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn,
button,
input[type="submit"]{
  appearance:none;
  border:none;
  cursor:pointer;
  font:inherit;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:52px;
  padding:0 22px;
  border-radius:999px;
  font-weight:800;
  transition:transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.btn:hover{
  transform:translateY(-2px);
}

.btn-primary{
  color:#fff;
  background:linear-gradient(90deg, var(--pink), var(--violet));
  box-shadow:0 16px 34px rgba(139,92,246,.28);
}

.btn-primary:hover{
  box-shadow:0 20px 42px rgba(139,92,246,.34);
}

.btn-dark{
  color:#fff;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.1);
}

.btn-outline{
  color:#fff;
  background:transparent;
  border:1px solid rgba(255,255,255,.16);
}

/* =========================================================
   LAYOUT BLOCKS
   ========================================================= */

.match-section{
  margin:30px 0;
}

.match-panel{
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.025));
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:26px 22px;
  box-shadow:var(--shadow);
}

.match-panel h2{
  margin:0 0 10px;
  font-size:clamp(26px, 3vw, 38px);
  line-height:1.08;
}

.match-panel p{
  margin:0;
  color:var(--muted);
}

.match-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
}

.match-card{
  position:relative;
  overflow:hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.08);
  border-radius:22px;
  padding:22px 18px;
  box-shadow:var(--shadow);
  transition:transform .2s ease, border-color .2s ease;
}

.match-card:hover{
  transform:translateY(-4px);
  border-color:rgba(255,79,216,.35);
}

.match-card .icon{
  width:52px;
  height:52px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  margin-bottom:16px;
  background:linear-gradient(135deg, rgba(255,79,216,.24), rgba(139,92,246,.24));
  border:1px solid rgba(255,255,255,.09);
}

.match-card h3{
  margin:0 0 8px;
  font-size:22px;
  line-height:1.15;
}

.match-card p{
  margin:0;
  color:var(--muted);
  font-size:15px;
}

/* =========================================================
   QUIZ
   ========================================================= */

.quiz-shell{
  margin:28px 0 0;
}

.quiz-intro{
  margin-bottom:20px;
  color:var(--muted);
  font-size:17px;
}

.quiz-progress{
  position:sticky;
  top:10px;
  z-index:4;
  background:rgba(11,13,18,.82);
  backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,.08);
  border-radius:999px;
  padding:8px;
  margin:0 0 22px;
  box-shadow:var(--shadow);
}

.quiz-progress-bar{
  width:0%;
  height:12px;
  border-radius:999px;
  background:linear-gradient(90deg, var(--pink), var(--violet), var(--blue));
  transition:width .35s ease;
}

.quiz-progress-text{
  margin-top:8px;
  font-size:13px;
  color:var(--muted);
  text-align:right;
  font-weight:700;
}

.quiz-question{
  margin:0 0 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.025));
  border:1px solid rgba(255,255,255,.08);
  border-radius:24px;
  padding:22px 18px;
  box-shadow:var(--shadow);
}

.quiz-question-number{
  display:inline-block;
  font-size:12px;
  font-weight:800;
  color:var(--gold);
  text-transform:uppercase;
  letter-spacing:.14em;
  margin-bottom:10px;
}

.quiz-question h3{
  margin:0 0 16px;
  font-size:clamp(22px, 2.4vw, 30px);
  line-height:1.14;
}

.quiz-options{
  display:grid;
  gap:12px;
}

.quiz-option{
  position:relative;
}

.quiz-option input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.quiz-option label{
  display:block;
  padding:16px 18px;
  border-radius:18px;
  background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.08);
  color:#eef2ff;
  font-weight:700;
  transition:all .2s ease;
  cursor:pointer;
}

.quiz-option label:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,.06);
  border-color:rgba(76,201,255,.36);
}

.quiz-option input:checked + label{
  background:linear-gradient(135deg, rgba(255,79,216,.20), rgba(139,92,246,.20));
  border-color:rgba(255,79,216,.55);
  box-shadow:0 10px 24px rgba(255,79,216,.15);
}

.quiz-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
  margin-top:20px;
}

.quiz-note{
  color:var(--muted);
  font-size:14px;
  margin-top:12px;
}

.quiz-warning{
  margin-top:14px;
  padding:12px 14px;
  border-radius:16px;
  background:rgba(255,209,102,.08);
  border:1px solid rgba(255,209,102,.26);
  color:#ffe6a3;
  font-weight:700;
  display:none;
}

/* =========================================================
   RESULT
   ========================================================= */

.result-box{
  margin-top:28px;
  background:
    linear-gradient(135deg, rgba(255,79,216,.18), rgba(139,92,246,.16) 50%, rgba(76,201,255,.12));
  border:1px solid rgba(255,255,255,.09);
  border-radius:28px;
  padding:26px 22px;
  box-shadow:var(--shadow);
}

.result-kicker{
  display:inline-block;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.12);
  color:#fff;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.14em;
  margin-bottom:12px;
}

.result-box h2{
  margin:0 0 12px;
  font-size:clamp(28px, 4vw, 46px);
  line-height:1.04;
}

.result-box p{
  margin:0 0 14px;
  color:#eef2ff;
  font-size:17px;
}

.result-traits{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:12px;
  margin:18px 0 0;
}

.result-trait{
  padding:14px;
  border-radius:18px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
  font-weight:700;
  color:#fff;
}

.result-cta{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:20px;
}

/* =========================================================
   SHARE / CTA / SMALL BLOCKS
   ========================================================= */

.match-cta-band{
  margin-top:30px;
  padding:24px 20px;
  border-radius:24px;
  background:linear-gradient(90deg, rgba(255,79,216,.14), rgba(139,92,246,.14), rgba(76,201,255,.14));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:var(--shadow);
}

.match-cta-band h3{
  margin:0 0 10px;
  font-size:28px;
}

.match-cta-band p{
  margin:0 0 16px;
  color:var(--muted);
}

.match-mini-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:18px;
}

.match-mini-panel{
  padding:18px;
  border-radius:20px;
  background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.07);
}

.match-mini-panel h4{
  margin:0 0 8px;
  font-size:20px;
}

.match-mini-panel p{
  margin:0;
  color:var(--muted);
}

/* =========================================================
   ANIMATIONS
   ========================================================= */

.glow-pulse{
  animation:glowPulse 2.8s ease-in-out infinite;
}

.float-soft{
  animation:floatSoft 4.8s ease-in-out infinite;
}

@keyframes glowPulse{
  0%,100%{
    box-shadow:0 0 0 rgba(255,79,216,0), 0 18px 50px rgba(0,0,0,.35);
  }
  50%{
    box-shadow:0 0 28px rgba(255,79,216,.20), 0 18px 50px rgba(0,0,0,.35);
  }
}

@keyframes floatSoft{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(-6px); }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 980px){
  .match-hero-grid,
  .match-grid,
  .result-traits,
  .match-mini-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 720px){
  .match-wrap{
    padding:22px 0 56px;
  }

  .match-hero{
    padding:24px 18px;
    border-radius:24px;
  }

  .match-panel,
  .quiz-question,
  .result-box{
    padding:20px 16px;
  }

  .quiz-option label{
    padding:14px 14px;
  }

  .btn{
    width:100%;
  }

  .quiz-actions,
  .result-cta{
    flex-direction:column;
    align-items:stretch;
  }
}