/* Minimalist Dark Theme Reset and Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #0a0a0a;
  color: #f0f0f0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 420px;
  text-align: center;
}

/* Avatar styling */
.avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #222;
  margin-bottom: 18px;
  background: #1a1a1a;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.avatar:hover {
  border-color: #444;
  transform: scale(1.02);
}

/* Profile details */
.name {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.bio {
  font-size: 0.95rem;
  color: #aaa;
  margin-bottom: 32px;
  line-height: 1.4;
}

/* Links and Lists */
.links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Base link items */
.link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #161616;
  color: #f0f0f0;
  text-decoration: none;
  padding: 16px 20px;
  border-radius: 14px;
  font-weight: 500;
  font-size: 1rem;
  border: 1px solid #222;
  transition: all 0.2s ease;
}

.link:hover {
  background: #1f1f1f;
  border-color: #333;
  transform: translateY(-2px);
}

.link-icon {
  width: 20px;
  height: 20px;
  color: #888;
  transition: color 0.2s ease;
}

.link:hover .link-icon {
  color: #f0f0f0;
}

.x-svg {
  width: 18px;
  height: 18px;
}

/* Section Header (Wallets divider) */
.section-title {
  margin-top: 24px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #555;
  text-align: center;
  font-weight: 600;
}

/* Crypto Wallet Card styling */
.wallet-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #161616;
  border: 1px solid #222;
  border-radius: 14px;
  padding: 14px 20px;
  transition: all 0.2s ease;
}

.wallet-card:hover {
  background: #1f1f1f;
  border-color: #333;
}

.wallet-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.wallet-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  transition: color 0.2s ease;
}

.wallet-card:hover .wallet-icon-wrapper {
  color: #f0f0f0;
}

.wallet-icon {
  width: 20px;
  height: 20px;
}

.eth-svg {
  width: 13px;
  height: 20px;
}

.wallet-details {
  display: flex;
  flex-direction: column;
  text-align: left;
  min-width: 0;
}

.wallet-label {
  font-weight: 500;
  font-size: 0.95rem;
  color: #f0f0f0;
}

.wallet-address {
  font-family: monospace;
  font-size: 0.78rem;
  color: #666;
  margin-top: 1px;
}

.wallet-actions {
  display: flex;
  gap: 8px;
}

.action-btn {
  background: #222;
  border: 1px solid #333;
  border-radius: 8px;
  color: #888;
  width: 34px;
  height: 34px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: #333;
  color: #fff;
  border-color: #444;
  transform: scale(1.05);
}

.action-btn.success-copy {
  background: #1a4d2e !important;
  border-color: #2e7d32 !important;
  color: #4caf50 !important;
}

.action-btn i {
  width: 15px;
  height: 15px;
}

.hidden {
  display: none !important;
}

/* Footer styling */
.footer {
  margin-top: 40px;
  font-size: 0.8rem;
  color: #555;
}

/* Minimalist Modal overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #161616;
  border: 1px solid #222;
  border-radius: 18px;
  padding: 32px 24px;
  width: 90%;
  max-width: 340px;
  position: relative;
  text-align: center;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: #555;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: #222;
  color: #fff;
}

.modal-close-btn i {
  width: 15px;
  height: 15px;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* QR Code Container styling */
.qr-container {
  width: 160px;
  height: 160px;
  background: #0f0f0f;
  border: 1px solid #222;
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

#qr-canvas {
  width: 140px;
  height: 140px;
  display: block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Modal Address Box */
.modal-address-box {
  width: 100%;
  display: flex;
  align-items: center;
  background: #0f0f0f;
  border: 1px solid #222;
  border-radius: 10px;
  padding: 6px 6px 6px 12px;
}

.modal-address-text {
  flex-grow: 1;
  font-family: monospace;
  font-size: 0.72rem;
  color: #aaa;
  text-align: left;
  word-break: break-all;
  padding-right: 8px;
  line-height: 1.4;
}

.modal-copy-btn {
  background: #222;
  border: 1px solid #333;
  border-radius: 6px;
  color: #888;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.modal-copy-btn:hover {
  background: #333;
  color: #fff;
}

.modal-copy-btn.success-copy {
  background: #1a4d2e !important;
  border-color: #2e7d32 !important;
  color: #4caf50 !important;
}

.modal-copy-btn i {
  width: 12px;
  height: 12px;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #161616;
  border: 1px solid #222;
  border-radius: 30px;
  padding: 10px 20px;
  color: #2ecc71;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1000;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.toast-container.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-icon {
  color: #2ecc71;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-icon-svg {
  width: 100%;
  height: 100%;
}

.toast-msg {
  color: #aaa;
}
