* {
  box-sizing: border-box;
}

:root {
  --bg: #070707;
  --panel: rgba(20, 18, 14, 0.82);
  --gold: #d8b24a;
  --gold-light: #ffe28a;
  --gold-dark: #7d5b12;
  --text: #fff8df;
  --muted: rgba(255, 248, 223, 0.72);
  --facebook: #1877f2;
}

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(216, 178, 74, 0.18), transparent 38%),
    linear-gradient(135deg, #030303, #12100a 50%, #050505);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.35;
  pointer-events: none;
}

.ambient-one {
  width: 360px;
  height: 360px;
  background: #8c6a1d;
  left: -120px;
  top: 8%;
}

.ambient-two {
  width: 280px;
  height: 280px;
  background: #a12f3f;
  right: -100px;
  bottom: 10%;
}

.app {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.card, .result {
  width: min(920px, 96vw);
  border: 1px solid rgba(255, 226, 138, 0.24);
  background: var(--panel);
  backdrop-filter: blur(18px);
  border-radius: 28px;
  padding: clamp(24px, 5vw, 52px);
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255,255,255,0.08);
  text-align: center;
}

.hero {
  animation: floatIn 700ms ease both;
}

.crest {
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #120d02;
  font-weight: 950;
  letter-spacing: -3px;
  font-size: 28px;
  background: radial-gradient(circle at 35% 25%, #fff4b6, var(--gold) 55%, var(--gold-dark));
  box-shadow: 0 0 32px rgba(216, 178, 74, 0.35);
}

.eyebrow {
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  margin: 0 0 12px;
}

h1 {
  margin: 0;
  font-size: clamp(3.4rem, 11vw, 7.5rem);
  line-height: 0.86;
  letter-spacing: -0.08em;
  color: var(--gold);
  text-shadow: 0 0 36px rgba(216, 178, 74, 0.22);
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 5vw, 3.4rem);
}

.subtitle {
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  color: var(--muted);
  max-width: 650px;
  margin: 22px auto 24px;
}

.trust-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 auto 28px;
}

.trust-row span {
  border: 1px solid rgba(255, 226, 138, 0.24);
  background: rgba(255, 226, 138, 0.06);
  padding: 9px 12px;
  border-radius: 999px;
  color: rgba(255, 248, 223, 0.86);
  font-size: 0.9rem;
}

button, .download {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 16px 26px;
  margin: 6px;
  font-weight: 900;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button:hover, .download:hover {
  transform: translateY(-2px);
}

.gold-button {
  color: #130e03;
  background: linear-gradient(135deg, #fff2a8, var(--gold), #9f7418);
  box-shadow: 0 12px 35px rgba(216, 178, 74, 0.24);
}

.facebook-button {
  color: #fff;
  background: linear-gradient(135deg, #3b8cff, var(--facebook));
  box-shadow: 0 12px 35px rgba(24, 119, 242, 0.22);
}

.ghost-button {
  color: var(--gold-light);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255, 226, 138, 0.25);
}

.smallprint {
  color: rgba(255, 248, 223, 0.55);
  font-size: 0.92rem;
  max-width: 620px;
  margin: 26px auto 0;
}

.hidden {
  display: none !important;
}

.scan-shell {
  position: relative;
  width: min(500px, 88vw);
  height: 260px;
  margin: 24px auto;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 226, 138, 0.20);
  background:
    radial-gradient(circle at center, rgba(216, 178, 74, 0.15), transparent 52%),
    rgba(0,0,0,0.25);
}

.scan-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,226,138,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,226,138,0.08) 1px, transparent 1px);
  background-size: 34px 34px;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold-light);
  box-shadow: 0 0 28px var(--gold-light);
  animation: scan 1.45s ease-in-out infinite alternate;
}

.progress {
  width: min(540px, 88vw);
  height: 16px;
  margin: 0 auto 20px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
}

#bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  transition: width 520ms ease;
}

.log {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 620px;
  text-align: left;
  color: rgba(255, 248, 223, 0.76);
}

.log li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.log li::before {
  content: "✓";
  color: var(--gold-light);
  margin-right: 10px;
}

.result {
  position: relative;
  animation: floatIn 500ms ease both;
}

.verdict-ribbon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(216, 178, 74, 0.14);
  color: var(--gold-light);
  border: 1px solid rgba(255, 226, 138, 0.28);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
}

.portrait-frame {
  position: relative;
  width: min(720px, 92vw);
  margin: 0 auto;
  padding: clamp(14px, 3vw, 26px);
  border-radius: 26px;
  background:
    linear-gradient(135deg, #7b560c, #fff0a3 18%, #b9891b 36%, #5c3f08 52%, #ffe28a 76%, #8b6412);
  box-shadow: 0 0 0 8px rgba(0,0,0,0.25), 0 28px 90px rgba(0,0,0,0.42);
}

video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 16px;
  background: #000;
  transform: scaleX(-1);
}

.corner {
  position: absolute;
  width: 44px;
  height: 44px;
  border-color: rgba(255,255,255,0.6);
  z-index: 1;
}

.corner-tl { top: 18px; left: 18px; border-top: 2px solid; border-left: 2px solid; }
.corner-tr { top: 18px; right: 18px; border-top: 2px solid; border-right: 2px solid; }
.corner-bl { bottom: 18px; left: 18px; border-bottom: 2px solid; border-left: 2px solid; }
.corner-br { bottom: 18px; right: 18px; border-bottom: 2px solid; border-right: 2px solid; }

.verdict {
  margin: 26px auto 10px;
}

.verdict p {
  margin: 6px 0;
  color: rgba(255, 248, 223, 0.78);
  font-size: 1.1rem;
}

.verdict strong {
  color: var(--gold-light);
}

.appeal {
  margin-top: 16px !important;
  color: rgba(255, 226, 138, 0.74) !important;
  font-style: italic;
}

.share-message {
  min-height: 24px;
  color: var(--gold-light);
  font-weight: 800;
  margin: 14px auto 0;
}

.download {
  color: #130e03;
  background: #fff1a3;
  margin-top: 14px;
}

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

footer {
  min-height: 64px;
  display: grid;
  place-items: center;
  padding: 18px;
  border-top: 1px solid rgba(255, 226, 138, 0.12);
  color: rgba(255, 248, 223, 0.62);
}

footer a {
  color: var(--gold-light);
  font-weight: 900;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@keyframes scan {
  from { transform: translateY(18px); }
  to { transform: translateY(238px); }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 620px) {
  .card, .result {
    border-radius: 22px;
  }

  button, .download {
    width: 100%;
    max-width: 340px;
  }

  .trust-row span {
    font-size: 0.78rem;
  }
}
