@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
--bg-primary: #0a0a0f;
--bg-card: #13131a;
--bg-card-hover: #1a1a24;
--bg-elevated: #1c1c28;
--accent-halal: #00c896;
--accent-halal-dim: rgba(0,200,150,0.12);
--accent-haram: #ff4d6d;
--accent-haram-dim: rgba(255,77,109,0.12);
--accent-uncertain: #ffb347;
--accent-uncertain-dim: rgba(255,179,71,0.12);
--accent-blue: #4d8bff;
--text-primary: #e8e8ed;
--text-secondary: #8a8a9a;
--text-muted: #55556a;
--border-color: #2a2a3a;
--border-subtle: rgba(255,255,255,0.06);
--radius-xs: 6px;
--radius-sm: 10px;
--radius-md: 14px;
--radius-lg: 22px;
--radius-xl: 28px;
--radius-full: 9999px;
--font-display: 'Syne', sans-serif;
--font-body: 'DM Sans', sans-serif;
--font-mono: 'JetBrains Mono', monospace;
--safe-top: env(safe-area-inset-top, 0px);
--safe-bottom: env(safe-area-inset-bottom, 0px);
--input-h: 52px;
--max-w: 430px;
}

*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
-webkit-tap-highlight-color: transparent;
}

html {
font-size: 16px;
-webkit-text-size-adjust: 100%;
touch-action: manipulation;
}

body {
font-family: var(--font-body);
background: #000;
color: var(--text-primary);
min-height: 100dvh;
overflow: hidden;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
overscroll-behavior: none;
}

#app {
  position: relative;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg-primary);
}

@media (min-width: 431px) {
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #050508;
  }
  #app {
    height: min(100dvh, 932px);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    box-shadow: 0 0 80px rgba(0,0,0,0.8);
    border-radius: 0;
    position: relative;
  }
}

.view {
  position: absolute;
  inset: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.4,0,0.2,1), transform 0.25s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  will-change: opacity, transform;
}

.view.active {
opacity: 1;
transform: translateY(0);
pointer-events: auto;
position: relative;
}

@keyframes fadeIn {
from { opacity: 0; transform: scale(0.96); }
to { opacity: 1; transform: scale(1); }
}

@keyframes badgePop {
0% { transform: scale(0.5); opacity: 0; }
60% { transform: scale(1.08); }
100% { transform: scale(1); opacity: 1; }
}

@keyframes slideUp {
from { opacity: 0; transform: translateY(12px); }
to { opacity: 1; transform: translateY(0); }
}

/* ===== BUTTONS ===== */

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border: none;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-sm);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  touch-action: manipulation;
  user-select: none;
}

.btn-icon:active {
background: rgba(255,255,255,0.16);
transform: scale(0.92);
}

.btn-icon svg {
width: 20px;
height: 20px;
}

.btn-primary {
width: 100%;
height: var(--input-h);
font-family: var(--font-display);
font-weight: 700;
font-size: 0.9375rem;
letter-spacing: 0.02em;
color: #0a0a0f;
background: var(--accent-halal);
border: none;
border-radius: var(--radius-md);
cursor: pointer;
transition: opacity 0.15s ease, transform 0.1s ease;
-webkit-tap-highlight-color: transparent;
touch-action: manipulation;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
}

.btn-primary:active {
opacity: 0.85;
transform: scale(0.97);
}

.btn-primary:disabled {
opacity: 0.35;
cursor: not-allowed;
transform: none;
}

.btn-secondary {
width: 100%;
height: var(--input-h);
font-family: var(--font-display);
font-weight: 600;
font-size: 0.9375rem;
letter-spacing: 0.02em;
color: var(--text-primary);
background: var(--bg-card);
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
cursor: pointer;
transition: background 0.15s ease, transform 0.1s ease;
-webkit-tap-highlight-color: transparent;
touch-action: manipulation;
}

.btn-secondary:active {
background: var(--bg-card-hover);
transform: scale(0.97);
}

/* ===== SCANNER VIEW ===== */

#scanner-view {
background: #000;
}

.scanner-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px clamp(16px, 5vw, 24px);
  padding-top: calc(12px + var(--safe-top));
}

.logo {
font-family: var(--font-display);
font-weight: 800;
font-size: 1.25rem;
letter-spacing: -0.02em;
color: #fff;
user-select: none;
}

.logo span {
color: var(--accent-halal);
}

.scanner-viewport {
position: relative;
flex: 1;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
min-height: 0;
}

.scanner-viewport video {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
}

.scan-reticle {
  position: relative;
  width: min(60vw, 260px);
  height: min(60vw, 260px);
  z-index: 5;
}

.scan-reticle .corner {
position: absolute;
width: 28px;
height: 28px;
border-color: var(--accent-halal);
border-style: solid;
border-width: 0;
filter: drop-shadow(0 0 6px rgba(0,200,150,0.4));
}

.scan-reticle .corner.tl {
top: 0; left: 0;
border-top-width: 3px;
border-left-width: 3px;
border-top-left-radius: 10px;
}

.scan-reticle .corner.tr {
top: 0; right: 0;
border-top-width: 3px;
border-right-width: 3px;
border-top-right-radius: 10px;
}

.scan-reticle .corner.bl {
bottom: 0; left: 0;
border-bottom-width: 3px;
border-left-width: 3px;
border-bottom-left-radius: 10px;
}

.scan-reticle .corner.br {
bottom: 0; right: 0;
border-bottom-width: 3px;
border-right-width: 3px;
border-bottom-right-radius: 10px;
}

.scan-line {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-halal) 30%, var(--accent-halal) 70%, transparent);
  box-shadow: 0 0 8px var(--accent-halal), 0 0 20px rgba(0,200,150,0.25);
  animation: scanPulse 2.4s ease-in-out infinite;
  z-index: 6;
  border-radius: 1px;
  will-change: transform, opacity;
}

@keyframes scanPulse {
  0%, 100% { transform: translateY(12px); opacity: 0.5; }
  50% { transform: translateY(calc(min(60vw, 260px) - 14px)); opacity: 1; }
}

.scan-hint {
  position: absolute;
  bottom: calc(12px + var(--safe-bottom));
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-body);
  z-index: 5;
  letter-spacing: 0.02em;
}

.manual-input-area {
  position: relative;
  z-index: 10;
  padding: 12px clamp(16px, 5vw, 24px);
  padding-bottom: calc(16px + var(--safe-bottom));
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
}

.manual-input-row {
display: flex;
gap: 8px;
}

.manual-input {
  flex: 1;
  height: var(--input-h);
  padding: 0 16px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.manual-input::placeholder {
color: var(--text-muted);
font-family: var(--font-body);
font-weight: 400;
}

.manual-input:focus {
border-color: var(--accent-halal);
background: rgba(0,200,150,0.05);
box-shadow: 0 0 0 3px rgba(0,200,150,0.1);
}

.btn-lookup {
  height: var(--input-h);
  min-height: 48px;
  padding: 0 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: #0a0a0f;
  background: var(--accent-halal);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
  touch-action: manipulation;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-lookup svg {
width: 18px;
height: 18px;
stroke: #0a0a0f;
fill: none;
}

.btn-lookup:active {
opacity: 0.85;
transform: scale(0.95);
}

.btn-lookup:disabled {
opacity: 0.35;
cursor: not-allowed;
transform: none;
}

/* ===== PERMISSION VIEW ===== */

#permission-view {
background: var(--bg-primary);
}

.permission-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: calc(40px + var(--safe-top)) 24px calc(40px + var(--safe-bottom));
  text-align: center;
  gap: 20px;
}

.permission-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  background: var(--accent-halal-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}

.permission-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--accent-halal);
  fill: none;
}

#permission-view h2 {
font-family: var(--font-display);
font-size: 1.375rem;
font-weight: 700;
letter-spacing: -0.02em;
}

#permission-view p {
font-size: 0.9375rem;
color: var(--text-secondary);
max-width: 300px;
line-height: 1.6;
}

/* ===== LOADING VIEW ===== */

#loading-view {
background: var(--bg-primary);
}

.loading-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 20px;
  padding: 40px 24px;
}

.spinner-ring {
  position: relative;
  width: 64px;
  height: 64px;
}

.spinner {
  position: absolute;
  inset: 0;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent-halal);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  will-change: transform;
}

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

.loading-text {
font-family: var(--font-display);
font-size: 1.0625rem;
font-weight: 600;
color: var(--text-secondary);
letter-spacing: 0.01em;
}

.loading-barcode {
font-family: var(--font-mono);
font-size: 0.8125rem;
color: var(--text-muted);
letter-spacing: 0.06em;
padding: 4px 12px;
background: var(--bg-card);
border-radius: var(--radius-full);
border: 1px solid var(--border-color);
}

/* ===== VERDICT VIEW ===== */

#verdict-view {
background: var(--bg-primary);
}

.verdict-content {
  padding: 0 clamp(16px, 5vw, 24px);
  padding-bottom: calc(24px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  min-height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.verdict-top-bar {
width: 100%;
display: flex;
align-items: center;
padding: 12px 0;
padding-top: max(12px, var(--safe-top));
position: sticky;
top: 0;
z-index: 10;
background: var(--bg-primary);
}

.verdict-badge-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  animation: fadeIn 0.5s cubic-bezier(0.4,0,0.2,1) forwards;
  will-change: opacity, transform;
}

.verdict-glow {
  position: relative;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity;
}

.verdict-glow::before {
  content: '';
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  filter: blur(36px);
  opacity: 0.35;
  animation: glowPulse 2.5s ease-in-out infinite;
  will-change: transform, opacity;
}

.verdict-glow::after {
content: '';
position: absolute;
inset: -4px;
border-radius: 50%;
opacity: 0.15;
}

.verdict-glow.halal::before, .verdict-glow.halal::after { background: var(--accent-halal); }
.verdict-glow.haram::before, .verdict-glow.haram::after { background: var(--accent-haram); }
.verdict-glow.uncertain::before, .verdict-glow.uncertain::after { background: var(--accent-uncertain); }

@keyframes glowPulse {
0%, 100% { opacity: 0.25; transform: scale(0.92); }
50% { opacity: 0.45; transform: scale(1.08); }
}

.verdict-badge {
  width: 88px;
  height: 88px;
  min-width: 88px;
  min-height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  animation: badgePop 0.5s cubic-bezier(0.34,1.56,0.64,1) forwards;
  user-select: none;
  will-change: transform, opacity;
}

.verdict-badge.halal {
  background: rgba(0,200,150,0.12);
  color: var(--accent-halal);
  border: 2px solid rgba(0,200,150,0.25);
  box-shadow: 0 0 40px 10px rgba(0,200,150,0.15), inset 0 0 24px rgba(0,200,150,0.05);
}

.verdict-badge.haram {
  background: rgba(255,77,109,0.12);
  color: var(--accent-haram);
  border: 2px solid rgba(255,77,109,0.25);
  box-shadow: 0 0 40px 10px rgba(255,77,109,0.15), inset 0 0 24px rgba(255,77,109,0.05);
}

.verdict-badge.uncertain {
  background: rgba(255,179,71,0.12);
  color: var(--accent-uncertain);
  border: 2px solid rgba(255,179,71,0.25);
  box-shadow: 0 0 40px 10px rgba(255,179,71,0.15), inset 0 0 24px rgba(255,179,71,0.05);
}

.verdict-certified {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 0.75rem;
font-weight: 600;
letter-spacing: 0.04em;
text-transform: uppercase;
padding: 6px 14px;
border-radius: var(--radius-full);
background: var(--accent-halal-dim);
color: var(--accent-halal);
border: 1px solid rgba(0,200,150,0.2);
}

.verdict-certified svg {
width: 14px;
height: 14px;
stroke: var(--accent-halal);
fill: none;
}

/* ===== PRODUCT CARD ===== */

.product-card {
width: 100%;
background: var(--bg-card);
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
overflow: hidden;
}

.product-card-inner {
display: flex;
gap: 14px;
padding: 14px;
align-items: flex-start;
}

.product-image-wrap {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-elevated);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-image-placeholder {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}

.product-image-placeholder svg {
width: 24px;
height: 24px;
stroke: var(--text-muted);
fill: none;
}

.product-info {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 2px;
}

.product-name {
  font-family: var(--font-display);
  font-size: clamp(1rem, 4vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.product-brand {
font-size: 0.8125rem;
color: var(--text-secondary);
}

.product-barcode {
font-family: var(--font-mono);
font-size: 0.75rem;
color: var(--text-muted);
letter-spacing: 0.04em;
margin-top: 2px;
}

/* ===== INGREDIENTS ===== */

.ingredients-section {
width: 100%;
}

.ingredients-section h3 {
font-family: var(--font-display);
font-size: 0.875rem;
font-weight: 600;
margin-bottom: 10px;
letter-spacing: -0.01em;
color: var(--text-secondary);
text-transform: uppercase;
}

.ingredient-list {
display: flex;
flex-direction: column;
gap: 6px;
}

.ingredient-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  animation: slideUp 0.3s ease forwards;
}

.ingredient-item.haram {
border-color: rgba(255,77,109,0.25);
background: rgba(255,77,109,0.04);
}

.ingredient-item.mashbooh {
border-color: rgba(255,179,71,0.25);
background: rgba(255,179,71,0.04);
}

.ingredient-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.ingredient-dot.haram { background: var(--accent-haram); box-shadow: 0 0 6px rgba(255,77,109,0.4); }
.ingredient-dot.mashbooh { background: var(--accent-uncertain); box-shadow: 0 0 6px rgba(255,179,71,0.4); }

.ingredient-detail {
flex: 1;
min-width: 0;
}

.ingredient-name {
font-family: var(--font-display);
font-size: 0.875rem;
font-weight: 600;
margin-bottom: 2px;
}

.ingredient-matched {
font-size: 0.75rem;
color: var(--text-muted);
font-family: var(--font-mono);
margin-bottom: 4px;
}

.ingredient-note {
font-size: 0.75rem;
color: var(--text-secondary);
line-height: 1.45;
}

.ingredient-category {
font-size: 0.6875rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--text-muted);
padding: 2px 8px;
background: rgba(255,255,255,0.04);
border-radius: var(--radius-full);
display: inline-block;
margin-top: 6px;
}

.no-flags {
text-align: center;
padding: 20px;
color: var(--text-secondary);
font-size: 0.875rem;
line-height: 1.5;
}

.btn-scan-again {
margin-top: auto;
}

/* ===== HISTORY VIEW ===== */

#history-view {
background: var(--bg-primary);
}

.history-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px clamp(16px, 5vw, 24px);
  padding-top: calc(16px + var(--safe-top));
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

.history-header h2 {
flex: 1;
font-family: var(--font-display);
font-size: 1.125rem;
font-weight: 700;
letter-spacing: -0.02em;
}

.btn-clear-history {
  height: 48px;
  min-height: 48px;
  padding: 0 14px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-haram);
  background: var(--accent-haram-dim);
  border: 1px solid rgba(255,77,109,0.2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease;
  touch-action: manipulation;
}

.btn-clear-history:active {
background: rgba(255,77,109,0.2);
}

.history-list {
  padding: 10px clamp(16px, 5vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: calc(20px + var(--safe-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.1s ease;
  touch-action: manipulation;
  min-height: 64px;
}

.history-item:active {
  background: var(--bg-card-hover);
}

.history-verdict-pill {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
  user-select: none;
}

.history-verdict-pill.halal {
background: var(--accent-halal-dim);
color: var(--accent-halal);
}

.history-verdict-pill.haram {
background: var(--accent-haram-dim);
color: var(--accent-haram);
}

.history-verdict-pill.uncertain {
background: var(--accent-uncertain-dim);
color: var(--accent-uncertain);
}

.history-info {
flex: 1;
min-width: 0;
}

.history-name {
font-family: var(--font-display);
font-size: 0.875rem;
font-weight: 600;
line-height: 1.35;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.history-time {
font-size: 0.75rem;
color: var(--text-muted);
margin-top: 2px;
}

.history-empty {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
flex: 1;
padding: 60px 24px;
text-align: center;
gap: 10px;
}

.history-empty svg {
  width: 52px;
  height: 52px;
  stroke: var(--text-muted);
  fill: none;
  opacity: 0.6;
}

.history-empty p {
font-family: var(--font-display);
font-size: 1rem;
font-weight: 600;
color: var(--text-secondary);
}

.history-empty span {
font-size: 0.8125rem;
color: var(--text-muted);
}

/* ===== ERROR STATES ===== */

.error-card {
  width: 100%;
  padding: 20px;
  background: var(--accent-haram-dim);
  border: 1px solid var(--accent-haram);
  border-radius: var(--radius-md);
  text-align: center;
}

.error-card h3 {
font-family: var(--font-display);
font-size: 1rem;
font-weight: 600;
color: var(--accent-haram);
margin-bottom: 8px;
}

.error-card p {
font-size: 0.875rem;
color: var(--text-secondary);
line-height: 1.5;
}

/* ===== UTILITY ===== */

.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0,0,0,0);
white-space: nowrap;
border: 0;
}

/* ===== DESKTOP GATE ===== */

#desktop-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-primary);
  background-image: radial-gradient(ellipse at 50% 40%, rgba(0,200,150,0.07) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.4s ease both;
}

.gate-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 40px 24px;
}

.gate-phone-icon {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.gate-phone-icon svg {
  width: 88px;
  height: 88px;
  stroke: var(--accent-halal);
  fill: none;
}

.gate-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: #fff;
  user-select: none;
}

.gate-logo span {
  color: var(--accent-halal);
}

#desktop-gate h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

#desktop-gate p {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  max-width: 280px;
  line-height: 1.5;
}

.gate-qr-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.gate-qr-hint svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
  fill: none;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  #desktop-gate {
    display: none;
  }
}

/* ===== REDUCED MOTION ===== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .scan-line {
    animation: none !important;
    opacity: 0.5;
  }
  .verdict-badge {
    animation: none !important;
    opacity: 1;
    transform: scale(1);
  }
  .verdict-badge-wrapper {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
  .verdict-glow::before {
    animation: none !important;
    opacity: 0.35;
  }
}
