* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
}

body {
  background: #000;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

body::before {
  content: "";
  position: fixed;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #8c25f4 0%, transparent 70%);
  filter: blur(70px);
  top: -100px;
  left: -100px;
  opacity: 0.5;
}

body::after {
  content: "";
  position: fixed;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #1a4ce6 0%, transparent 70%);
  filter: blur(70px);
  bottom: -100px;
  right: -100px;
  opacity: 0.5;
}

.container {
  width: 100%;
  max-width: 420px;
}

.screen {
  background: #0e0e0e;
  border-radius: 22px;
  padding: 28px;
  display: none;
  flex-direction: column;
  gap: 14px;
  text-align: center;
  position: relative;
  z-index: 10;
  background: linear-gradient(
    135deg,
    #111111 0%,
    #3a0d7e66 50%,
    #1a4ce657 100%
  );
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
  transform: translateZ(0);
  will-change: transform;
}

.screen.active {
  display: flex;
}

.gradient {
  background: linear-gradient(
    79.79deg,
    #e3cafc -20.78%,
    #8c25f4 36.79%,
    #1a4ce6 99.17%
  );
}

.btn {
  padding: 16px;
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 rgba(140, 37, 244, 0.5);
  }

  50% {
    box-shadow: 0 0 22px rgba(140, 37, 244, 0.7);
  }

  100% {
    box-shadow: 0 0 0 rgba(140, 37, 244, 0.5);
  }
}

.btn:active {
  transform: scale(0.97);
}

.hero {
  width: 60px;
  height: 60px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 600;
}

.upload-box {
  position: relative;
  border: 2px dashed rgba(255, 255, 255, 0.55);
  border-radius: 22px;
  padding: 42px 24px;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
  background: radial-gradient(
    circle at center,
    transparent,
    rgba(255, 255, 255, 0.25)
  );
  box-shadow:
    inset 0 0 35px rgba(255, 255, 255, 0.08),
    0 15px 45px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(1000px);
  -webkit-backdrop-filter: blur(1000px);
  overflow: hidden;
  isolation: isolate;
}

.upload-box::before,
.upload-box::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  filter: blur(200px);
  opacity: 0.95;
  z-index: -1;
  transition: transform 0.3s ease;
}

.upload-box::before {
  top: -90px;
  right: -30px;
  background: radial-gradient(circle, #8c25f4 0%, transparent 70%);
}

.upload-box::after {
  bottom: 80px;
  left: -40px;
  background: radial-gradient(
    circle at center,
    rgba(93, 164, 255, 0.85),
    rgba(26, 76, 230, 0.45)
  );
}

.upload-box:hover {
  border-color: #8c25f4;
  transform: translateY(-2px);
}

#uploadText {
  font-size: 20px;
}

.upload-icon {
  font-size: 36px;
  margin-bottom: 10px;
}

.scan-box {
  width: 220px;
  height: 220px;
  margin: 20px auto;
  position: relative;
}

.corner {
  position: absolute;
  width: 32px;
  height: 32px;
  border: 3px solid #8c25f4;
}

.c1 {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
}

.c2 {
  top: 0;
  right: 0;
  border-left: none;
  border-bottom: none;
}

.c3 {
  bottom: 0;
  left: 0;
  border-right: none;
  border-top: none;
}

.c4 {
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
}

.scan-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #e3cafc, #8c25f4, #1a4ce6);
  box-shadow:
    0 0 10px #8c25f4,
    0 0 25px #8c25f4;
  animation: scan 2.2s linear infinite;
}

@keyframes scan {
  0% {
    top: 0%;
  }

  100% {
    top: 100%;
  }
}

.point {
  width: 7px;
  height: 7px;
  background: #8c25f4;
  border-radius: 50%;
  position: absolute;
  box-shadow: 0 0 8px #8c25f4;
  animation: blink 1.6s infinite;
}

@keyframes blink {
  0% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.3;
  }
}

.eye-left {
  top: 32%;
  left: 30%;
}

.eye-right {
  top: 32%;
  right: 30%;
}

.nose {
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
}

.mouth-left {
  top: 65%;
  left: 36%;
}

.mouth-right {
  top: 65%;
  right: 36%;
}

.chin {
  top: 80%;
  left: 50%;
  transform: translateX(-50%);
}

.heat {
  position: absolute;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, #8c25f4 0%, transparent 70%);
  filter: blur(20px);
  opacity: 0.6;
  animation: heat 3s infinite;
}

@keyframes heat {
  0% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.7;
  }

  100% {
    opacity: 0.3;
  }
}

.h1 {
  top: 30%;
  left: 35%;
}

.h2 {
  top: 55%;
  right: 30%;
}

.scan-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  text-align: left;
}

.progress-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.progress-item.active {
  opacity: 1;
  border-color: rgba(140, 37, 244, 0.6);
  /* box-shadow: 0 0 12px rgba(140, 37, 244, 0.25); */
}

.progress-item.done {
  border-color: rgba(61, 214, 140, 0.6);
}

.progress-label {
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.progress-percent {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(79.79deg, #e3cafc, #8c25f4, #1a4ce6);
  box-shadow: 0 0 12px rgba(140, 37, 244, 0.6);
  transition: width linear;
}

.score {
  font-size: 46px;
  font-weight: 700;
  padding: 10px;
  border-radius: 12px;
}

.plan {
  text-align: left;
  font-size: 14px;
  line-height: 1.6;
  filter: blur(7px);
  opacity: 0.6;
}

.social {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
  font-size: 12px;
  opacity: 0.6;
}

.stat {
  font-size: 13px;
  opacity: 0.8;
}

.privacy-card {
  margin-top: 12px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(20, 20, 20, 0.1);
  backdrop-filter: blur(100px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
}

.privacy-icon {
  margin: 0 auto;
}

.privacy-title {
  text-align: center;
  font-weight: 500;
  font-size: 18px;
  margin-bottom: 12px;
}

.privacy-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  opacity: 0.85;
}

.privacy-list li {
  display: flex;
  gap: 6px;
  align-items: center;
}

@media screen and (max-height: 800px) {
  #result {
    padding: 18px;
    gap: 10px;
  }

  #result h2 {
    font-size: 20px;
  }

  #result .score {
    font-size: 36px;
    padding: 6px;
  }

  #result .plan {
    font-size: 13px;
    line-height: 1.4;
  }

  #result .stat {
    font-size: 12px;
  }

  #result .btn {
    padding: 12px;
    font-size: 14px;
  }
}
