:root {
  --bg: #0b0b0b;
  --card: #0f0f12;
  --muted: #9aa3b2;
  --accent: #6be6ff;
  --accent-2: #7ef0a6;
  --glass: rgba(255, 255, 255, 0.04);
  --maxw: 1100px;
  --radius: 14px;
  --ff: "Aclonica", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

body {
    font-family: Arial, sans-serif;
    background: #0e0e10;
    color: #fff;
    text-align: center;
    padding: 40px;
  }

  #main-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-top: 20px;
  }

  #video-container, #uploadedImageContainer {
    position: relative;
    display: none; /* Hidden until active */
    width: 480px;
    height: auto;
    margin: 10px;
  }

  video, canvas, img.displayed {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
  }

  canvas {
    position: absolute;
    top: 0;
    left: 0;
  }

  #preview-container {
    margin-left: 20px;
    text-align: center;
    display: none; /* Hidden until used */
  }

  #facePreview {
    width: 160px;
    height: 160px;
    border-radius: 12px;
    object-fit: cover;
    background: #111;
    border: 2px solid #00ff88;
    display: block;
    margin: 0 auto 10px auto;
  }

  #controls { margin-top: 20px; }

  button, select {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin: 5px;
  }

  button:hover, select:hover { background: #0056b3; }

  #result {
    margin-top: 20px;
    font-size: 22px;
    color: #00ff88;
  }

  .meter {
    margin: 20px auto;
    width: 300px;
    height: 18px;
    border-radius: 10px;
    background: #333;
    overflow: hidden;
    box-shadow: inset 0 0 5px #000;
  }

  .meter-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff5555, #ffb347, #00ff88);
    transition: width 0.3s ease-in-out;
  }

  #confidence-text {
    font-size: 14px;
    color: #aaa;
  }

  /* FOOTER */
footer {
  margin-top: 60px;
  padding: 26px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.005));
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.socials a {
  margin-left: 10px;
  color: var(--muted);
  text-decoration: none;
}
.wrap {
  max-width: var(--maxw);
  margin: 36px auto;
  padding: 0 20px;
}