* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
  color: #ffffff;
  overflow: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(50, 50, 50, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(40, 40, 40, 0.3) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

#app {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* Wallet Icon Wrapper */
.wallet-icon-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wallet-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: contain;
  z-index: 1;
  position: relative;
}

/* Spinner Animation - around wallet icon */
.spinner {
  position: absolute;
  width: 80px;
  height: 80px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  top: 0;
  left: 0;
}

.spinner.stopped {
  animation: none;
  border: 3px solid rgba(255, 255, 255, 0.1);
}

/* Error Icon - cross mark in bottom right corner of wallet icon */
.error-icon {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 24px;
  height: 24px;
  background: #da4a3c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.error-icon svg {
  width: 14px;
  height: 14px;
  color: #ffffff;
  display: block;
}

/* Error Text */
.error-text {
  font-size: 18px;
  font-weight: 600;
  color: #da4a3c;
  text-align: center;
  letter-spacing: 0.3px;
  margin-top: 0;
  line-height: 1.4;
}

.error-hint {
  font-size: 13px;
  font-weight: 600;
  color: #8e9797;
  text-align: center;
  letter-spacing: 0.2px;
  margin-top: 8px;
  line-height: 1.4;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Confirm Text */
.confirm-text {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  letter-spacing: 0.3px;
  margin-top: 0;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.confirm-text span {
  display: inline-block;
}

.wallet-name-text {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.3px;
  text-transform: capitalize;
}

/* Hint Text */
.hint-text {
  font-size: 13px;
  font-weight: 600;
  color: #8e9797;
  text-align: center;
  letter-spacing: 0.2px;
  margin-top: 4px;
  line-height: 1.4;
}

/* Status Text (hidden by default, shown only for errors) */
.status-text {
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  text-align: center;
  letter-spacing: 0.5px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}
