* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #070b14;
  color: white;
}

.container {
  max-width: 850px;
  margin: 40px auto;
  padding: 20px;
}

h1,
p {
  text-align: center;
}

p {
  color: #9ca3af;
}

.card {
  background: #111827;
  padding: 20px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

input {
  padding: 10px;
  border-radius: 8px;
  border: none;
}

button,
a {
  background: #4f46e5;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.preview {
  margin-top: 25px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.preview img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
  background: #111827;
}

.loading {
  margin-top: 20px;
  text-align: center;
  color: #facc15;
  font-weight: bold;
}

.result {
  margin-top: 25px;
  text-align: center;
}

.result img {
  max-width: 100%;
  border-radius: 12px;
  margin-bottom: 15px;
}

.hidden {
  display: none;
}