/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.5;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
}

/* Header */
.header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid #4285f4;
  position: relative;
}

.back-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4285f4;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
  position: absolute;
  left: 0;
}

.back-link:hover {
  color: #2563eb;
}

.back-icon {
  width: 16px;
  height: 16px;
}

.bitpay-logo {
  font-size: 24px;
  font-weight: bold;
  color: rgb(34, 64, 196);
  font-style: italic;
}

/* Main Content */
.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}

.namecheap-logo {
  margin-bottom: 24px;
}

.site-name {
  font-size: 28px;
  font-weight: 600;
  color: #4285f4;
  margin-bottom: 16px;
  text-align: center;
}

.instructions {
  font-size: 16px;
  color: #666;
  margin-bottom: 40px;
  text-align: center;
}

/* Wallet Selection */
.wallet-selection {
  width: 100%;
  max-width: 480px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  padding: 24px 24px 16px;
  color: #333;
  text-align: center;
}

.wallet-section {
  border-bottom: 1px solid #f0f0f0;
}

.wallet-section:last-child {
  border-bottom: none;
}

.section-subtitle {
  font-size: 14px;
  font-weight: 500;
  color: #666;
  padding: 16px 24px 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wallet-list {
  padding: 8px 0 16px;
}

.wallet-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  border-radius: 8px;
  margin: 4px 8px;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

.wallet-item:hover {
  background-color: #f0f8ff;
  border-color: rgb(34, 64, 196);
  box-shadow: 0 4px 8px rgba(34, 64, 196, 0.2);
  transform: translateY(-1px);
}

.wallet-item:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wallet-item:focus {
  border-color: rgb(34, 64, 196);
  box-shadow: 0 0 0 3px rgba(34, 64, 196, 0.1);
}

.wallet-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wallet-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.wallet-icon svg {
  width: 24px;
  height: 24px;
}

.wallet-name {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.arrow-icon {
  color: #ccc;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Search Section */
.search-section {
  padding: 24px;
}

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 12px 48px 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 24px;
  font-size: 14px;
  background-color: #f8f9fa;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: #4285f4;
  background-color: white;
}

.search-input::placeholder {
  color: #999;
}

.search-button {
  position: absolute;
  right: 8px;
  width: 32px;
  height: 32px;
  border: none;
  background: #4285f4;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-button:hover {
  background: #2563eb;
}

.search-button svg {
  width: 16px;
  height: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 16px;
  }

  .header {
    margin-bottom: 32px;
    padding-bottom: 16px;
  }

  .back-link {
    font-size: 13px;
  }

  .bitpay-logo {
    font-size: 20px;
  }

  .site-name {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .instructions {
    font-size: 15px;
    margin-bottom: 32px;
    padding: 0 16px;
  }

  .wallet-selection {
    max-width: 100%;
    margin: 0 -8px;
  }

  .section-title {
    font-size: 18px;
    padding: 20px 20px 12px;
  }

  .section-subtitle {
    padding: 12px 20px 6px;
    font-size: 13px;
  }

  .wallet-item {
    padding: 14px 20px;
    margin: 3px 6px;
  }

  .wallet-name {
    font-size: 15px;
  }

  .search-section {
    padding: 20px;
  }

  .search-input {
    font-size: 15px;
    padding: 14px 52px 14px 18px;
  }

  .search-button {
    right: 10px;
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 12px;
  }

  .header {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    margin-bottom: 24px;
  }

  .back-link {
    position: static;
    align-self: flex-start;
  }

  .wallet-selection {
    margin: 0 -4px;
  }

  .wallet-item {
    padding: 16px;
    margin: 2px 4px;
  }

  .wallet-info {
    gap: 10px;
  }

  .wallet-icon {
    width: 28px;
    height: 28px;
  }

  .wallet-icon svg {
    width: 20px;
    height: 20px;
  }
}
