body {
  margin: 0;
  background: #ffffff;
  font-family: 'Courier New', monospace;
  color: #000;
}

.header {
  background: #E7584F;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  padding: 15px;
  border-bottom: 2px solid #000;
}

.container {
  padding: 20px;
  max-width: 500px;
  margin: auto;
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 15px 0;
}

.button {
  background: #f0f0f0;
  padding: 15px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
}

.button.active {
  background: #bf2117 !important;
  color: white !important;
  font-weight: bold;
}

.energy-box, .transactions-box {
  border: 2px solid black;
  border-radius: 12px;
  padding: 10px;
  margin: 10px 0;
  font-size: 20px;
  font-weight: bold;
}

.note {
  background: #ee8a83;
  font-size: 13px;
  padding: 10px;
  border-radius: 10px;
  margin: 15px 0;
}

.discount {
  font-size: 15px;
  margin-bottom: 20px;
}

.discount .old {
  text-decoration: line-through;
  color: #999;
}

.discount .new {
  color: #c2251c;
  font-weight: bold;
}

.cost {
  font-size: 22px;
  font-weight: bold;
  color: #c2251c;
  margin-top: 20px;
}

/* Popup */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.popup-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.popup-content {
  background: white;
  border: 3px solid black;
  border-radius: 20px;
  padding: 30px;
  max-width: 450px;
  width: 90%;
  position: relative;
  box-shadow: 8px 8px 0px #e7584f;
  text-align: center;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: #000;
}

.popup-content h2 {
  margin: 0 0 15px 0;
  color: #bf2117;
}

.popup-timer {
  background: #ee8a83;
  border-radius: 12px;
  padding: 15px;
  margin: 20px 0;
}

.timer-label {
  font-size: 14px;
  margin-bottom: 10px;
}

.timer-display {
  font-size: 32px;
  font-weight: bold;
  color: #bf2117;
}

.popup-btn {
  background: #bf2117;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  font-family: 'Courier New', monospace;
}

/* Steps */
.step { display: none; }
.step.active { display: block; }

.step-badge {
  background: #e8f0fe;
  color: #1967d2;
  padding: 5px 12px;
  border-radius: 15px;
  display: inline-block;
  font-size: 12px;
  margin-bottom: 10px;
}

.step-description {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
}

/* Wallet list */
.wallet-connect-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border: 2px solid #000;
  border-radius: 10px;
  margin: 10px 0;
  cursor: pointer;
  text-align: left;
}

.wallet-connect-box:hover {
  background: #f5f5f5;
}

.wallet-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.wallet-info img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.wallet-name {
  font-weight: bold;
}

.wallet-subtitle {
  font-size: 12px;
  color: #999;
}

.wallet-arrow {
  font-size: 20px;
  color: #bf2117;
}

/* Progress */
.progress-circle {
  width: 50px;
  height: 50px;
  border: 4px solid #f0f0f0;
  border-top: 4px solid #bf2117;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.progress-text {
  color: #999;
  font-size: 13px;
}