* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  font-family:
    Inter,
    -apple-system,
    ui-sans-serif,
    system-ui,
    BlinkMacSystemFont,
    sans-serif !important;
  background: #18181b;
  padding: 0;
  color: #fff;
  display: flex;
  flex-direction: column;
}

code {
  color: #f4401f;
}

.inleo-logo-container {
  text-align: center;
  padding: 40px 0;
  animation: fadeIn 0.5s ease-out;
  flex: 0;
}

.inleo-logo {
  width: 180px;
  object-fit: contain;
}

.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
}

@media (max-width: 768px) {
  .container {
    padding: 20px 10px;
  }
}

.token-logo-container {
  text-align: center;
  margin-bottom: 15px;
  animation: fadeIn 0.6s ease-out;
}

.token-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.main-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  animation: fadeIn 0.7s ease-out;
}

.subtitle {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: #a1a1aa;
  margin-bottom: 30px;
  animation: fadeIn 0.8s ease-out;
  letter-spacing: 0.5px;
}

.card {
  background: #27272a;
  border-radius: 0.75rem;
  padding: 40px;
  animation: slideUp 0.6s ease-out;
  max-width: 700px;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.status-section {
  text-align: center;
  animation: fadeIn 0.3s ease-in;
}

.spinner {
  border: 4px solid rgba(244, 64, 31, 0.2);
  border-top: 4px solid #f4401f;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.status-section h2 {
  font-size: 24px;
  color: #fff;
  margin: 20px 0 10px;
}

.status-section p {
  color: #a1a1aa;
  line-height: 1.6;
  margin-bottom: 15px;
}

.small-text {
  font-size: 14px;
  opacity: 0.8;
}

.error-icon,
.success-icon {
  font-size: 60px;
  margin-bottom: 10px;
}

.account-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 30px;
  width: 100%;
}

.account-pill {
  background: #18181b;
  border-radius: 9999px;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.hive-account {
  font-size: 24px;
  font-weight: 700;
  white-space: nowrap;
}

.link-emoji {
  font-size: 24px;
  flex-shrink: 0;
}

.evm-address {
  font-size: 24px;
  font-weight: 700;
}

.btn {
  width: 100%;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.btn-primary {
  background: #f4401f;
  color: #000;
}

.btn-primary:hover:not(:disabled) {
  background: #e03a1c;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(244, 64, 31, 0.3);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  background: #52525b;
  cursor: not-allowed;
  transform: none;
  opacity: 0.6;
}

.info-text {
  margin-top: 15px;
  text-align: center;
}

.info-text p {
  font-size: 16px;
  color: #a1a1aa;
  line-height: 1.5;
  margin: 0;
}

.wallet-status {
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  display: none;
  overflow: auto;
}

.wallet-status.info {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.wallet-status.error {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.wallet-status.success {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.wallet-info {
  margin-top: 30px;
  margin-bottom: 20px;
  padding-top: 30px;
  border-top: 1px solid #3f3f46;
}

.connected-wallet {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.wallet-label {
  color: #a1a1aa;
  font-size: 16px;
  font-weight: 600;
}

.wallet-address-badge {
  background: #18181b;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 9999px;
  border: 1px solid #3f3f46;
  flex: 1;
  max-width: 66.66%;
}

.btn-disconnect {
  background: #dc2626;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-disconnect:hover {
  background: #b91c1c;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
}

.btn-disconnect:active {
  transform: translateY(0);
}

/* Mobile optimization */
@media (max-width: 768px) {
  .card {
    max-width: 99%;
    padding: 30px 20px;
  }

  .account-display {
    gap: 16px;
  }

  .account-pill {
    padding: 10px 20px;
  }

  .hive-account,
  .evm-address {
    font-size: 18px;
  }

  .link-emoji {
    font-size: 20px;
  }

  .info-text p {
    font-size: 14px;
  }

  .btn {
    padding: 14px 24px;
    font-size: 14px;
  }

  .connected-wallet {
    flex-direction: column;
    gap: 12px;
  }

  .wallet-label {
    font-size: 14px;
  }

  .wallet-address-badge {
    font-size: 14px;
    padding: 12px 20px;
    max-width: 100%;
    width: 100%;
    text-align: center;
  }

  .btn-disconnect {
    font-size: 14px;
    padding: 12px 24px;
    width: 100%;
  }
}
