body {
  font-family: Arial, sans-serif;
  background: linear-gradient(to bottom, #a2e4f5, #c6f5d4);
  text-align: center;
  margin: 0;
  padding: 0;
}

.logo {
  display: block;
  margin: 30px auto 10px auto;
  width: 260px;
  height: auto;
}

h1 {
  margin-bottom: 10px;
}

input[type="text"] {
  padding: 10px;
  width: 220px;
  font-size: 16px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

button {
  padding: 10px 15px;
  background-color: #4CAF50;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-left: 10px;
}

.limit-text {
  color: red;
  font-size: 0.9em;
  margin: 10px 0;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 20px;
}

.item {
  width: 130px;
  padding: 12px;
  border-radius: 12px;
  transition: transform 0.2s;
  cursor: pointer;
  text-align: center;
}

.item img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: transparent;
}

.item p {
  margin-top: 8px;
  font-weight: bold;
  font-size: 14px;
}

.item.selected {
  border: 3px solid #00cc66;
  transform: scale(1.05);
  background-color: rgba(0, 255, 100, 0.1);
}

/* Loading screen */
.loading-screen {
  background: linear-gradient(to bottom, #a2e4f5, #c6f5d4);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.loading-box {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
  max-width: 500px;
  width: 100%;
}

#statusText {
  font-size: 20px;
  margin-top: 20px;
}

.dots {
  margin-top: 20px;
}

.dot {
  display: inline-block;
  height: 12px;
  width: 12px;
  border-radius: 50%;
  background: #ccc;
  margin: 0 4px;
}

.dot.active {
  background: #00cc66;
}

/* Offer popup */
.offer-popup {
  background: white;
  border-radius: 16px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  padding: 40px;
  max-width: 600px;
  width: 95%;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  text-align: center;
}

.offer-popup h2 {
  font-size: 30px;
  margin-bottom: 10px;
}

.offer-popup p {
  font-size: 18px;
  margin-bottom: 20px;
}

.offer-popup img {
  width: 100px;
  margin-bottom: 15px;
}

.offer-button {
  display: block;
  width: 100%;
  margin: 12px 0;
  background: #00cc66;
  color: white;
  font-weight: bold;
  font-size: 16px;
  padding: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.loader {
  margin-top: 20px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #00cc66;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin-left: auto;
  margin-right: auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
