/* Rakana AI Face Match */
.rakana-match-wrap{
  max-width:1120px;
  margin:0 auto;
  padding:24px 14px 50px;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  color:#2d2038;
}

.match-hero{
  text-align:center;
  padding:36px 18px;
  border-radius:28px;
  background:
    radial-gradient(circle at top left,rgba(255,217,120,.24),transparent 34%),
    radial-gradient(circle at bottom right,rgba(241,7,163,.28),transparent 42%),
    linear-gradient(135deg,#1a102e,#2a1246 55%,#050816);
  box-shadow:0 18px 45px rgba(67,43,94,.26);
  border:1px solid rgba(255,217,120,.22);
  margin-bottom:22px;
}

.match-badge{
  display:inline-flex;
  align-items:center;
  padding:8px 15px;
  border-radius:999px;
  background:rgba(255,255,255,.92);
  color:#7b2ff7;
  font-weight:900;
  box-shadow:0 8px 20px rgba(88,41,128,.18);
}

.match-hero h1{
  margin:14px 0 10px;
  font-size:clamp(32px,6vw,58px);
  line-height:1.02;
  letter-spacing:-1.5px;
  color:#ffd978;
}

.match-sub{
  max-width:800px;
  margin:0 auto;
  font-size:18px;
  line-height:1.65;
  color:#f4efff;
}

.match-trust{
  margin-top:20px;
  display:flex;
  gap:10px;
  justify-content:center;
  flex-wrap:wrap;
}

.match-trust span{
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,217,120,.20);
  color:#fff6d8;
  padding:9px 12px;
  border-radius:999px;
  font-weight:800;
  font-size:14px;
}

.match-card{
  background:#fff;
  border-radius:26px;
  padding:22px;
  box-shadow:0 14px 38px rgba(50,26,74,.12);
  border:1px solid rgba(111,69,145,.10);
}

.match-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}

.match-upload{
  display:block;
  min-height:260px;
  padding:18px;
  border-radius:22px;
  background:linear-gradient(180deg,#fff,#fff8fb);
  border:2px dashed #d8b7ff;
  position:relative;
  cursor:pointer;
  transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease;
}

.match-upload:hover{
  transform:translateY(-2px);
  border-color:#9b5de5;
  box-shadow:0 10px 25px rgba(120,59,178,.13);
}

.match-upload.required{
  background:linear-gradient(180deg,#fff,#f7edff);
  border-color:#a873ee;
}

.match-icon{
  display:inline-flex;
  font-size:22px;
  font-weight:900;
  width:52px;
  height:52px;
  align-items:center;
  justify-content:center;
  border-radius:17px;
  background:#f2e7ff;
  color:#2c1240;
  margin-bottom:10px;
}

.match-upload strong{
  display:block;
  font-size:22px;
  color:#321347;
}

.match-upload em{
  display:inline-block;
  margin:7px 0 8px;
  font-style:normal;
  font-size:13px;
  font-weight:900;
  color:#fff;
  background:#8f43d8;
  padding:4px 9px;
  border-radius:999px;
}

.match-upload input[type=file]{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
  overflow:hidden !important;
  pointer-events:none !important;
}

.match-file-btn{
  display:inline-block;
  margin-top:10px;
  padding:9px 13px;
  border-radius:999px;
  background:#2c1240;
  color:#fff;
  font-size:14px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(44,18,64,.16);
}

.match-file-name{
  display:block;
  margin-top:8px;
  color:#6a5872;
  font-size:13px;
  line-height:1.35;
}

.match-upload small{
  display:block;
  color:#67566d;
  line-height:1.45;
  margin-top:9px;
}

.preview{
  display:none;
  max-width:100%;
  max-height:180px;
  border-radius:16px;
  margin-top:12px;
  object-fit:cover;
  border:1px solid rgba(0,0,0,.08);
}

.match-question{
  display:block;
  margin-top:18px;
}

.match-question strong{
  display:block;
  margin-bottom:8px;
  font-size:20px;
  color:#321347;
}

.match-question textarea{
  width:100%;
  box-sizing:border-box;
  border:1px solid #dac5ed;
  border-radius:18px;
  padding:15px;
  font-size:16px;
  line-height:1.55;
  resize:vertical;
  min-height:130px;
  outline:none;
}

.match-question textarea:focus{
  border-color:#8f43d8;
  box-shadow:0 0 0 4px rgba(143,67,216,.12);
}

.match-note{
  margin:16px 0;
  padding:13px 15px;
  background:#f7f2ff;
  color:#4e385d;
  border-radius:16px;
  line-height:1.5;
}

.match-btn,.unlock-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  border:none;
  border-radius:999px;
  padding:14px 24px;
  font-size:17px;
  font-weight:900;
  cursor:pointer;
  background:linear-gradient(135deg,#7b2ff7,#f107a3);
  color:#fff !important;
  box-shadow:0 12px 24px rgba(128,43,210,.24);
}

.match-btn:disabled{
  opacity:.7;
  cursor:wait;
}

.match-status{
  margin-top:12px;
  color:#654a72;
  font-weight:800;
}

.match-footer-note{
  margin:18px auto 0;
  max-width:850px;
  text-align:center;
  color:#d8d0ff;
  line-height:1.55;
}

.result-card{
  max-width:900px;
  margin:0 auto;
}

.score-box{
  text-align:center;
  padding:26px 18px;
  border-radius:26px;
  background:
    radial-gradient(circle at top left,rgba(255,217,120,.25),transparent 30%),
    linear-gradient(135deg,#2b0b45,#7426b5 60%,#d8338a);
  color:#fff;
  margin-bottom:22px;
}

.score-label{
  font-size:15px;
  letter-spacing:.5px;
  text-transform:uppercase;
  opacity:.88;
  font-weight:900;
}

.score-value{
  font-size:clamp(58px,11vw,96px);
  line-height:1;
  font-weight:1000;
  margin:8px 0;
  color:#ffd978;
}

.score-note{
  max-width:660px;
  margin:0 auto;
  line-height:1.55;
  color:#fff6d8;
}

.reading-output{
  background:linear-gradient(180deg,#fff,#fffaf2);
  border:1px solid rgba(117,70,150,.10);
  border-radius:22px;
  padding:22px;
  font-size:18px;
  line-height:1.75;
  color:#33223d;
}

.unlock-box{
  margin-top:22px;
  padding:24px;
  border-radius:24px;
  background:
    radial-gradient(circle at top right,rgba(255,255,255,.7),transparent 35%),
    linear-gradient(135deg,#2b0b45,#7426b5 60%,#d8338a);
  color:#fff;
  text-align:center;
}

.unlock-box h2{
  margin:0 0 8px;
  font-size:30px;
}

.unlock-box p{
  margin:0 auto 16px;
  max-width:620px;
  line-height:1.55;
}

.unlock-btn{
  background:#fff;
  color:#6f21ac !important;
}

.match-back{
  margin-top:18px;
  background:linear-gradient(135deg,#3f2b96,#a8c0ff);
}

.match-error{
  background:#fff1f1;
  color:#9b1c1c;
  border:1px solid #ffd0d0;
  border-radius:16px;
  padding:14px;
  line-height:1.5;
}

@media(max-width:760px){
  .rakana-match-wrap{
    padding:14px 10px 38px;
  }
  .match-grid{
    grid-template-columns:1fr;
  }
  .match-card{
    padding:15px;
    border-radius:22px;
  }
  .match-hero{
    padding:28px 14px;
    border-radius:22px;
  }
  .match-sub{
    font-size:16px;
  }
  .reading-output{
    font-size:16px;
    padding:16px;
  }
}