.token-info {
  margin-bottom: 16px;
  font-size: 0.98em;
  background: #eef6ff;
  padding: 8px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
#copyTokenAddress {
  background: #e0e0e0;
  color: #333;
  border: none;
  border-radius: 4px;
  padding: 2px 8px;
  cursor: pointer;
  font-size: 1em;
}
#copyTokenAddress:active {
  background: #b3d4fc;
}
.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  animation: spin 1s linear infinite;
  margin: 18px auto;
  display: block;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.container {
  max-width: 420px;
  margin: 40px auto;
  padding: 28px 24px 24px 24px;
  background: #f9f9f9;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  text-align: center;
}
h1 {
  margin-bottom: 18px;
  font-size: 2em;
  color: #1a237e;
  letter-spacing: 1px;
}
form {
  margin: 20px 0;
}
input[type="number"] {
  padding: 8px;
  width: 120px;
  margin-right: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
}
button {
  padding: 8px 16px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.2s;
}
button:disabled {
  background: #aaa;
  cursor: not-allowed;
}
button:hover:not(:disabled) {
  background: #0056b3;
}
.info {
  margin-top: 24px;
  font-size: 1.1em;
  background: #e3f2fd;
  padding: 10px 0;
  border-radius: 6px;
}
.error {
  color: #d8000c;
  margin-top: 8px;
  font-size: 0.95em;
}
#walletAddress {
  margin: 10px 0 0 0;
  font-size: 0.95em;
  color: #333;
  word-break: break-all;
}
.address-section {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
  justify-content: center;
}
.address-box {
  background: #eef6ff;
  padding: 12px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1em;
  min-width: 0;
  max-width: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  flex: 1 1 320px;
  justify-content: flex-start;
}
.address-box strong {
  min-width: 90px;
  text-align: right;
  flex-shrink: 0;
}
.address-box span {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
  font-family: monospace;
  font-size: 0.98em;
}
@media (max-width: 600px) {
  .address-section {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  .address-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 8px;
  }
  .address-box strong {
    text-align: left;
    min-width: 0;
  }
  .address-box span {
    max-width: 100%;
  }
}
#copyCrowdsaleAddress, #copyTokenAddress {
  background: #e0e0e0;
  color: #333;
  border: none;
  border-radius: 4px;
  padding: 2px 8px;
  cursor: pointer;
  font-size: 1em;
}
#copyCrowdsaleAddress:active, #copyTokenAddress:active {
  background: #b3d4fc;
}
.last-tx-section {
  margin: 18px 0 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1em;
}
.view-tx-btn {
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 4px 12px;
  text-decoration: none;
  font-size: 1em;
  transition: background 0.2s;
}
.view-tx-btn:hover {
  background: #0056b3;
}
.address-box {
  word-break: break-all;
}
.explorer-btn {
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 4px 12px;
  text-decoration: none;
  font-size: 1em;
  margin-left: 8px;
  transition: background 0.2s;
  display: inline-block;
}
.explorer-btn:hover {
  background: #0056b3;
}
.rate-info {
  margin-bottom: 18px;
  font-size: 1.08em;
  background: #fffde7;
  color: #795548;
  padding: 8px 14px;
  border-radius: 7px;
  display: inline-block;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.rate-info strong {
  margin-right: 6px;
}
.faucet-section {
  margin-bottom: 14px;
  text-align: center;
}
.faucet-btn {
  background: #43a047;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 7px 18px;
  text-decoration: none;
  font-size: 1em;
  font-weight: 500;
  transition: background 0.2s;
  display: inline-block;
  margin-top: 4px;
}
.faucet-btn:hover {
  background: #2e7031;
} 