body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #F5F5F5;
  color: #333;
}

.container {
  max-width: 1150px;
  margin: auto;
  background: white;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  margin-top: 40px !important;
  margin-bottom: 40px !important;
}

.title {
  text-align: center;
  margin: 0;
  font-size: 20px;
  margin-bottom: 30px;
}

.subtitle {
  text-align: center;
  color: red;
  margin-bottom: 20px;
}

.tabs {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}

.tab-button {
  flex: 1;
  padding: 10px;
  background: #f0f0f0;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  position: relative;
}

.tab-button.active {
  background: #fff;
  border: 2px solid #ccc;
}

.badge {
  background: #0F8352;
  color: white;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 50%;
  margin-left: 5px;
}

.tab-content {
  display: none;
  animation: slideDown 0.3s ease-out;
}

.tab-content.active {
  display: block;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  border-bottom: 1px solid #eee;
  padding: 15px 0;
  align-items: center;
  text-align: left;
  min-height: 90px;
}

.asta-col {
  display: flex;
  align-items: center;
  gap: 10px;
}

.asta-col img {
  width: 60px;
  height: auto;
  border-radius: 5px;
}

.asta-col .asta-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.titolo {
  font-weight: bold;
  text-decoration: none;
  color: #000000;
}

.id {
  font-size: 0.85rem;
  color: #777;
}

.data {
  color: #777;
  font-size: 0.9rem;
  text-align: center;
  font-weight: 600;
}

.ora {
  font-size: 0.85rem;
  color: #777;
}

.prezzo {
  color: #00aa66;
  font-weight: bold;
  text-align: center;
}

.transazione {
  font-weight: bold;
  text-align: left;
}

.azione {
  text-align: center;
}

.conferma,
.accreditate {
    background: #0F8352;
    color: #fff;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 14px;
    align-items: center;
    gap: 6px;
    border: none;
    justify-self: left;
}

.accreditate {
  background: #a3a3a3;
}

.puntate-icon {
  background: #ff0033;
  color: white;
  font-weight: bold;
  text-align: center;
  border-radius: 10px;
  padding: 8px;
  font-size: 1.1rem;
}

.puntate-icon small {
  display: block;
  font-size: 0.7rem;
}

.info-bonus {
  text-align: center;
  margin-bottom: 15px;
  background: #fafafa;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.list-header {
  font-size: 14px;
  margin-bottom: 10px;
  padding: 0 10px;
  color: #666;
}

@media (max-width: 768px) {
  .container {
    margin-left: 15px;
    margin-right: 15px;
  }

  .row {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .asta-col,
  .data,
  .prezzo,
  .transazione,
  .azione {
    text-align: center !important;
    justify-content: center;
  }

  .asta-col {
    flex-direction: column;
    gap: 0px;
  }

  .asta-col img {
    margin-bottom: 8px;
    align-self: center !important;
  }

  .tabs {
    flex-wrap: wrap;
  }

  .asta-col {
    justify-content: center;
  }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}