
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800;900&family=DM+Sans:wght@400;500;600&display=swap');

body {
  font-family: 'DM Sans', sans-serif;
  background: linear-gradient(160deg, #0f172a 0%, #1039a0 50%, #1a56db 100%);
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}

.outfit { font-family: 'Outfit', sans-serif; }

/* ── KIOSK WRAPPER ── */
.kiosk-wrap {
  width: 100%; max-width: 860px;
  display: flex; flex-direction: column;
  align-items: center; gap: 16px;
  padding: 16px;
}

/* ── HEADER ── */
.kiosk-header { text-align: center; }
.kiosk-header h1 {
  font-family: 'Outfit', sans-serif; font-weight: 900;
  font-size: clamp(0.95rem, 2vw, 1.3rem);
  color: white; text-transform: uppercase; letter-spacing: 1px; line-height: 1.3;
}
.kiosk-header h2 {
  font-family: 'Outfit', sans-serif; font-weight: 600;
  font-size: clamp(0.75rem, 1.5vw, 0.92rem);
  color: rgba(255,255,255,0.7); text-transform: uppercase;
  letter-spacing: 0.5px; margin-top: 4px;
}

/* ── MAIN CARD ── */
.kiosk-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 22px; padding: 28px 36px;
  width: 100%; display: flex; flex-direction: column;
  align-items: center; gap: 18px;
  cursor: pointer; transition: background 0.2s;
}
.kiosk-card:hover { background: rgba(255,255,255,0.15); }
.kiosk-card-result { cursor: default; }
.kiosk-card-result:hover { background: rgba(255,255,255,0.1); }

/* ── LOGO ── */
.kiosk-logo-wrap {
  width: 82px; height: 82px;
}
.kiosk-logo { width: 100%; border-radius: 50%; }

/* ── SCAN ANIMATION ── */
.scan-pulse {
  width: 80px; height: 80px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.scan-pulse::before, .scan-pulse::after {
  content: ''; position: absolute; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  animation: pulse-ring 2s ease-out infinite;
}
.scan-pulse::after { animation-delay: 1s; }
@keyframes pulse-ring {
  0%   { width: 40px; height: 40px; opacity: 1; }
  100% { width: 80px; height: 80px; opacity: 0; }
}
.scan-icon { font-size: 2rem; color: white; position: relative; z-index: 1; }

/* ── RESULT ── */
.result-photo-wrap {
  width: 100px; height: 120px; border-radius: 10px;
  overflow: hidden; border: 3px solid rgba(255,255,255,0.4);
}
.result-photo { width: 100%; height: 100%; object-fit: cover; }
.result-icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 900;
}
.result-icon-granted { background: #dcfce7; color: #15803d; }
.result-icon-denied  { background: #fee2e2; color: #b91c1c; }
.result-title {
  font-family: 'Outfit', sans-serif; font-weight: 900;
  font-size: 1.5rem;
}
.result-title-granted { color: #86efac; }
.result-title-denied  { color: #fca5a5; }
.result-name {
  font-family: 'Outfit', sans-serif; font-weight: 800;
  font-size: 1.1rem; color: white; text-align: center;
}
.result-message { color: rgba(255,255,255,0.75); text-align: center; font-size: 0.9rem; }
.result-timestamp {
  font-family: 'Outfit', sans-serif; font-weight: 700;
  color: rgba(255,255,255,0.65); font-size: 0.85rem; text-align: center;
}
.result-demo-badge {
  background: rgba(251,191,36,0.2); border: 1px solid rgba(251,191,36,0.4);
  color: #fcd34d; border-radius: 8px; padding: 5px 14px;
  font-size: 0.78rem; font-weight: 600;
}

/* ── INSTRUCTION ── */
.kiosk-instruction {
  color: rgba(255,255,255,0.85); text-align: center;
  font-size: 0.95rem; line-height: 1.6;
}
.kiosk-press-hint {
  color: rgba(255,255,255,0.5); font-size: 0.78rem; text-align: center;
}
.kiosk-press-hint kbd {
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px; padding: 2px 8px; font-size: 0.75rem; color: white;
}

/* ── ALERT BOX ── */
.kiosk-alert {
  background: rgba(251,191,36,0.15);
  border: 1px solid rgba(251,191,36,0.3);
  border-radius: 12px; padding: 12px 18px;
  display: flex; align-items: flex-start; gap: 12px;
  width: 100%;
}
.kiosk-alert-icon {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(251,191,36,0.3); color: #fcd34d;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 0.85rem; flex-shrink: 0;
}
.kiosk-alert-text { color: rgba(255,255,255,0.75); font-size: 0.82rem; line-height: 1.5; }

/* ── FOOTER ── */
.kiosk-footer {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px; padding: 10px 18px;
  color: rgba(255,255,255,0.65); font-size: 0.82rem; width: 100%;
  text-align: center;
}

/* ── SPINNER ── */
.kiosk-spinner {
  width: 52px; height: 52px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.spinner-ring {
  width: 52px; height: 52px; border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.2);
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
