* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
*:focus, *:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0F0F23 0%, #1a1a2e 50%, #16213e 100%);
  color: #fff;
  line-height: 1.6;
  min-height: 100vh;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.hero {
  padding: 80px 0 60px;
  text-align: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}
.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #8B5CF6, #06B6D4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}
.hero-subtitle {
  font-size: 1.2rem;
  color: #94a3b8;
  margin-bottom: 3rem;
}
.upload-area {
  background: rgba(255,255,255,0.05);
  border: 2px dashed #8B5CF6;
  border-radius: 20px;
  padding: 3rem 2rem;
  margin: 2rem auto;
  max-width: 600px;
  cursor: pointer;
  transition: all .3s ease;
}
.upload-area:hover, .upload-area.dragover {
  border-color: #06B6D4;
  background: rgba(255,255,255,0.08);
  transform: scale(1.02);
}
.upload-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: #8B5CF6;
  filter: drop-shadow(0 0 10px rgba(139,92,246,0.5));
}
.upload-area h3 {
  font-size: 1.5rem;
  color: #e2e8f0;
  margin-bottom: .5rem;
}
.upload-area p {
  color: #94a3b8;
  margin-bottom: 1.5rem;
}
.upload-btn {
  background: linear-gradient(135deg, #8B5CF6, #06B6D4);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: all .3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.upload-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(139,92,246,0.4);
}
.image-preview {
  text-align: center;
  margin-top: 2rem;
}
.image-preview img {
  max-width: 300px;
  max-height: 300px;
  border-radius: 15px;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(139,92,246,0.3);
}
.analyze-btn {
  background: linear-gradient(135deg, #06B6D4, #8B5CF6);
  color: #fff;
  border: none;
  padding: 15px 40px;
  border-radius: 25px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all .3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.analyze-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(6,182,212,0.4);
}
.loading-section, .results-section, .features {
  padding: 80px 0;
  text-align: center;
}
.loading-gif {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
}
.loading-content {
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% {opacity: 1;}
  50% {opacity: .7;}
}
.results-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #e2e8f0;
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
  gap: 2rem;
}
.result-card {
  background: rgba(255,255,255,0.05);
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  transition: all .3s ease;
  border: 1px solid transparent;
}
.result-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.08);
  border-color: #8B5CF6;
}
.result-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}
.result-title {
  font-size: 1.3rem;
  color: #e2e8f0;
  margin-bottom: .5rem;
}
.result-type {
  display: inline-block;
  background: #8B5CF6;
  color: #fff;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: .8rem;
  margin-bottom: 1rem;
}
.result-confidence {
  color: #06B6D4;
  font-weight: 600;
}
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.reset-btn {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid #8B5CF6;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: all .3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.reset-btn:hover {
  background: #8B5CF6;
  transform: translateY(-2px);
}
.features {
  background: rgba(255,255,255,0.02);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 2rem;
}
.feature-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255,255,255,0.05);
  border-radius: 15px;
  transition: all .3s ease;
  border: 1px solid transparent;
}
.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.08);
  border-color: #06B6D4;
}
.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #8B5CF6;
  filter: drop-shadow(0 0 10px rgba(139,92,246,0.3));
}
.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #e2e8f0;
}
.feature-card p {
  color: #94a3b8;
}
.footer {
  background: rgba(15,15,35,0.95);
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid #8B5CF6;
}
.footer p {
  color: #94a3b8;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.footer .fa-heart {
  color: #e11d48;
}
.reference-image-container {
  text-align: center;
  margin-top: 1rem;
}
.reference-image {
  max-width: 100%;
  max-height: 400px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(139,92,246,0.3);
  border: 2px solid #8B5CF6;
}
.image-error {
  color: #94a3b8;
  font-style: italic;
  text-align: center;
  padding: 1rem;
}
@media (max-width:768px) {
  .hero {padding: 60px 0 40px;}
  .hero-title {font-size: 2.5rem;}
  .upload-area {padding: 2rem 1rem; margin: 1rem auto;}
  .upload-icon {font-size: 3rem;}
  .features-grid {grid-template-columns: 1fr;}
  .results-header {flex-direction: column; text-align: center;}
  .reference-image {max-height: 300px;}
}
*:focus {
  outline: none !important;
  box-shadow: none !important;
}

*:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

* {
  -webkit-tap-highlight-color: transparent !important;
}
