
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #5267e9;
  --dark: #17213e;
  --muted: #8490a8;
  --background: #f5f7fc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--background);
  color: var(--dark);
  min-height: 100vh;
}

button {
  font-family: inherit;
}

.main-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 35px;
}

/* HEADER */

.header {
  height: 95px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--dark);
  font-size: 20px;
  font-weight: 800;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #667df5, #3549bf);
  font-size: 22px;
}

.secure-label {
  color: #67748d;
  font-size: 13px;
  display: flex;
  gap: 9px;
  align-items: center;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #24bd83;
}

/* MAIN SECTION */

.wallet-section {
  max-width: 760px;
  margin: 55px auto 70px;
  text-align: center;
}

.heading-icon {
  width: 65px;
  height: 65px;
  margin: auto auto 24px;
  display: grid;
  place-items: center;
  background: #e8ecff;
  color: var(--primary);
  border-radius: 20px;
  font-size: 38px;
}

.eyebrow {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 13px;
}

h1 {
  font-size: clamp(30px, 5vw, 43px);
  font-weight: 800;
  letter-spacing: -1.5px;
}

.subtitle {
  color: var(--muted);
  margin-top: 13px;
  font-size: 15px;
  line-height: 1.7;
}

/* WALLET GRID */

.wallet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 17px;
  margin-top: 42px;
}

.wallet-card {
  position: relative;
  background: white;
  border: 1px solid #e7eaf2;
  border-radius: 17px;
  min-height: 105px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  cursor: pointer;
  transition: .25s ease;
  box-shadow: 0 4px 15px rgba(25, 40, 90, .025);
}

.wallet-card:hover {
  border-color: #aab7ff;
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(60, 80, 170, .09);
}

.wallet-logo {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: 27px;
  flex-shrink: 0;
}

.metamask {
  background: #fff0e7;
}

.walletconnect {
  background: #e8f0ff;
  color: #4285f4;
}

.trust {
  background: #e8f1ff;
  color: #2877ec;
}

.coinbase {
  background: #e7f0ff;
  color: #1652d5;
}

.phantom {
  background: #eee8ff;
}

.other {
  background: #e9edff;
  color: var(--primary);
}

.wallet-name {
  font-size: 15px;
  font-weight: 700;
  color: #27334e;
}

.arrow {
  margin-left: auto;
  font-size: 19px;
  color: #a5afc1;
}

.bottom-note {
  margin-top: 35px;
  color: #8994a9;
  font-size: 12px;
}

.bottom-note span {
  color: var(--primary);
  margin-right: 5px;
}

/* FOOTER */

footer {
  border-top: 1px solid #e6eaf2;
  padding: 25px 0;
  display: flex;
  justify-content: space-between;
  color: #8c97aa;
  font-size: 12px;
}

/* MODAL */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .57);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.hidden {
  display: none !important;
}

.connection-modal {
  position: relative;
  background: white;
  width: 100%;
  max-width: 460px;
  padding: 45px 35px 30px;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 25px 80px rgba(0,0,0,.2);
  animation: appear .3s ease;
}

@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-button {
  position: absolute;
  right: 19px;
  top: 15px;
  border: none;
  background: none;
  color: #9aa3b4;
  font-size: 30px;
  cursor: pointer;
}

.modal-logo {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: #eef1ff;
  display: grid;
  place-items: center;
  font-size: 37px;
  margin: 0 auto 25px;
}

.connection-modal h2 {
  font-size: 23px;
  letter-spacing: -.5px;
}

.modal-description {
  color: #8490a5;
  font-size: 14px;
  line-height: 1.7;
  margin-top: 12px;
}

/* LOADING */

.loader {
  width: 42px;
  height: 42px;
  border: 4px solid #e7ebfa;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 30px auto 20px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.small-text {
  font-size: 12px;
  color: #a0a9b8;
}

/* ERROR */

.error-icon {
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff0f0;
  color: #e34d59;
  font-size: 30px;
  font-weight: 800;
  margin: 10px auto 20px;
}

#errorState h2 {
  color: #26334d;
}

.manual-button {
  width: 100%;
  padding: 17px 20px;
  border: none;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 28px;
  transition: .2s;
}

.manual-button:hover {
  background: #3e51c8;
}

.manual-button span {
  margin-left: 10px;
}

.demo-caption {
  color: #a0a9b8;
  font-size: 10px;
  margin-top: 25px;
}

/* MOBILE */

@media(max-width: 600px) {
  .main-container {
    padding: 0 19px;
  }

  .header {
    height: 75px;
  }

  .wallet-section {
    margin: 55px auto;
  }

  .wallet-grid {
    grid-template-columns: 1fr;
    gap: 13px;
    margin-top: 32px;
  }

  .wallet-card {
    min-height: 85px;
    padding: 15px;
  }

  .wallet-logo {
    width: 46px;
    height: 46px;
  }

  footer {
    font-size: 10px;
  }

  .connection-modal {
    padding: 40px 23px 25px;
  }
}
#modalWalletImage {
  width: 65px;
  height: 65px;
  object-fit: contain;
}

.wallet-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  margin: 25px 0 20px;
  padding: 14px 16px;
  border: 1px solid #303744;
  border-radius: 12px;
  background: #151b25;
  color: #aab3c2;
}

.wallet-search span {
  font-size: 22px;
}

.wallet-search input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: white;
  font-size: 15px;
}

.wallet-search input::placeholder {
  color: #8993a3;
}

#noWallets {
  color: #aab3c2;
  text-align: center;
  padding: 15px;
}

.hidden {
  display: none !important;
}
/* All wallet logo containers */
.wallet-logo {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-sizing: border-box;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

/* Every wallet image */
.wallet-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}