/* Coinbase-inspired styles */
:root {
  --background-color: #ffffff;
  --card-color: #f5f7fa;
  --text-color: #000000;
  --text-secondary: #71767e;
  --primary-color: #0052ff;
  --primary-gradient: linear-gradient(90deg, #0052ff, #00c2ff);
  --positive-color: #05b169;
  --negative-color: #f6465d;
  --border-color: #e4e7eb;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

.dark-mode {
  --background-color: #0a0b0d;
  --card-color: #1e2025;
  --text-color: #ffffff;
  --text-secondary: #848d9f;
  --border-color: #2c2f36;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.app-container {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background-color: var(--background-color);
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

/* Status Bar */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 16px;
  background-color: var(--background-color);
  color: var(--text-color);
  font-size: 14px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.battery {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Header */
.wallet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background-color: var(--background-color);
}

.wallet-address {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.wallet-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #0052ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
}

.wallet-id {
  font-size: 16px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-action {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 16px;
  height: 16px;
  background-color: #f6465d;
  border-radius: 50%;
  color: white;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Balance */
.balance-container {
  padding: 16px;
}

.balance-amount {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 12px;
  padding: 0 16px 24px;
}

.action-btn {
  flex: 1;
  padding: 14px 0;
  border-radius: 24px;
  font-weight: 600;
  text-align: center;
  font-size: 16px;
}

.action-btn.primary {
  background: linear-gradient(90deg, #0052ff, #00c2ff);
  color: white;
}

.action-btn.secondary {
  background-color: var(--card-color);
  color: var(--text-color);
}

/* Tabs */
.tabs-container {
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.tabs {
  display: flex;
  padding: 0 16px;
}

.tab-btn {
  padding: 12px 16px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}

.tab-btn.active {
  color: var(--primary-color);
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary-color);
}

/* Network Filter */
.network-filter {
  padding: 16px;
}

.network-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: var(--card-color);
  border-radius: 24px;
  font-weight: 500;
}

/* Token List */
.token-list {
  padding: 0 16px;
}

.token-item {
  display: flex;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

.token-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-right: 16px;
  overflow: hidden;
  background-color: var(--card-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.token-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.token-info {
  flex: 1;
}

.token-name {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
}

.token-change {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--positive-color);
  font-weight: 500;
}

.token-change.negative {
  color: var(--negative-color);
}

.token-balance {
  text-align: right;
}

.token-value {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
}

.token-amount {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Promo Banner */
.promo-banner {
  margin: 16px;
  padding: 16px;
  background-color: var(--card-color);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  gap: 16px;
}

.promo-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #0052ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
}

.promo-content {
  flex: 1;
}

.promo-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.promo-description {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Watchlist */
.watchlist-section {
  padding: 16px;
}

.section-header {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}

.watchlist-card {
  background-color: var(--card-color);
  border-radius: var(--border-radius);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.watchlist-info {
  flex: 1;
}

.watchlist-title {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 8px;
}

.watchlist-description {
  color: var(--text-secondary);
  font-size: 14px;
}

.watchlist-icon {
  display: flex;
  gap: -8px;
}

.watchlist-icon-item {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: #0052ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.watchlist-icon-item:nth-child(2) {
  background-color: #00c2ff;
  margin-left: -8px;
}

.watchlist-icon-item:nth-child(3) {
  background-color: #05b169;
  margin-left: -8px;
}

/* Trending Section */
.trending-section {
  padding: 16px;
}

.trending-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.trending-title {
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--card-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 12px;
}

.trending-cards {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.trending-cards::-webkit-scrollbar {
  display: none;
}

.trending-card {
  min-width: 250px;
  background-color: var(--card-color);
  border-radius: var(--border-radius);
  padding: 16px;
}

.trending-token {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.trending-token-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
}

.trending-token-info {
  flex: 1;
}

.trending-token-name {
  font-weight: 600;
}

.trending-token-price {
  color: var(--text-secondary);
  font-size: 14px;
}

.trending-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.trending-swaps {
  font-weight: 600;
}

.swap-btn {
  padding: 8px 24px;
  background-color: var(--background-color);
  border-radius: 24px;
  font-weight: 500;
}

.trending-progress {
  height: 4px;
  background-color: var(--negative-color);
  border-radius: 2px;
  margin-bottom: 12px;
  position: relative;
}

.trending-progress::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 66%;
  background-color: var(--positive-color);
  border-radius: 2px;
}

.trending-percentages {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 14px;
}

.trending-bought {
  color: var(--positive-color);
  display: flex;
  align-items: center;
  gap: 4px;
}

.trending-sold {
  color: var(--negative-color);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  background-color: var(--background-color);
  padding: 12px 0;
  border-top: 1px solid var(--border-color);
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 0;
  width: 20%;
  color: var(--text-secondary);
}

.nav-item.active {
  color: var(--primary-color);
}

.nav-item i {
  font-size: 20px;
  margin-bottom: 4px;
}

.nav-item span {
  font-size: 12px;
}

/* Login/Register Styles */
.auth-container {
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.auth-header {
  text-align: center;
  margin-bottom: 40px;
}

.auth-logo {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.auth-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.auth-subtitle {
  color: var(--text-secondary);
}

.auth-form {
  background-color: var(--card-color);
  border-radius: var(--border-radius);
  padding: 24px;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-color);
  font-size: 16px;
}

.form-input::placeholder {
  color: var(--text-secondary);
}

.form-error {
  color: var(--negative-color);
  font-size: 14px;
  margin-top: 4px;
  min-height: 20px;
}

.auth-btn {
  width: 100%;
  padding: 12px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 24px;
  font-weight: 600;
  font-size: 16px;
  margin-top: 16px;
}

.auth-links {
  text-align: center;
  margin-top: 16px;
}

.auth-links a {
  color: var(--primary-color);
  font-weight: 500;
}

/* Home indicator */
.home-indicator {
  width: 134px;
  height: 5px;
  background-color: #000000;
  border-radius: 100px;
  margin: 8px auto;
}

.dark-mode .home-indicator {
  background-color: #ffffff;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  width: 90%;
  max-width: 400px;
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
}

.modal-close {
  color: var(--text-secondary);
  font-size: 20px;
}

.modal-body {
  padding: 16px;
}

/* Send/Receive Page */
.send-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background-color: var(--background-color);
  border-bottom: 1px solid var(--border-color);
}

.send-title {
  font-size: 20px;
  font-weight: 600;
}

.send-form {
  padding: 16px;
}

.send-input-group {
  margin-bottom: 24px;
}

.send-input-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-weight: 500;
}

.send-input {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--card-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-color);
  font-size: 16px;
}

.send-btn {
  width: 100%;
  padding: 14px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 24px;
  font-weight: 600;
  font-size: 16px;
  margin-top: 24px;
}

.send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* QR Code */
.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
}

.qr-code {
  width: 200px;
  height: 200px;
  background-color: white;
  padding: 16px;
  border-radius: var(--border-radius);
  margin-bottom: 24px;
}

.address-container {
  width: 100%;
  padding: 16px;
  background-color: var(--card-color);
  border-radius: var(--border-radius);
  text-align: center;
  word-break: break-all;
  margin-bottom: 24px;
}

.address-actions {
  display: flex;
  gap: 16px;
}

.address-action {
  flex: 1;
  padding: 12px;
  background-color: var(--card-color);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
}

/* Utility classes */
.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.hidden {
  display: none;
}

