* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #05070d;
  --panel: rgba(13, 18, 31, 0.78);
  --panel-strong: rgba(13, 18, 31, 0.96);
  --border: rgba(255, 255, 255, 0.12);
  --border-soft: rgba(255, 255, 255, 0.08);
  --text: #f8fafc;
  --muted: #9ca3af;
  --muted-soft: #64748b;
  --accent: #ff6a00;
  --accent-light: #ff9a3d;
  --success: #22c55e;
  --shadow: rgba(0, 0, 0, 0.45);
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.background-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 106, 0, 0.18), transparent 32%),
    radial-gradient(circle at 82% 20%, rgba(86, 98, 255, 0.16), transparent 34%),
    radial-gradient(circle at 50% 90%, rgba(255, 0, 122, 0.11), transparent 34%),
    linear-gradient(180deg, #05070d 0%, #090d18 48%, #05070d 100%);
}

.topbar {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(255, 106, 0, 0.3);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--text);
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 90px);
  padding: 70px 0 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badge {
  padding: 9px 15px;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(255, 106, 0, 0.09);
  border: 1px solid rgba(255, 106, 0, 0.22);
  font-size: 13px;
  margin-bottom: 24px;
}

.hero h1 {
  max-width: 900px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.94;
  letter-spacing: -0.08em;
  font-weight: 950;
  margin-bottom: 26px;
}

.hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.search-panel {
  width: min(720px, 100%);
  padding: 16px;
  border-radius: 34px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035)),
    var(--panel);
  backdrop-filter: blur(26px);
  box-shadow: 0 34px 90px var(--shadow);
}

.upload-box {
  height: 330px;
  border-radius: 26px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(circle at center, rgba(255, 106, 0, 0.1), transparent 42%),
    rgba(2, 6, 23, 0.56);
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.upload-box:hover {
  border-color: rgba(255, 106, 0, 0.56);
  background:
    radial-gradient(circle at center, rgba(255, 106, 0, 0.14), transparent 42%),
    rgba(2, 6, 23, 0.72);
}

.upload-box.drag-over {
  transform: scale(0.99);
  border-color: var(--accent);
}

.upload-empty {
  text-align: center;
  padding: 30px;
}

.upload-plus {
  width: 78px;
  height: 78px;
  border-radius: 25px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #ffffff;
  font-size: 40px;
  font-weight: 300;
  box-shadow: 0 18px 40px rgba(255, 106, 0, 0.27);
}

.upload-empty h3 {
  font-size: 25px;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.upload-empty span {
  color: var(--muted);
  font-size: 14px;
}

.preview-image {
  position: absolute;
  inset: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  object-fit: contain;
  object-position: center;
  display: none;
  background: transparent;
}

.upload-box.has-image .preview-image {
  display: block;
}

.upload-box.has-image .upload-empty {
  display: none;
}

.search-button {
  width: 100%;
  height: 58px;
  margin-top: 14px;
  border: none;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #ffffff;
  font-size: 16px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(255, 106, 0, 0.27);
  transition: all 0.22s ease;
}

.search-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 48px rgba(255, 106, 0, 0.34);
}

.search-button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

.privacy-line {
  margin-top: 14px;
  color: var(--muted-soft);
  font-size: 13px;
}

.loading-section {
  display: none;
  padding: 40px 0 90px;
}

.loading-section.visible {
  display: block;
}

.scanner-card {
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 42px 24px;
  border-radius: 32px;
  text-align: center;
  border: 1px solid var(--border);
  background: var(--panel);
  backdrop-filter: blur(24px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.scanner-ring {
  width: 92px;
  height: 92px;
  margin: 0 auto 22px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent);
  border-right-color: var(--accent-light);
  animation: spin 0.9s linear infinite;
}

.scanner-card h2 {
  font-size: 26px;
  letter-spacing: -0.05em;
  margin-bottom: 10px;
}

.scanner-card p {
  color: var(--muted);
}

.results-section {
  display: none;
  padding: 24px 0 90px;
}

.results-section.visible {
  display: block;
}

.results-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.results-header h2 {
  font-size: 34px;
  letter-spacing: -0.06em;
  margin-bottom: 7px;
}

.results-header p {
  color: var(--muted);
}

.results-header span {
  padding: 8px 13px;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(255, 106, 0, 0.09);
  border: 1px solid rgba(255, 106, 0, 0.18);
  font-size: 13px;
  white-space: nowrap;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.person-card {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--border-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    var(--panel);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.26);
  cursor: pointer;
  transition: all 0.22s ease;
}

.person-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 106, 0, 0.32);
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.34);
}

.main-photo {
  height: 260px;
  background-size: cover;
  background-position: center;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 6px;
  background: rgba(0, 0, 0, 0.2);
}

.thumb {
  height: 82px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
}

.person-info {
  padding: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.person-info h3 {
  font-size: 18px;
  letter-spacing: -0.04em;
  margin-bottom: 5px;
}

.person-info p {
  color: var(--muted);
  font-size: 13px;
}

.person-info strong {
  color: var(--success);
  font-size: 18px;
}

.photo-a {
  background: linear-gradient(135deg, #18181b, #ff6a00);
}

.photo-a1 {
  background: linear-gradient(135deg, #0f172a, #ec4899);
}

.photo-a2 {
  background: linear-gradient(135deg, #111827, #3b82f6);
}

.photo-a3 {
  background: linear-gradient(135deg, #1f2937, #f59e0b);
}

.photo-b {
  background: linear-gradient(135deg, #020617, #a855f7);
}

.photo-b1 {
  background: linear-gradient(135deg, #0f172a, #06b6d4);
}

.photo-b2 {
  background: linear-gradient(135deg, #111827, #ef4444);
}

.photo-b3 {
  background: linear-gradient(135deg, #1f2937, #22c55e);
}

.photo-c {
  background: linear-gradient(135deg, #111827, #14b8a6);
}

.photo-c1 {
  background: linear-gradient(135deg, #18181b, #8b5cf6);
}

.photo-c2 {
  background: linear-gradient(135deg, #020617, #f97316);
}

.photo-c3 {
  background: linear-gradient(135deg, #1e293b, #eab308);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 50;
}

.modal.visible {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(16px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(860px, calc(100% - 28px));
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  margin: 18px auto;
  padding: 24px;
  border-radius: 34px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    var(--panel-strong);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.58);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.modal-top {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-right: 42px;
  margin-bottom: 26px;
}

.modal-avatar {
  width: 108px;
  height: 108px;
  border-radius: 30px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.modal-top h2 {
  font-size: 32px;
  letter-spacing: -0.06em;
  margin-bottom: 6px;
}

.modal-top p {
  color: var(--muted);
  margin-bottom: 10px;
}

.match-score {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.18);
  font-size: 13px;
}

.modal-title {
  font-size: 20px;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}

.appearance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.appearance-card {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
}

.appearance-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 106, 0, 0.32);
}

.appearance-image {
  height: 150px;
  background-size: cover;
  background-position: center;
}

.appearance-card span {
  display: block;
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
}

.modal-note {
  margin-top: 20px;
  color: var(--muted-soft);
  line-height: 1.6;
  font-size: 13px;
  border-top: 1px solid var(--border-soft);
  padding-top: 16px;
}

/* CONSENT MODAL */
.consent-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 80;
}

.consent-modal.visible {
  display: block;
}

.consent-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 13, 0.74);
  backdrop-filter: blur(22px);
}

.consent-card {
  position: relative;
  z-index: 1;
  width: min(610px, calc(100% - 28px));
  margin: 10vh auto 0;
  border-radius: 32px;
  overflow: hidden;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    var(--panel-strong);
  border: 1px solid var(--border);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.62);
}

.consent-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 106, 0, 0.2), transparent 34%),
    radial-gradient(circle at 90% 10%, rgba(168, 85, 247, 0.12), transparent 32%);
}

.consent-card h2 {
  position: relative;
  padding: 24px 28px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.05em;
  border-bottom: 1px solid var(--border-soft);
}

.consent-close {
  position: absolute;
  top: 17px;
  right: 18px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.consent-close:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 106, 0, 0.36);
}

.consent-body {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 26px 28px 12px;
}

.consent-body p {
  color: var(--text);
  font-size: 17px;
  line-height: 1.62;
  font-weight: 520;
}

.consent-check {
  position: relative;
  flex-shrink: 0;
  margin-top: 4px;
  width: 25px;
  height: 25px;
  cursor: pointer;
}

.consent-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.consent-check span {
  width: 25px;
  height: 25px;
  border-radius: 8px;
  display: block;
  border: 2px solid rgba(255, 106, 0, 0.82);
  background: rgba(255, 106, 0, 0.08);
  position: relative;
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.06);
}

.consent-check input:checked + span {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(255, 106, 0, 0.28);
}

.consent-check input:checked + span::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 6px;
  height: 12px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.consent-required {
  position: relative;
  padding: 8px 28px 0;
  color: #fed7aa;
  font-size: 15px;
  font-weight: 750;
}

.consent-note {
  position: relative;
  padding: 7px 28px 22px;
  color: var(--muted-soft);
  font-size: 13px;
  line-height: 1.45;
}

.consent-action {
  position: relative;
  width: calc(100% - 56px);
  height: 60px;
  margin: 0 28px 26px;
  border: none;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(255, 106, 0, 0.27);
  transition: all 0.22s ease;
}

.consent-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 48px rgba(255, 106, 0, 0.34);
}

.consent-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 920px) {
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .appearance-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding-top: 48px;
  }
}

@media (max-width: 640px) {
  .topbar {
    width: min(100% - 24px, 1180px);
  }

  .page {
    width: min(100% - 24px, 1180px);
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 44px 0 60px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero p {
    font-size: 16px;
  }

  .search-panel {
    border-radius: 26px;
    padding: 12px;
  }

      .upload-box {
    height: 280px;
    border-radius: 20px;
  }

  .preview-image {
    inset: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
  }

  .results-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .main-photo {
    height: 285px;
  }

  .modal-card {
    border-radius: 26px;
    padding: 18px;
  }

  .modal-top {
    align-items: flex-start;
    flex-direction: column;
    padding-right: 42px;
  }

  .modal-avatar {
    width: 92px;
    height: 92px;
    border-radius: 24px;
  }

  .modal-top h2 {
    font-size: 27px;
  }

  .appearance-grid {
    grid-template-columns: 1fr;
  }

  .appearance-image {
    height: 210px;
  }

    .consent-card {
    margin-top: 7vh;
    border-radius: 26px;
  }

  .consent-card h2 {
    padding: 22px 24px;
    font-size: 22px;
  }

  .consent-body {
    padding: 24px 24px 10px;
  }

  .consent-body p {
    font-size: 15px;
    line-height: 1.58;
  }

  .consent-required {
    padding-left: 24px;
    padding-right: 24px;
  }

  .consent-note {
    padding-left: 24px;
    padding-right: 24px;
  }

  .consent-action {
    width: calc(100% - 48px);
    margin-left: 24px;
    margin-right: 24px;
    border-radius: 18px;
  }
}

/* LEGAL PAGES */
.legal-logo-link {
  color: var(--text);
  text-decoration: none;
}

.legal-page {
  width: min(940px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0 90px;
}

.legal-hero {
  text-align: center;
  margin-bottom: 34px;
}

.legal-hero h1 {
  font-size: clamp(42px, 7vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.075em;
  font-weight: 950;
  margin-bottom: 22px;
}

.legal-hero p {
  max-width: 760px;
  margin: 0 auto 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.legal-updated {
  display: inline-flex;
  padding: 8px 13px;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(255, 106, 0, 0.09);
  border: 1px solid rgba(255, 106, 0, 0.18);
  font-size: 13px;
}

.legal-card {
  padding: 34px;
  border-radius: 34px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035)),
    var(--panel);
  backdrop-filter: blur(26px);
  box-shadow: 0 34px 90px var(--shadow);
}

.legal-card section {
  padding: 26px 0;
  border-bottom: 1px solid var(--border-soft);
}

.legal-card section:first-child {
  padding-top: 0;
}

.legal-card section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.legal-card h2 {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.045em;
  margin-bottom: 12px;
}

.legal-card p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.legal-card ul {
  margin: 14px 0 0 20px;
  color: var(--muted);
}

.legal-card li {
  margin-bottom: 10px;
  line-height: 1.65;
}

.legal-card a {
  color: #fed7aa;
  text-decoration: none;
}

.legal-card a:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

.legal-footer {
  width: min(940px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 42px;
  color: var(--muted-soft);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legal-footer div {
  display: flex;
  gap: 18px;
}

.legal-footer a {
  color: var(--muted);
  text-decoration: none;
}

.legal-footer a:hover {
  color: var(--text);
}

@media (max-width: 640px) {
  .legal-page {
    width: min(100% - 24px, 940px);
    padding: 42px 0 64px;
  }

  .legal-hero h1 {
    font-size: 44px;
  }

  .legal-hero p {
    font-size: 16px;
  }

  .legal-card {
    padding: 24px;
    border-radius: 26px;
  }

  .legal-card h2 {
    font-size: 21px;
  }

  .legal-card p {
    font-size: 15px;
  }

  .legal-footer {
    width: min(100% - 24px, 940px);
    flex-direction: column;
    align-items: flex-start;
  }
}

/* SEARCH STATUS CARDS */
.status-card {
  grid-column: 1 / -1;
  width: min(620px, 100%);
  margin: 0 auto;
  padding: 34px 26px;
  border-radius: 30px;
  text-align: center;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03)),
    var(--panel);
  backdrop-filter: blur(24px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.status-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 30px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  box-shadow: 0 18px 40px rgba(255, 106, 0, 0.24);
}

.status-card h2 {
  font-size: 27px;
  letter-spacing: -0.055em;
  margin-bottom: 10px;
}

.status-card p {
  max-width: 480px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.status-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.status-button {
  min-width: 150px;
  height: 46px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.status-button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 106, 0, 0.35);
}

.status-button.primary {
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  box-shadow: 0 16px 34px rgba(255, 106, 0, 0.22);
}

.status-button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 42px rgba(255, 106, 0, 0.3);
}

/* REAL RESULT IMAGES */
.main-photo img,
.thumb img,
.appearance-image img,
.modal-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.main-photo,
.thumb,
.appearance-image,
.modal-avatar {
  overflow: hidden;
}

.image-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #18181b, #ff6a00);
}

/* BRAND LOGO IMAGE */
.logo-image {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
  box-shadow: 0 14px 34px rgba(255, 106, 0, 0.3);
}

/* FACE DETECTED PREVIEW */
.face-detected-section {
  display: none;
  padding: 34px 0 70px;
}

.face-detected-section.visible {
  display: block;
}

.face-detected-card {
  width: min(640px, 100%);
  margin: 0 auto;
  padding: 18px;
  border-radius: 34px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035)),
    var(--panel);
  backdrop-filter: blur(26px);
  box-shadow: 0 34px 90px var(--shadow);
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  align-items: center;
}

.face-preview-frame {
  height: 190px;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at center, rgba(255, 106, 0, 0.14), transparent 46%),
    rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.detected-face-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.face-scan-box {
  position: absolute;
  inset: 18px;
  border-radius: 22px;
  border: 2px solid rgba(255, 154, 61, 0.95);
  box-shadow:
    0 0 0 1px rgba(255, 106, 0, 0.22),
    0 0 34px rgba(255, 106, 0, 0.32);
  animation: faceScanPulse 1.2s ease-in-out infinite;
}

.face-scan-box::before,
.face-scan-box::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: #ffffff;
  border-style: solid;
}

.face-scan-box::before {
  top: -2px;
  left: -2px;
  border-width: 3px 0 0 3px;
  border-top-left-radius: 14px;
}

.face-scan-box::after {
  right: -2px;
  bottom: -2px;
  border-width: 0 3px 3px 0;
  border-bottom-right-radius: 14px;
}

.face-detected-info {
  text-align: left;
}

.face-status-badge {
  display: inline-flex;
  padding: 8px 13px;
  border-radius: 999px;
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.2);
  font-size: 13px;
  font-weight: 850;
  margin-bottom: 14px;
}

.face-detected-info h2 {
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.06em;
  margin-bottom: 9px;
}

.face-detected-info p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

@keyframes faceScanPulse {
  0% {
    transform: scale(0.97);
    opacity: 0.72;
  }

  50% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(0.97);
    opacity: 0.72;
  }
}

@media (max-width: 640px) {
  .face-detected-card {
    grid-template-columns: 1fr;
    border-radius: 28px;
  }

  .face-preview-frame {
    height: 240px;
  }

  .face-detected-info {
    text-align: center;
  }

  .face-detected-info h2 {
    font-size: 27px;
  }
}

/* AD PLACEHOLDERS */
.top-ad-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 0 8px;
}

.ad-banner {
  width: 100%;
  min-height: 92px;
  border-radius: 22px;
  border: 1px solid rgba(255, 106, 0, 0.18);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 106, 0, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(13, 18, 31, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  color: var(--muted);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.ad-banner-top {
  min-height: 100px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.ad-banner-top .exo-ad-slot {
  width: 100%;
  min-height: 90px;
  display: grid;
  place-items: center;
}

.ad-banner-top .exo-ad-slot ins,
.ad-banner-top .exo-ad-slot iframe {
  max-width: 100%;
}

.ad-result-card {
  grid-column: 1 / -1;
  cursor: default;
}

.ad-result-card:hover {
  transform: none;
  border-color: rgba(255, 106, 0, 0.18);
}

@media (max-width: 640px) {
  .top-ad-section {
    width: min(100% - 24px, 1180px);
    padding-top: 4px;
  }

  .ad-banner {
    min-height: 78px;
    border-radius: 18px;
  }

  .ad-banner strong {
    font-size: 14px;
  }
}

.exo-ad-slot {
  width: 100%;
  min-height: 90px;
  display: grid;
  place-items: center;
}

.exo-ad-slot iframe,
.exo-ad-slot ins {
  max-width: 100%;
}

.ad-banner-result {
  min-height: 270px;
  padding: 18px;
}

.exo-ad-slot-result {
  width: 100%;
  min-height: 250px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.exo-ad-slot-result ins,
.exo-ad-slot-result iframe {
  max-width: 100%;
}