body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f5f6fa;
  color: #333;
  line-height: 1.6;
  font-size: 1rem;
}

/* Header & nav */
header {
  background: #2f3640;
  color: white;
  padding: 1em;
  text-align: center;
}

header h1 {
  margin: 0 0 0.5em 0;
  font-size: 1.5rem;
}

nav a {
  color: #f5f6fa;
  margin: 0 0.8em;
  text-decoration: none;
  font-size: 1rem;
}

nav a:hover {
  text-decoration: underline;
}

/* Main content */
main {
  padding: 1.5em;
  background: white;
  margin: 1em;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  box-sizing: border-box;
}

/* Footer */
footer {
  text-align: center;
  font-size: 0.9rem;
  padding: 1em;
  color: #888;
}

/* Buttons */
.btn,
button {
  display: inline-block;
  padding: 0.8em 1.2em;
  background: #40739e;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 0.6em;
}

.btn:hover,
button:hover {
  background: #3498db;
}

/* Preformatted blocks */
pre {
  background: #f0f0f0;
  padding: 1em;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.9rem;
}

/* Images */
.img-preview {
  max-width: 90%;
  height: auto;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-top: 0.5em;
}

/* Forms */
label, select, input {
  font-size: 1rem;
}

/* Text fields and select boxes */
select,
input[type="text"] {
  margin: 0.4em 0;
  padding: 0.4em;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Radio and checkboxes */
input[type="checkbox"],
input[type="radio"] {
  width: auto;               /* don’t stretch */
  margin-right: 0.5em;       /* space between box and text */
  vertical-align: middle;    /* align with label text */
}

form {
  margin-top: 1em;
}

.wallet-scheme-block {
  border: 1px solid #e0e0e0;
  padding: 1em;
  border-radius: 8px;
  background: #f8f9fb;
}

.wallet-scheme-block .scheme-display {
  font-weight: bold;
  margin: 0.4em 0 0.6em;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1em;
  z-index: 1000;
}

.modal.open {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: 10px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  padding: 1em 1.2em 1.3em;
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5em;
}

.modal-header h3 {
  margin: 0;
}

.close-btn {
  background: transparent;
  color: #555;
  border: none;
  font-size: 1.2rem;
  padding: 0.2em 0.5em;
}

.modal-body {
  margin-top: 0.4em;
}

.scheme-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin-bottom: 0.8em;
}

.scheme-pills button {
  background: #eef2f7;
  color: #2f3640;
  border: 1px solid #d6d9df;
  border-radius: 20px;
  padding: 0.5em 1em;
  cursor: pointer;
}

.scheme-pills button:hover {
  background: #dfe6f1;
}

.modal-label {
  display: block;
  margin: 0.5em 0 0.2em;
  font-weight: bold;
}

.modal-actions {
  text-align: right;
  margin-top: 0.8em;
}

/* 📱 Mobile adjustments */
@media (max-width: 600px) {
  header h1 {
    font-size: 1.2rem;
  }

  nav a {
    display: block;
    margin: 0.5em 0;
    font-size: 1.1rem;
  }

  main {
    margin: 0.5em;
    padding: 1em;
  }

  button, .btn, select {
    width: 100%;
    text-align: center;
    font-size: 1.1rem;
    padding: 1em;
  }

  ul {
    padding-left: 1em;
  }
}
