    /* Unificar estilo de botones secundarios en import-keystore */
    #btnConsume, #btnTransfer, #btnHistory {
      background: #F7931A !important;
      color: #fff !important;
      border: 1.5px solid #F7931A !important;
      border-radius: 6px;
      font-weight: 500;
      padding: 8px 18px;
      transition: background 0.18s, color 0.18s;
    }
    #btnConsume:hover, #btnTransfer:hover, #btnHistory:hover {
      background: #6B0F0F !important;
      color: #fff !important;
      border: 1.5px solid #6B0F0F !important;
    }
  /* Forzar hover correcto en botón primary */
  .keystore-btn.primary:hover {
    background: #6B0F0F !important;
    color: #fff !important;
    border: 1.5px solid #6B0F0F !important;
  }
 
/* Header y navegación */
.main-header {
  width: 100%;
  background: #220F17;
  box-shadow: 0 2px 12px rgba(247,147,26,0.12);
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
}
.header-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}
.project-title {
  color: #f7931a;
  font-size: 1.25em;
  font-weight: bold;
  letter-spacing: 1px;
}
.main-nav {
  display: flex;
  gap: 18px;
}
.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background 0.18s;
}
.main-nav a.active, .main-nav a:hover {
  background: #f7931a;
  color: #220F17;
}
/* Subir la card para que quede más arriba */
.keystore-container {
  margin-top: 16px;
  height: auto;
  min-height: 0;
}
body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: #3A1319;
  background-image:
    url('data:image/svg+xml;utf8,<svg width="192" height="192" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><polygon points="24,4 44,14 44,34 24,44 4,34 4,14" fill="%23FF9800" stroke="%23FF9800" stroke-width="2"/><polygon points="24,4 44,14 24,24 4,14" fill="%23FF9800" opacity="0.85"/><polygon points="24,24 44,14 44,34 24,44" fill="%23FFB74D" opacity="0.7"/><polygon points="24,24 24,44 4,34 4,14" fill="%23A0522D" opacity="0.7"/><rect x="21" y="12" width="6" height="20" rx="3" fill="white" opacity="0.25"/><rect x="23" y="8" width="2" height="6" rx="1" fill="white" opacity="0.25"/></svg>'),
    url('data:image/svg+xml;utf8,<svg width="192" height="192" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><polygon points="24,4 44,14 44,34 24,44 4,34 4,14" fill="%23FF9800" stroke="%23FF9800" stroke-width="2"/><polygon points="24,4 44,14 24,24 4,14" fill="%23FF9800" opacity="0.85"/><polygon points="24,24 44,14 44,34 24,44" fill="%23FFB74D" opacity="0.7"/><polygon points="24,24 24,44 4,34 4,14" fill="%23A0522D" opacity="0.7"/><rect x="21" y="12" width="6" height="20" rx="3" fill="white" opacity="0.25"/><rect x="23" y="8" width="2" height="6" rx="1" fill="white" opacity="0.25"/></svg>');
  background-repeat: repeat;
  background-size: 192px 192px, 192px 192px;
  background-position: 0 0, 96px 96px;
}

.keystore-container {
  width: 100vw;
  box-sizing: border-box;
  /* Eliminado flex para que la card quede arriba */
}

.keystore-card {
  background: #220F17;
  border: none;
  border-radius: 15px;
  padding: 24px 32px;
  box-shadow: 0 8px 32px rgba(247, 147, 26, 0.3);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  min-width: 320px;
  max-width: 400px;
  min-height: 40vh;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.keystore-header h2 {
  margin: 0 0 8px 0;
  color: #f7931a;
}

.keystore-card p {
  color: #fff;
  margin-bottom: 18px;
}

.card-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.keystore-btn {
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  background: #f7931a;
  color: #220F17;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.keystore-btn.primary {
  background: #f7931a;
  color: #fff !important;
}

.keystore-btn:disabled {
  background: #888;
  color: #ccc;
  cursor: not-allowed;
}

.keystore-status {
  color: #f7931a;
  font-size: 0.95em;
  min-height: 24px;
  text-align: center;
}

/* Labels blancos y mejor contraste */
label {
  color: #fff;
  font-weight: 500;
  margin-bottom: 6px;
  display: block;
}

input[type="file"], input[type="password"] {
  background: #2a1620;
  color: #fff;
  border: 1px solid #f7931a;
  border-radius: 6px;
  padding: 8px;
  margin-top: 4px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 1em;
}

.history-meta .txid {
  font-size: 0.9em !important;
  color: #caa !important;
  font-weight: normal !important;
  letter-spacing: normal !important;
}

@media (max-width: 700px) {
  body { justify-content: flex-start; align-items: stretch; }
  .header-content { padding: 10px 4vw; }
  .keystore-container { width: 100%; padding: 0 4vw; margin-top: 96px; }
  .keystore-card { max-width: 100%; width: 100%; min-width: 0; margin: 12px 0; padding: 18px 4vw; border-radius: 12px; box-sizing: border-box; }
  .keystore-header h2 { font-size: 1.2rem; text-align: center; }
  .keystore-card p { font-size: 0.95rem; text-align: center; }
  .card-actions, .keystore-actions { flex-direction: column; gap: 10px; width: 100%; }
  .keystore-btn { width: 100%; min-height: 40px; }
  .keystore-btn:last-child { margin-bottom: 8px; }
  label { font-size: 0.95rem; }
  input[type="text"], input[type="number"], input[type="password"], input[type="file"], select { width: 100%; font-size: 1rem; padding: 10px; }
}
