/* Body & container */
html, body {
  overflow-x: hidden; /* prevent horizontal swipe */
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background-color: #f4f6f8;
  margin: 0;
  padding: 50px 0 0 0;
  color: #1a1a1a;
  display: flex;
  justify-content: center;
}

.message-container {
  max-width: 900px;
  width: 95%;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-top: 6px solid #25A561;
  text-align: center;
}

.logo {
  max-width: 150px;
  margin-bottom: 20px;
}

h1 {
  font-size: 26px;
  color: #25A561;
  margin-bottom: 25px;
}

/* Filters */
.filters {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 30px;
}

.filters input,
.filters select {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  width: 200px;
  box-sizing: border-box;
}

/* Cards container */
.cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* Individual card */
.card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  width: 200px;
  padding: 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  border-radius: 6px;
}

/* Amount input / select */
.amount {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  width: 100%;
  font-size: 16px;
  height: 46px;
  text-align: center;
}

/* Remove number input spinners */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
}

/* Buy button */
.button {
  width: 100%;
  padding: 12px;
  background-color: #25A561;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 16px;
  height: 46px;
}

.button:hover {
  background-color: #1f8a52;
}

/* Loading overlay */
#loadingOverlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.7);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  border:6px solid #f3f3f3;
  border-top:6px solid #25A561;
  border-radius:50%;
  width:50px; height:50px;
  animation: spin 1s linear infinite;
}

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

/* Fade-in animation */
.card {opacity:0; transform:translateY(10px); transition:opacity 0.3s, transform 0.3s;}
.card.visible{opacity:1; transform:translateY(0);}

/* Responsive mobile */
@media (max-width: 600px) {
  h1 { font-size: 22px; }
  .filters {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  .filters input,
  .filters select {
    width: 100%;
  }
  .cards-container {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  .card {
    width: 90%;
    max-width: 400px;
  }
  .amount, .button {
    width: 100%;
    font-size: 14px;
    padding: 10px;
  }
}
