@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.id-card {
  width: 600px;
  max-width: 100%;
  height: 380px;
  background: linear-gradient(135deg, #e6f3ff 0%, #b3d9ff 100%);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  padding: 20px;
  position: relative;
  overflow: hidden;
  animation: slideIn 0.5s ease-out;
}

.id-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.05) 10px,
      rgba(255, 255, 255, 0.05) 20px
    );
  pointer-events: none;
}

.id-card.golden-ticket {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.6), 0 8px 24px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.5s ease-out, glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6), 0 8px 24px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.9), 0 8px 24px rgba(0, 0, 0, 0.2);
  }
}

.id-header {
  text-align: center;
  margin-bottom: 12px;
  border-bottom: 2px solid rgba(0, 51, 102, 0.3);
  padding-bottom: 8px;
}

.id-body {
  display: flex;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.id-photo-section {
  flex-shrink: 0;
}

.id-photo {
  width: 160px;
  height: 200px;
  object-fit: cover;
  border: 3px solid #003366;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.id-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.id-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.id-label {
  font-size: 9px;
  font-weight: bold;
  color: #003366;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.id-value {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: #000;
  background: rgba(255, 255, 255, 0.5);
  padding: 2px 4px;
  border-radius: 2px;
}

.id-footer {
  position: absolute;
  bottom: 16px;
  right: 20px;
  left: 20px;
  text-align: center;
}

.barcode {
  height: 40px;
  background: repeating-linear-gradient(
    90deg,
    #000 0px,
    #000 2px,
    transparent 2px,
    transparent 4px,
    #000 4px,
    #000 5px,
    transparent 5px,
    transparent 8px,
    #000 8px,
    #000 10px,
    transparent 10px,
    transparent 11px
  );
  margin: 0 auto;
  max-width: 300px;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .id-card {
    width: 100%;
    height: auto;
    min-height: 380px;
  }
  
  .id-body {
    flex-direction: column;
    align-items: center;
  }
  
  .id-photo {
    width: 140px;
    height: 175px;
  }
  
  .id-info {
    width: 100%;
  }
}