body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #f4f7fb;
  color: #111;
}
.top-bar {
  background: #1e40af;
  color: white;
  padding: 16px;
  text-align: center;
}
.container {
  max-width: 420px;
  margin: auto;
  padding: 16px;
}
.card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}
label {
  display: block;
  margin-top: 20px;
  margin-bottom: 8px;

  font-size: 17px;
  font-weight: 700;
  color: #111827; /* Dark modern black */
}
select,
input {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 15px;
}
.price-box {
  display: flex;
  justify-content: space-between;
  margin: 16px 0;
  font-size: 16px;
}
#price {
  color: #1e40af;
  font-weight: 700;
}
button {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: #1e40af;
  color: white;
  font-size: 16px;
  font-weight: bold;
}
.info-box {
  margin-top: 14px;
  background: #eef2ff;
  padding: 14px;
  border-radius: 12px;
  font-size: 13px;
}
#buyDataMessage {
  margin: 12px 0;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  display: none; /* hidden by default */
} /* Success style */
#buyDataMessage.success {
  background-color: #10b981; /* green */
  color: white;
} /* Error style */
#buyDataMessage.error {
  background-color: #ef4444; /* red */
  color: white;
} /* Info / neutral style */
#buyDataMessage.info {
  background-color: #2563eb; /* blue */
  color: white;
}

.status {
  margin-top: 12px;
  padding: 14px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
}

.status.success {
  background: #e6f9f0;
  color: #0f5132;
}

.status.pending {
  background: #fff4e5;
  color: #664d03;
}

.status.error {
  background: #fdecea;
  color: #842029;
}

.hidden {
  display: none;
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 30px;
  border-radius: 12px;
  width: 300px;
  text-align: center;
  font-weight: bold;
}

.modal-content input {
  width: 80%;
  padding: 10px;
  font-size: 18px;
  margin: 15px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
  text-align: center;
}

.modal-buttons {
  display: flex;
  justify-content: space-around;
}

.modal-buttons button {
  padding: 10px 20px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

#pinSubmit {
  background-color: #4caf50;
  color: white;
}

#pinCancel {
  background-color: #f44336;
  color: white;
}

.error-message {
  color: red;
  margin-top: 10px;
  font-size: 14px;
  font-weight: bold;
}
