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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #ffffff;
  min-height: 100vh;
  color: #0a0a0a;
  padding: 48px 24px;
}

.container {
  max-width: 880px;
  margin: 0 auto;
}

header {
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e5e5;
}

h1 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #0a0a0a;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.subtitle {
  color: #737373;
  font-size: 0.875rem;
  font-weight: 400;
}

/* Back Link */
.back-link {
  display: inline-block;
  margin-bottom: 16px;
  color: #737373;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
}

.back-link:hover {
  color: #0a0a0a;
}

/* Home Page Styles */
.home-header {
  text-align: center;
  margin-bottom: 48px;
  padding-bottom: 32px;
}

.home-header h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.endpoints-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}

.endpoint-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s ease;
}

.endpoint-card:not(.coming-soon):hover {
  border-color: #0a0a0a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.endpoint-card.coming-soon {
  opacity: 0.6;
  cursor: not-allowed;
  position: relative;
}

.endpoint-icon {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  border-radius: 8px;
  flex-shrink: 0;
}

.endpoint-content {
  flex: 1;
  min-width: 0;
}

.endpoint-content h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.endpoint-description {
  color: #737373;
  font-size: 0.875rem;
  margin-bottom: 12px;
}

.endpoint-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.endpoint-method {
  background: #0a0a0a;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.endpoint-method.method-post {
  background: #16a34a;
}

.endpoint-path {
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 0.75rem;
  color: #525252;
}

.endpoint-arrow {
  font-size: 1.25rem;
  color: #737373;
  transition: transform 0.15s;
}

.endpoint-card:not(.coming-soon):hover .endpoint-arrow {
  transform: translateX(4px);
  color: #0a0a0a;
}

.coming-soon-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #f5f5f5;
  color: #737373;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.home-footer {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid #e5e5e5;
  color: #737373;
  font-size: 0.875rem;
}

.home-footer a {
  color: #0a0a0a;
  text-decoration: none;
  font-weight: 500;
}

.home-footer a:hover {
  text-decoration: underline;
}

/* Form */
.form-card {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 32px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.875rem;
  color: #0a0a0a;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  color: #0a0a0a;
  font-size: 0.8125rem;
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  resize: vertical;
  transition: border-color 0.15s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0a0a0a;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #a3a3a3;
}

.btn-loader {
  display: inline-block;
}

button[type="submit"] {
  width: 100%;
  padding: 12px 16px;
  background: #0a0a0a;
  border: none;
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

button[type="submit"]:hover {
  background: #262626;
}

/* Error */
.error-card {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 24px;
  color: #dc2626;
  font-size: 0.875rem;
}

/* Result Container */
.result-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Cards */
.card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 24px;
}

.card-header {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f5f5f5;
}

.card-header h3 {
  font-size: 0.75rem;
  font-weight: 600;
  color: #737373;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.token-hero, .pnl-hero {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 24px;
}

.token-hero {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.token-logo {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
}

.token-main-info {
  flex: 1;
  min-width: 0;
}

.token-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.token-name-row h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.token-symbol {
  background: #f5f5f5;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #525252;
}

.badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 500;
}

.badge-chain {
  background: #f5f5f5;
  color: #525252;
}

.badge-type {
  background: #f5f5f5;
  color: #525252;
}

.token-address-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.token-address {
  font-family: 'SF Mono', monospace;
  font-size: 0.75rem;
  color: #737373;
}

.copy-btn {
  background: transparent;
  border: 1px solid #e5e5e5;
  padding: 2px 8px;
  border-radius: 4px;
  color: #737373;
  font-size: 0.6875rem;
  cursor: pointer;
  transition: all 0.15s;
}

.copy-btn:hover {
  background: #f5f5f5;
  color: #0a0a0a;
}

/* PnL Hero */
.pnl-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pnl-main {
  text-align: center;
  margin-bottom: 16px;
}

.pnl-main .pnl-label {
  display: block;
  font-size: 0.75rem;
  color: #737373;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pnl-main .pnl-value {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pnl-value.positive { color: #16a34a; }
.pnl-value.negative { color: #dc2626; }

.pnl-breakdown {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.pnl-breakdown .pnl-item {
  text-align: center;
}

.pnl-breakdown .label {
  display: block;
  font-size: 0.6875rem;
  color: #737373;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pnl-breakdown .value {
  font-size: 0.9375rem;
  font-weight: 500;
}

/* Price Card */
.price-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f5f5f5;
}

.current-price .price-value {
  font-size: 1.5rem;
  font-weight: 600;
  display: block;
  letter-spacing: -0.01em;
}

.current-price .price-change {
  font-size: 0.875rem;
  font-weight: 500;
}

.price-change.positive { color: #16a34a; }
.price-change.negative { color: #dc2626; }

.price-extremes {
  display: flex;
  gap: 24px;
}

.extreme {
  text-align: right;
}

.extreme .label {
  display: block;
  font-size: 0.6875rem;
  color: #737373;
  text-transform: uppercase;
}

.extreme .value {
  font-size: 0.875rem;
  font-weight: 500;
}

.extreme .value.ath { color: #16a34a; }
.extreme .value.atl { color: #dc2626; }

.extreme .date {
  display: block;
  font-size: 0.6875rem;
  color: #a3a3a3;
}

.price-changes-grid {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 16px;
  background: #fafafa;
  border-radius: 6px;
}

.time-change {
  text-align: center;
}

.time-change .time {
  display: block;
  font-size: 0.6875rem;
  color: #737373;
  margin-bottom: 4px;
}

.time-change .change {
  font-size: 0.8125rem;
  font-weight: 500;
}

.market-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-item {
  background: #fafafa;
  padding: 12px;
  border-radius: 6px;
  text-align: center;
}

.stat-item .label {
  display: block;
  font-size: 0.6875rem;
  color: #737373;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.stat-item .value {
  font-size: 0.875rem;
  font-weight: 500;
}

/* Position Card */
.position-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.position-item {
  background: #fafafa;
  padding: 12px 16px;
  border-radius: 6px;
}

.position-item .label {
  display: block;
  font-size: 0.6875rem;
  color: #737373;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.position-item .value {
  font-size: 0.875rem;
  font-weight: 500;
}

.position-item .value.big {
  font-size: 1.125rem;
  font-weight: 600;
}

.position-item.highlight {
  background: #0a0a0a;
}

.position-item.highlight .label {
  color: #a3a3a3;
}

.position-item.highlight .value {
  color: #ffffff;
}

/* Trading Card */
.trading-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.trade-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
}

.trade-box.buy {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.trade-box.sell {
  background: #fef2f2;
  border-color: #fecaca;
}

.trade-icon {
  font-size: 1.25rem;
}

.trade-info {
  flex: 1;
}

.trade-info .count {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
}

.trade-info .label {
  font-size: 0.75rem;
  color: #737373;
  text-transform: uppercase;
}

.trade-volume .volume {
  font-size: 1rem;
  font-weight: 500;
}

.trading-dates {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.date-item {
  background: #fafafa;
  padding: 12px;
  border-radius: 6px;
}

.date-item .label {
  display: block;
  font-size: 0.6875rem;
  color: #737373;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.date-item .value {
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Volume Card */
.volume-hero {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f5f5f5;
}

.volume-main {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  color: #0a0a0a;
}

.volume-label {
  font-size: 0.75rem;
  color: #737373;
  text-transform: uppercase;
}

.volume-grid {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 16px;
  background: #fafafa;
  border-radius: 6px;
}

.volume-item {
  text-align: center;
}

.volume-item .time {
  display: block;
  font-size: 0.6875rem;
  color: #737373;
  margin-bottom: 4px;
}

.volume-item .value {
  font-size: 0.75rem;
  font-weight: 500;
}

.volume-buysell {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.buysell-item {
  padding: 12px;
  border-radius: 6px;
  text-align: center;
}

.buysell-item.buy {
  background: #f0fdf4;
}

.buysell-item.sell {
  background: #fef2f2;
}

.buysell-item .label {
  display: block;
  font-size: 0.6875rem;
  color: #737373;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.buysell-item .value {
  font-size: 0.9375rem;
  font-weight: 500;
}

/* Trades Card */
.trades-hero {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f5f5f5;
}

.trades-main, .traders-main {
  text-align: center;
}

.trades-count, .traders-count {
  display: block;
  font-size: 1.75rem;
  font-weight: 600;
}

.trades-label, .traders-label {
  font-size: 0.75rem;
  color: #737373;
  text-transform: uppercase;
}

.trades-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.breakdown-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.breakdown-item {
  padding: 12px;
  background: #fafafa;
  border-radius: 6px;
  text-align: center;
}

.breakdown-item.buy { background: #f0fdf4; }
.breakdown-item.sell { background: #fef2f2; }

.breakdown-item .label {
  display: block;
  font-size: 0.6875rem;
  color: #737373;
  text-transform: uppercase;
}

.breakdown-item .value {
  font-size: 0.9375rem;
  font-weight: 500;
}

.fees-section {
  text-align: center;
  padding: 12px;
  background: #fafafa;
  border-radius: 6px;
}

.fees-section .label {
  display: block;
  font-size: 0.6875rem;
  color: #737373;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.fees-section .value {
  font-size: 1rem;
  font-weight: 500;
}

/* Holdings Card */
.holdings-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.holding-bar {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
}

.bar-label span:first-child {
  color: #737373;
}

.bar-label span:last-child {
  font-weight: 500;
}

.bar-track {
  height: 6px;
  background: #f5f5f5;
  border-radius: 3px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: #0a0a0a;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.special-holders {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.holder-item {
  text-align: center;
  padding: 12px 8px;
  background: #fafafa;
  border-radius: 6px;
}

.holder-item.dev {
  background: #fef2f2;
}

.holder-item .label {
  display: block;
  font-size: 0.625rem;
  color: #737373;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.holder-item .value {
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Traders Card */
.traders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.trader-item {
  text-align: center;
  padding: 16px;
  background: #fafafa;
  border-radius: 6px;
}

.trader-item .count {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
}

.trader-item .label {
  font-size: 0.6875rem;
  color: #737373;
  text-transform: uppercase;
}

/* Info Card */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.info-item {
  padding: 12px;
  background: #fafafa;
  border-radius: 6px;
}

.info-item.full {
  grid-column: span 2;
}

.info-item .label {
  display: block;
  font-size: 0.6875rem;
  color: #737373;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.info-item .value {
  font-size: 0.8125rem;
  font-weight: 500;
}

.info-item .value.mono {
  font-family: 'SF Mono', monospace;
  font-size: 0.75rem;
  word-break: break-all;
  color: #525252;
}

/* Deployer Card */
.deployer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.deployer-item {
  text-align: center;
  padding: 20px;
  background: #fafafa;
  border-radius: 6px;
}

.deployer-item .count {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
}

.deployer-item .label {
  font-size: 0.75rem;
  color: #737373;
  text-transform: uppercase;
}

/* DEX Card */
.dex-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.dex-item {
  text-align: center;
  padding: 12px 8px;
  background: #fafafa;
  border-radius: 6px;
}

.dex-item .label {
  display: block;
  font-size: 0.625rem;
  color: #737373;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.dex-item .value.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 500;
}

.badge-yes {
  background: #0a0a0a;
  color: #ffffff;
}

.badge-no {
  background: #e5e5e5;
  color: #737373;
}

/* Socials Card */
.socials-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  color: #0a0a0a;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.15s;
}

.social-link:hover {
  background: #f5f5f5;
  border-color: #d4d4d4;
}

.no-socials {
  color: #737373;
  font-size: 0.8125rem;
}

/* JSON Card */
.json-card {
  cursor: pointer;
}

.json-card summary {
  font-weight: 500;
  font-size: 0.875rem;
  color: #737373;
  padding: 4px 0;
}

.json-card pre {
  margin-top: 16px;
  padding: 16px;
  background: #0a0a0a;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.75rem;
  line-height: 1.6;
  color: #a3a3a3;
  max-height: 400px;
}

/* Wallet Analysis Specific Styles */
.stat-hero {
  background: #0a0a0a;
  border: 1px solid #0a0a0a;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.stat-main {
  text-align: center;
  margin-bottom: 16px;
}

.stat-main .stat-label {
  display: block;
  font-size: 0.75rem;
  color: #a3a3a3;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-main .stat-value {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.labels-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.label-badge {
  background: #ffffff;
  color: #0a0a0a;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: capitalize;
}

.pnl-rate {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 4px;
}

.pnl-rate.positive { color: #16a34a; }
.pnl-rate.negative { color: #dc2626; }

.trading-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* Win Token Card */
.win-token-card .win-token-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.win-pnl {
  text-align: right;
}

.win-pnl .label {
  display: block;
  font-size: 0.6875rem;
  color: #737373;
  text-transform: uppercase;
}

.win-pnl .value {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
}

.win-pnl .rate {
  font-size: 0.875rem;
  font-weight: 500;
  color: #16a34a;
}

/* Balance Card */
.balance-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.token-logo-small {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
}

.balance-info {
  flex: 1;
}

.balance-info .name {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
}

.balance-info .symbol {
  font-size: 0.75rem;
  color: #737373;
}

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

.balance-values .balance {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
}

.balance-values .balance-usd {
  font-size: 0.75rem;
  color: #737373;
}

/* Distribution Cards */
.distribution-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.distribution-item {
  text-align: center;
  padding: 16px 8px;
  border-radius: 6px;
  background: #fafafa;
}

.distribution-item .range {
  display: block;
  font-size: 0.6875rem;
  color: #737373;
  margin-bottom: 8px;
}

.distribution-item .count {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
}

.distribution-item.positive-high { background: #dcfce7; }
.distribution-item.positive-mid { background: #d1fae5; }
.distribution-item.positive-low { background: #ecfdf5; }
.distribution-item.neutral { background: #f5f5f5; }
.distribution-item.negative-low { background: #fef2f2; }
.distribution-item.negative-high { background: #fee2e2; }

/* Chart Card */
.chart-container {
  margin-bottom: 16px;
}

.timeframes-chart {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 160px;
  padding: 16px;
  background: #fafafa;
  border-radius: 6px;
  gap: 4px;
  position: relative;
}

.timeframes-chart::before {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  top: 50%;
  height: 1px;
  background: #e5e5e5;
}

.chart-bar-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: center;
  position: relative;
}

.chart-bar-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
}

.chart-bar-wrapper.positive {
  bottom: 50%;
  justify-content: flex-end;
}

.chart-bar-wrapper.negative {
  top: 50%;
  justify-content: flex-start;
}

.chart-bar {
  width: 100%;
  max-width: 32px;
  min-height: 2px;
  transition: height 0.3s ease;
}

.chart-bar.positive { 
  background: #16a34a; 
  border-radius: 4px 4px 0 0;
}

.chart-bar.negative { 
  background: #dc2626; 
  border-radius: 0 0 4px 4px;
}

.chart-label {
  font-size: 0.625rem;
  color: #737373;
  position: absolute;
  bottom: -20px;
  white-space: nowrap;
}

.timeframes-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-top: 24px;
}

.timeframe-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  background: #fafafa;
  border-radius: 4px;
  font-size: 0.8125rem;
}

.timeframe-item .date { color: #737373; }
.timeframe-item .value { font-weight: 500; }
.timeframe-item .value.positive { color: #16a34a; }
.timeframe-item .value.negative { color: #dc2626; }

/* Funding Card */
.funding-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.no-data {
  color: #737373;
  font-size: 0.875rem;
  text-align: center;
  padding: 24px;
}

/* Wallet NFTs Specific Styles */
.summary-card {
  background: #0a0a0a;
  border-color: #0a0a0a;
}

.summary-stats {
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.summary-item {
  padding: 8px 24px;
}

.summary-value {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.summary-label {
  font-size: 0.75rem;
  color: #a3a3a3;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nfts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.nft-card {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 16px;
  transition: border-color 0.15s;
}

.nft-card:hover {
  border-color: #0a0a0a;
}

.nft-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e5e5;
}

.nft-collection {
  font-weight: 600;
  font-size: 0.9375rem;
  color: #0a0a0a;
}

.nft-symbol {
  background: #e5e5e5;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #525252;
}

.nft-id {
  margin-bottom: 12px;
}

.nft-id .label {
  display: block;
  font-size: 0.6875rem;
  color: #737373;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.nft-id .value {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0a0a0a;
}

.nft-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.nft-detail .label {
  display: block;
  font-size: 0.6875rem;
  color: #737373;
  text-transform: uppercase;
}

.nft-detail .value {
  font-size: 0.8125rem;
  font-weight: 500;
}

.nft-address .label {
  display: block;
  font-size: 0.6875rem;
  color: #737373;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.nft-address .value {
  font-size: 0.75rem;
  color: #525252;
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.collection-item {
  background: #fafafa;
  border-radius: 6px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.collection-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.collection-name {
  font-weight: 600;
  font-size: 0.9375rem;
}

.collection-symbol {
  background: #e5e5e5;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.6875rem;
  color: #525252;
}

.collection-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.collection-chain {
  font-size: 0.75rem;
  color: #737373;
}

.collection-count {
  background: #0a0a0a;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 500;
}

.collection-address {
  font-size: 0.75rem;
  color: #737373;
}

/* Wallet Activity Specific Styles */
.activity-timeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.activity-tx {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 16px;
  align-items: center;
  transition: border-color 0.15s;
}

.activity-tx:hover {
  border-color: #0a0a0a;
}

.tx-time-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tx-date {
  font-size: 0.75rem;
  font-weight: 500;
  color: #0a0a0a;
}

.tx-time {
  font-size: 0.6875rem;
  color: #737373;
}

.tx-chain {
  display: inline-block;
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.625rem;
  font-weight: 500;
  color: #525252;
  text-transform: capitalize;
  margin-top: 4px;
}

.tx-actions-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.activity-action {
  display: flex;
  align-items: center;
  gap: 10px;
}

.action-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 500;
  min-width: 70px;
}

.action-badge.transfer-in {
  background: #dcfce7;
  color: #166534;
}

.action-badge.transfer-out {
  background: #fee2e2;
  color: #991b1b;
}

.action-badge.swap {
  background: #dbeafe;
  color: #1e40af;
}

.action-badge-icon {
  font-size: 0.75rem;
}

.action-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.action-logo {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: cover;
  background: #f5f5f5;
  flex-shrink: 0;
}

.action-amount {
  font-size: 0.8125rem;
  font-weight: 600;
}

.action-amount.positive { color: #16a34a; }
.action-amount.negative { color: #dc2626; }

.action-symbol {
  font-size: 0.75rem;
  color: #737373;
  font-weight: 500;
}

.action-usd {
  font-size: 0.6875rem;
  color: #a3a3a3;
  margin-left: 4px;
}

.action-address {
  font-size: 0.6875rem;
  color: #a3a3a3;
  font-family: 'SF Mono', monospace;
}

/* Swap Row */
.swap-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.swap-arrow {
  color: #737373;
  font-size: 0.75rem;
}

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

.swap-logo {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  object-fit: cover;
  background: #f5f5f5;
}

.swap-amount {
  font-size: 0.75rem;
  font-weight: 500;
}

.swap-amount.positive { color: #16a34a; }
.swap-amount.negative { color: #dc2626; }

/* TX Meta */
.tx-meta-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.tx-fee {
  font-size: 0.6875rem;
  color: #737373;
}

.tx-hash {
  font-size: 0.625rem;
  color: #a3a3a3;
  font-family: 'SF Mono', monospace;
}

.mono {
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

/* Responsive */
@media (max-width: 768px) {
  body { padding: 24px 16px; }
  
  h1 { font-size: 1.5rem; }
  
  .hero-section { grid-template-columns: 1fr; }
  
  .token-hero { flex-direction: column; align-items: flex-start; }
  
  .price-hero { flex-direction: column; gap: 16px; align-items: flex-start; }
  
  .price-extremes { justify-content: flex-start; }
  
  .extreme { text-align: left; }
  
  .price-changes-grid { flex-wrap: wrap; gap: 8px; }
  
  .time-change { flex: 1 1 calc(25% - 8px); }
  
  .market-stats,
  .position-grid,
  .trading-summary,
  .volume-buysell,
  .breakdown-row,
  .deployer-grid { grid-template-columns: repeat(2, 1fr); }
  
  .special-holders { grid-template-columns: repeat(2, 1fr); }
  
  .traders-grid { grid-template-columns: repeat(2, 1fr); }
  
  .dex-grid { grid-template-columns: repeat(3, 1fr); }
  
  .volume-grid { flex-wrap: wrap; gap: 8px; }
  
  .volume-item { flex: 1 1 calc(25% - 8px); }

  .distribution-grid { grid-template-columns: repeat(3, 1fr); }
  
  .trading-stats { grid-template-columns: repeat(2, 1fr); }

  .win-token-content { flex-direction: column; text-align: center; }
  
  .win-pnl { text-align: center; margin-top: 12px; }

  .endpoint-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .endpoint-arrow {
    display: none;
  }

  .coming-soon-badge {
    position: static;
    margin-top: 12px;
  }

  .activity-tx {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tx-time-col {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .tx-meta-col {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .action-info {
    flex-wrap: wrap;
  }

  .swap-row {
    flex-wrap: wrap;
  }
}

/* =====================================================
   TOKEN HOLDERS STYLES
   ===================================================== */

.holders-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.summary-stat {
  background: #f5f5f5;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
}

.summary-stat .stat-label {
  display: block;
  font-size: 0.75rem;
  color: #737373;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.summary-stat .stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0a0a0a;
}

.holders-table-wrapper {
  overflow-x: auto;
  margin: 0 -24px;
  padding: 0 24px;
}

.holders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.holders-table th {
  text-align: left;
  padding: 12px 16px;
  background: #f5f5f5;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #525252;
  border-bottom: 1px solid #e5e5e5;
}

.holders-table th.text-right,
.holders-table td.text-right {
  text-align: right;
}

.holders-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

.holders-table tbody tr:hover {
  background: #fafafa;
}

.rank-cell {
  font-weight: 600;
  color: #737373;
  width: 40px;
}

.address-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.address-text {
  font-size: 0.8125rem;
}

.chain-badge {
  display: inline-block;
  background: #e5e5e5;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.625rem;
  font-weight: 500;
  color: #525252;
  text-transform: capitalize;
}

.tag-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: capitalize;
}

.tag-badge.holder {
  background: #dbeafe;
  color: #1e40af;
}

.tag-badge.exchange {
  background: #fef3c7;
  color: #92400e;
}

.tag-badge.contract {
  background: #f3e8ff;
  color: #7c3aed;
}

.amount-value {
  font-weight: 500;
  color: #0a0a0a;
}

.supply-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.supply-value {
  font-weight: 600;
  color: #0a0a0a;
}

.supply-bar {
  width: 60px;
  height: 4px;
  background: #e5e5e5;
  border-radius: 2px;
  overflow: hidden;
}

.supply-bar-fill {
  height: 100%;
  background: #0a0a0a;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.usd-value {
  font-weight: 600;
  color: #16a34a;
}

@media (max-width: 768px) {
  .holders-summary {
    grid-template-columns: 1fr;
  }

  .holders-table {
    font-size: 0.75rem;
  }

  .holders-table th,
  .holders-table td {
    padding: 8px 12px;
  }

  .address-cell {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .supply-bar {
    width: 40px;
  }
}

/* =====================================================
   MARKET DETAILS STYLES
   ===================================================== */

.market-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.token-pair {
  display: flex;
  align-items: center;
  gap: 12px;
}

.token-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #f5f5f5;
}

.pair-info h2 {
  margin: 0 0 4px 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.price-section {
  text-align: right;
}

.current-price {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: #0a0a0a;
}

.price-change {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
}

.price-change.positive {
  background: #dcfce7;
  color: #166534;
}

.price-change.negative {
  background: #fee2e2;
  color: #991b1b;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.metric-item {
  background: #f5f5f5;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
}

.metric-label {
  display: block;
  font-size: 0.75rem;
  color: #737373;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0a0a0a;
}

.price-changes-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.change-item {
  text-align: center;
  padding: 12px;
  background: #f5f5f5;
  border-radius: 8px;
}

.change-label {
  display: block;
  font-size: 0.75rem;
  color: #737373;
  margin-bottom: 4px;
  font-weight: 500;
}

.change-value {
  display: block;
  font-size: 1rem;
  font-weight: 600;
}

.change-value.positive { color: #16a34a; }
.change-value.negative { color: #dc2626; }

.volume-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.volume-total {
  text-align: center;
  padding: 20px;
  background: #0a0a0a;
  border-radius: 8px;
  color: white;
}

.volume-total .volume-label {
  display: block;
  font-size: 0.75rem;
  opacity: 0.7;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.volume-total .volume-value {
  font-size: 2rem;
  font-weight: 700;
}

.volume-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.volume-buy,
.volume-sell {
  padding: 16px;
  border-radius: 8px;
  text-align: center;
}

.volume-buy {
  background: #dcfce7;
}

.volume-sell {
  background: #fee2e2;
}

.volume-buy .volume-label,
.volume-sell .volume-label {
  display: block;
  font-size: 0.75rem;
  color: #525252;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.volume-buy .volume-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #166534;
}

.volume-sell .volume-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #991b1b;
}

.trading-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.trading-stat {
  text-align: center;
  padding: 16px 12px;
  background: #f5f5f5;
  border-radius: 8px;
}

.trading-stat .stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0a0a0a;
  margin-bottom: 4px;
}

.trading-stat .stat-label {
  font-size: 0.6875rem;
  color: #737373;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.holdings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.holding-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f5f5f5;
  border-radius: 8px;
}

.holding-label {
  font-size: 0.875rem;
  color: #525252;
}

.holding-value {
  font-size: 1rem;
  font-weight: 600;
  color: #0a0a0a;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.security-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f5f5f5;
  border-radius: 8px;
}

.security-label {
  font-size: 0.875rem;
  color: #525252;
}

.security-value {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.security-value.safe {
  background: #dcfce7;
  color: #166534;
}

.security-value.warning {
  background: #fef3c7;
  color: #92400e;
}

.exchange-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.exchange-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: #f5f5f5;
}

.exchange-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0a0a0a;
}

.exchange-type {
  display: block;
  font-size: 0.75rem;
  color: #737373;
  text-transform: capitalize;
}

@media (max-width: 768px) {
  .market-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .price-section {
    text-align: left;
  }

  .metrics-grid,
  .holdings-grid,
  .security-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .price-changes-grid,
  .trading-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .volume-breakdown {
    grid-template-columns: 1fr;
  }
}

/* ==================== */
/* Wallet History Page  */
/* ==================== */

.balance-overview-card .balance-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

.balance-overview-card .current-balance {
  flex: 1;
  min-width: 200px;
}

.balance-overview-card .balance-label {
  display: block;
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 4px;
}

.balance-overview-card .balance-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.balance-overview-card .balance-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.balance-overview-card .balance-stat {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  min-width: 120px;
}

.balance-overview-card .balance-stat .label {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 4px;
}

.balance-overview-card .balance-stat .value {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
}

.balance-overview-card .balance-stat .value.positive {
  color: #22c55e;
}

.balance-overview-card .balance-stat .value.negative {
  color: #ef4444;
}

/* Wallets Card */
.wallets-card .wallets-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wallets-card .wallet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fafafa;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
}

.wallets-card .wallet-index {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}

.wallets-card .wallet-address {
  flex: 1;
  font-family: "SF Mono", Monaco, monospace;
  font-size: 0.875rem;
  color: #0a0a0a;
}

.wallets-card .copy-btn {
  padding: 6px 12px;
  font-size: 0.75rem;
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  color: #525252;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.wallets-card .copy-btn:hover {
  background: #e5e5e5;
  color: #0a0a0a;
}

/* Chart Card */
.chart-card .chart-container {
  height: 400px;
  position: relative;
}

.chart-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.chart-timeframe-buttons {
  display: flex;
  gap: 4px;
  background: #f5f5f5;
  padding: 4px;
  border-radius: 8px;
}

.timeframe-btn {
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  background: transparent;
  border: none;
  color: #737373;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.timeframe-btn:hover {
  color: #0a0a0a;
  background: #e5e5e5;
}

.timeframe-btn.active {
  background: #0a0a0a;
  color: #fff;
}

/* Stats Card */
.stats-card .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.stats-card .stat-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.stats-card .stat-item .label {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 8px;
  font-weight: 500;
}

.stats-card .stat-item .value {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
}

.stats-card .stats-note {
  font-size: 0.75rem;
  color: #64748b;
  font-style: italic;
}

.no-data {
  color: #64748b;
  font-style: italic;
  padding: 16px;
  text-align: center;
}

@media (max-width: 768px) {
  .balance-overview-card .balance-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .balance-overview-card .balance-stats {
    width: 100%;
  }

  .balance-overview-card .balance-stat {
    flex: 1;
    min-width: calc(50% - 8px);
  }

  .chart-card .chart-container {
    height: 300px;
  }

  .chart-card .card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-card .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Wallet History - Enhanced Wallets List */
.wallets-mode-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.mode-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mode-badge.single {
  background: #dcfce7;
  color: #166534;
}

.mode-badge.multi {
  background: #dbeafe;
  color: #1e40af;
}

.chain-summary {
  font-size: 0.8125rem;
  color: #737373;
}

.wallet-item-enhanced {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  transition: all 0.2s;
}

.wallet-item-enhanced:hover {
  background: #f5f5f5;
  border-color: #0a0a0a;
}

.wallet-item-enhanced:last-child {
  margin-bottom: 0;
}

.wallet-item-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.wallet-item-enhanced .wallet-index {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}

.wallet-chain-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wallet-item-body {
  margin-bottom: 12px;
}

.wallet-address-full {
  display: block;
  font-family: "SF Mono", Monaco, monospace;
  font-size: 0.8125rem;
  color: #0a0a0a;
  word-break: break-all;
  line-height: 1.5;
  padding: 10px 12px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
}

.wallet-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wallet-address-short {
  font-family: "SF Mono", Monaco, monospace;
  font-size: 0.75rem;
  color: #64748b;
}

.wallet-item-footer .copy-btn {
  padding: 6px 14px;
  font-size: 0.75rem;
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  color: #525252;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.wallet-item-footer .copy-btn:hover {
  background: #e5e5e5;
  color: #0a0a0a;
}

.combined-note {
  font-size: 0.75rem;
  color: #64748b;
  font-style: italic;
  display: block;
  width: 100%;
  margin-top: 8px;
}

.wallet-balance {
  margin-left: auto;
  font-size: 1.125rem;
  font-weight: 700;
  color: #22c55e;
}

.wallet-balance-note {
  margin-left: auto;
  font-size: 0.75rem;
  color: #64748b;
  font-style: italic;
}

@media (max-width: 768px) {
  .wallets-mode-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .wallet-address-full {
    font-size: 0.6875rem;
  }

  .wallet-item-header {
    flex-wrap: wrap;
  }

  .wallet-balance,
  .wallet-balance-note {
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
    text-align: left;
  }
}

/* ==================== */
/* Wallet Portfolio Page */
/* ==================== */

.portfolio-overview-card .portfolio-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

.portfolio-overview-card .total-balance {
  flex: 1;
  min-width: 200px;
}

.portfolio-overview-card .balance-label {
  display: block;
  font-size: 0.875rem;
  color: #94a3b8;
  margin-bottom: 4px;
}

.portfolio-overview-card .balance-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.portfolio-overview-card .portfolio-stats {
  display: flex;
  gap: 16px;
}

.portfolio-overview-card .portfolio-stat {
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 12px 20px;
  text-align: center;
  min-width: 80px;
}

.portfolio-overview-card .portfolio-stat .label {
  display: block;
  font-size: 0.75rem;
  color: #737373;
  margin-bottom: 4px;
}

.portfolio-overview-card .portfolio-stat .value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0a0a0a;
}

/* Assets Table */
.assets-table-card {
  overflow: hidden;
}

.assets-table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 0.8fr 1.2fr 1fr 1.2fr;
  gap: 12px;
  padding: 12px 20px;
  background: #f5f5f5;
  border-bottom: 1px solid #e5e5e5;
  font-size: 0.75rem;
  font-weight: 600;
  color: #525252;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.assets-table-body {
  max-height: 400px;
  overflow-y: auto;
}

.assets-table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 0.8fr 1.2fr 1fr 1.2fr;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  align-items: center;
  transition: background 0.2s;
}

.assets-table-row:hover {
  background: #fafafa;
}

.assets-table-row:last-child {
  border-bottom: none;
}

.assets-table-row .col-asset {
  display: flex;
  align-items: center;
  gap: 12px;
}

.assets-table-row .asset-logo-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #f5f5f5;
  flex-shrink: 0;
}

.assets-table-row .asset-name-col .name {
  display: block;
  font-weight: 600;
  color: #0a0a0a;
  font-size: 0.875rem;
}

.assets-table-row .asset-name-col .symbol {
  display: block;
  font-size: 0.75rem;
  color: #737373;
}

.assets-table-row .col-price {
  font-weight: 500;
  color: #0a0a0a;
  font-size: 0.875rem;
}

.assets-table-row .col-change {
  font-weight: 600;
  font-size: 0.875rem;
}

.assets-table-row .col-change.positive {
  color: #22c55e;
}

.assets-table-row .col-change.negative {
  color: #ef4444;
}

.assets-table-row .col-balance {
  font-weight: 500;
  color: #0a0a0a;
  font-size: 0.875rem;
}

.assets-table-row .col-balance .symbol-sm {
  color: #737373;
  font-size: 0.75rem;
}

.assets-table-row .col-value {
  font-weight: 600;
  color: #0a0a0a;
  font-size: 0.9375rem;
}

.assets-table-row .col-allocation {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.allocation-bar-container {
  width: 100%;
  height: 6px;
  background: #e5e5e5;
  border-radius: 3px;
  overflow: hidden;
}

.allocation-bar {
  height: 100%;
  background: #0a0a0a;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.allocation-text {
  font-size: 0.75rem;
  color: #737373;
}

/* Asset Detail Cards */
.asset-cards-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.asset-detail-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  overflow: hidden;
}

.asset-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px;
  background: #fafafa;
  border-bottom: 1px solid #e5e5e5;
}

.asset-card-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.asset-logo-lg {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #f5f5f5;
  border: 2px solid #e5e5e5;
}

.asset-card-title h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0a0a0a;
  margin: 0;
}

.asset-card-title h4 .symbol {
  font-weight: 500;
  color: #737373;
  font-size: 1rem;
}

.asset-card-chains {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.asset-card-chains .chain-badge {
  font-size: 0.625rem;
  padding: 3px 8px;
  background: #f5f5f5;
  color: #525252;
  border-radius: 4px;
  text-transform: capitalize;
}

.asset-card-value {
  text-align: right;
}

.asset-card-value .value-usd {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0a0a0a;
}

.asset-card-value .value-change {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}

.asset-card-value .value-change.positive {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.asset-card-value .value-change.negative {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* Asset Info Table */
.asset-info-table {
  width: 100%;
  border-collapse: collapse;
}

.asset-info-table tr {
  border-bottom: 1px solid #f0f0f0;
}

.asset-info-table tr:last-child {
  border-bottom: none;
}

.asset-info-table td {
  padding: 14px 20px;
}

.asset-info-table td.label {
  font-size: 0.875rem;
  color: #737373;
  width: 40%;
}

.asset-info-table td.value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #0a0a0a;
  text-align: right;
}

.asset-info-table td.value.positive {
  color: #22c55e;
}

.asset-info-table td.value.negative {
  color: #ef4444;
}

.asset-info-table td.value.mono {
  font-family: "SF Mono", Monaco, monospace;
  font-size: 0.8125rem;
}

.copy-btn-sm {
  margin-left: 8px;
  padding: 4px 8px;
  font-size: 0.625rem;
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  color: #525252;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-btn-sm:hover {
  background: #e5e5e5;
  color: #0a0a0a;
}

/* Security Section in Card */
.asset-card-security {
  padding: 16px 20px;
  background: #fafafa;
  border-top: 1px solid #e5e5e5;
}

.asset-card-security h5,
.asset-card-wallets h5 {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 12px 0;
}

.security-table {
  width: 100%;
  border-collapse: collapse;
}

.security-table tr {
  border-bottom: 1px solid #f0f0f0;
}

.security-table tr:last-child {
  border-bottom: none;
}

.security-table td {
  padding: 10px 0;
}

.security-table td.label {
  font-size: 0.8125rem;
  color: #737373;
}

.security-table td.value {
  text-align: right;
}

.security-badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
}

.security-badge.safe {
  background: #dcfce7;
  color: #166534;
}

.security-badge.warning {
  background: #fef3c7;
  color: #92400e;
}

.security-badge.danger {
  background: #fee2e2;
  color: #991b1b;
}

.security-badge.neutral {
  background: #f5f5f5;
  color: #525252;
}

/* Wallets Section in Card */
.asset-card-wallets {
  padding: 16px 20px;
  background: #f5f5f5;
  border-top: 1px solid #e5e5e5;
}

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

.wallet-badge {
  font-family: "SF Mono", Monaco, monospace;
  font-size: 0.75rem;
  padding: 6px 12px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  color: #525252;
  border-radius: 6px;
}

@media (max-width: 1024px) {
  .assets-table-header,
  .assets-table-row {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .assets-table-header .col-balance,
  .assets-table-header .col-allocation,
  .assets-table-row .col-balance,
  .assets-table-row .col-allocation {
    display: none;
  }
}

@media (max-width: 768px) {
  .portfolio-overview-card .portfolio-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .portfolio-overview-card .portfolio-stats {
    width: 100%;
    justify-content: space-around;
  }

  .assets-table-header,
  .assets-table-row {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .assets-table-header .col-change,
  .assets-table-row .col-change {
    display: none;
  }

  .asset-card-header {
    flex-direction: column;
    gap: 16px;
  }

  .asset-card-value {
    text-align: left;
  }

  .asset-info-table td.label {
    width: 50%;
  }
}

/* ======================== */
/* Wallet DeFi Positions    */
/* ======================== */

.defi-overview-card .defi-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-bottom: 20px;
}

.defi-overview-card .defi-total {
  flex: 1;
  min-width: 200px;
}

.defi-overview-card .defi-label {
  display: block;
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 4px;
}

.defi-overview-card .defi-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.defi-overview-card .defi-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.defi-overview-card .defi-stat {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 20px;
  min-width: 120px;
  text-align: center;
}

.defi-overview-card .defi-stat.deposited {
  border-left: 3px solid #22c55e;
}

.defi-overview-card .defi-stat.borrowed {
  border-left: 3px solid #ef4444;
}

.defi-overview-card .defi-stat.rewards {
  border-left: 3px solid #f59e0b;
}

.defi-overview-card .defi-stat .label {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 4px;
}

.defi-overview-card .defi-stat .value {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
}

.defi-overview-card .defi-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.defi-overview-card .meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.defi-overview-card .meta-item .label {
  font-size: 0.75rem;
  color: #64748b;
}

.defi-overview-card .meta-item .value {
  font-size: 0.875rem;
  color: #0f172a;
}

.defi-overview-card .meta-item .value.mono {
  font-family: "SF Mono", Monaco, monospace;
}

/* Protocols Container */
.protocols-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

/* Protocol Card */
.protocol-card {
  overflow: hidden;
}

.protocol-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #fafafa;
  border-bottom: 1px solid #e5e5e5;
  gap: 16px;
  flex-wrap: wrap;
}

.protocol-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.protocol-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: #f5f5f5;
}

.protocol-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0a0a0a;
  margin: 0;
}

.protocol-chain {
  display: inline-block;
  font-size: 0.75rem;
  padding: 3px 8px;
  background: #f5f5f5;
  color: #525252;
  border-radius: 4px;
  margin-top: 4px;
}

.protocol-value {
  text-align: right;
}

.protocol-value .value-label {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 2px;
}

.protocol-value .value-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}

.protocol-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  padding: 16px 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.protocol-stat {
  text-align: center;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.protocol-stat .label {
  display: block;
  font-size: 0.6875rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.protocol-stat .value {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
}

.protocol-stat .value.positive {
  color: #22c55e;
}

.protocol-stat .value.negative {
  color: #ef4444;
}

.protocol-stat .value.rewards {
  color: #f59e0b;
}

/* Positions */
.positions-container {
  padding: 16px 20px;
  background: #ffffff;
}

.positions-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 12px 0;
}

.positions-list .position-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
}

.positions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.position-item {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 16px;
}

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

.position-type {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 6px;
}

.position-type.type-lending {
  background: #dcfce7;
  color: #166534;
}

.position-type.type-borrowing {
  background: #fee2e2;
  color: #991b1b;
}

.position-type.type-liquidity {
  background: #dbeafe;
  color: #1e40af;
}

.position-type.type-staking {
  background: #f3e8ff;
  color: #7c3aed;
}

.position-type.type-farming {
  background: #fef3c7;
  color: #92400e;
}

.position-type.type-vault {
  background: #ccfbf1;
  color: #0f766e;
}

.position-type.type-default {
  background: #f5f5f5;
  color: #525252;
}

.position-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
}

.position-name {
  font-size: 0.875rem;
  color: #1e293b;
  margin-bottom: 12px;
  font-weight: 500;
}

.position-tokens {
  margin-bottom: 12px;
}

.tokens-label {
  display: block;
  font-size: 0.6875rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.tokens-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.token-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.token-logo-sm {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.positions-list .token-symbol {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0f172a;
  min-width: 60px;
}

.positions-list .token-balance {
  font-size: 0.8125rem;
  color: #64748b;
  flex: 1;
}

.positions-list .token-value {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0f172a;
}

.positions-list .token-value.positive {
  color: #22c55e;
}

.positions-list .token-value.negative {
  color: #ef4444;
}

.positions-list .token-value.rewards {
  color: #f59e0b;
}

.position-apy,
.position-health {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin-top: 8px;
}

.apy-label,
.health-label {
  font-size: 0.75rem;
  color: #737373;
}

.apy-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #22c55e;
}

.health-value {
  font-size: 0.9375rem;
  font-weight: 600;
}

.health-value.health-safe {
  color: #22c55e;
}

.health-value.health-warning {
  color: #f59e0b;
}

.health-value.health-danger {
  color: #ef4444;
}

/* Empty State */
.empty-state-card {
  text-align: center;
  padding: 48px 24px;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.empty-state-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0a0a0a;
  margin: 0 0 8px 0;
}

.empty-state-card p {
  color: #737373;
  margin: 0;
}

.empty-state-card .hint {
  margin-top: 16px;
  font-size: 0.8125rem;
  color: #737373;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ===========================================
   Wallet Positions Page Styles
   =========================================== */

/* Positions Table Header */
.positions-table-header {
  grid-template-columns: 2fr 1fr 1.2fr 1fr 1fr 1fr 0.8fr;
}

/* Positions Table Row */
.positions-table-row {
  grid-template-columns: 2fr 1fr 1.2fr 1fr 1fr 1fr 0.8fr;
}

.positions-table-row .col-pnl,
.positions-table-row .col-realized {
  font-weight: 600;
  font-size: 0.875rem;
}

.positions-table-row .col-pnl.positive,
.positions-table-row .col-realized.positive {
  color: #22c55e;
}

.positions-table-row .col-pnl.negative,
.positions-table-row .col-realized.negative {
  color: #ef4444;
}

.positions-table-row .col-trades {
  font-size: 0.8125rem;
  color: #737373;
}

.positions-table-row .col-trades .buy-count {
  color: #22c55e;
}

.positions-table-row .col-trades .sell-count {
  color: #ef4444;
}

/* Position PnL Section in Cards */
.position-pnl-section {
  padding: 16px 20px;
  background: #f5f5f5;
  border-bottom: 1px solid #e5e5e5;
}

.pnl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pnl-grid .pnl-item {
  text-align: center;
}

.pnl-grid .pnl-item .label {
  display: block;
  font-size: 0.75rem;
  color: #737373;
  margin-bottom: 4px;
}

.pnl-grid .pnl-item .value {
  font-size: 1.125rem;
  font-weight: 600;
}

.pnl-grid .pnl-item .value.positive {
  color: #22c55e;
}

.pnl-grid .pnl-item .value.negative {
  color: #ef4444;
}

/* Market Grid in Position Cards */
.asset-card-market {
  padding: 16px 20px;
  border-top: 1px solid #e5e5e5;
}

.asset-card-market h5 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #737373;
  margin: 0 0 12px 0;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.market-grid .market-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #fafafa;
  border-radius: 8px;
}

.market-grid .market-item .label {
  font-size: 0.75rem;
  color: #737373;
}

.market-grid .market-item .value {
  font-size: 0.875rem;
  font-weight: 500;
  color: #0a0a0a;
}

.market-grid .market-item .value.positive {
  color: #22c55e;
}

.market-grid .market-item .value.negative {
  color: #ef4444;
}

/* Buy/Sell count styling */
.buy-count {
  color: #22c55e;
}

.sell-count {
  color: #ef4444;
}

@media (max-width: 1024px) {
  .positions-table-header,
  .positions-table-row {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  }

  .positions-table-header .col-realized,
  .positions-table-row .col-realized,
  .positions-table-header .col-trades,
  .positions-table-row .col-trades {
    display: none;
  }
}

@media (max-width: 768px) {
  .positions-table-header,
  .positions-table-row {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .positions-table-header .col-price,
  .positions-table-row .col-price,
  .positions-table-header .col-balance,
  .positions-table-row .col-balance {
    display: none;
  }

  .pnl-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .market-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .defi-overview-card .defi-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .defi-overview-card .defi-stats {
    width: 100%;
  }

  .defi-overview-card .defi-stat {
    flex: 1;
    min-width: calc(50% - 6px);
  }

  .protocol-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .protocol-value {
    text-align: left;
  }

  .protocol-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .position-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .token-item {
    flex-wrap: wrap;
  }
}

/* =====================================================
   WALLET TRADES STYLES
   ===================================================== */

/* Tokens Traded Grid */
.tokens-traded-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.token-traded-card {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 16px;
  transition: border-color 0.15s;
}

.token-traded-card:hover {
  border-color: #0a0a0a;
}

.token-traded-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5e5e5;
}

.token-traded-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.token-traded-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #e5e5e5;
  flex-shrink: 0;
}

.token-traded-logo-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e5e5e5 0%, #d4d4d4 100%);
  flex-shrink: 0;
}

.token-traded-name {
  display: flex;
  flex-direction: column;
}

.token-traded-name .name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: #0a0a0a;
  line-height: 1.2;
}

.token-traded-name .symbol {
  font-size: 0.75rem;
  color: #737373;
}

.token-traded-price {
  text-align: right;
}

.token-traded-price .price {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #0a0a0a;
}

.token-traded-price .change {
  font-size: 0.75rem;
  font-weight: 500;
}

.token-traded-price .change.positive {
  color: #16a34a;
}

.token-traded-price .change.negative {
  color: #dc2626;
}

.token-traded-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.token-stat {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 10px 12px;
  text-align: center;
}

.token-stat .label {
  display: block;
  font-size: 0.6875rem;
  color: #737373;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.token-stat .value {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0a0a0a;
}

.token-traded-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.token-traded-meta .address {
  font-size: 0.75rem;
  color: #737373;
}

/* Trades Timeline */
.trades-timeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trade-item {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  align-items: center;
  transition: border-color 0.15s;
}

.trade-item:hover {
  border-color: #0a0a0a;
}

.trade-time-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trade-date {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #0a0a0a;
}

.trade-time {
  font-size: 0.6875rem;
  color: #737373;
}

.trade-chain {
  display: inline-block;
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.625rem;
  font-weight: 500;
  color: #525252;
  text-transform: capitalize;
  margin-top: 4px;
  width: fit-content;
}

.trade-main-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trade-action {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trade-side-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 0.6875rem;
  font-weight: 600;
  min-width: 65px;
  justify-content: center;
}

.trade-side-badge.buy {
  background: #dcfce7;
  color: #166534;
}

.trade-side-badge.sell {
  background: #fee2e2;
  color: #991b1b;
}

.trade-side-icon {
  font-size: 0.75rem;
}

.trade-tokens {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.trade-token-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  background: #f5f5f5;
}

.trade-amount {
  font-size: 0.9375rem;
  font-weight: 600;
}

.trade-amount.positive {
  color: #16a34a;
}

.trade-amount.negative {
  color: #dc2626;
}

.trade-symbol {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #525252;
}

.trade-usd {
  font-size: 0.75rem;
  color: #737373;
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
}

.trade-quote {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
}

.quote-label {
  color: #a3a3a3;
}

.quote-amount {
  font-weight: 500;
  color: #525252;
}

.quote-symbol {
  color: #737373;
}

.trade-labels {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.trade-label-badge {
  display: inline-block;
  padding: 2px 8px;
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  font-size: 0.625rem;
  font-weight: 500;
  color: #525252;
  text-transform: capitalize;
}

.trade-meta-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.trade-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.trade-price .price-label {
  font-size: 0.625rem;
  color: #a3a3a3;
  text-transform: uppercase;
}

.trade-price .price-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0a0a0a;
}

.trade-hash {
  font-size: 0.6875rem;
  color: #a3a3a3;
}

@media (max-width: 768px) {
  .tokens-traded-grid {
    grid-template-columns: 1fr;
  }

  .trade-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .trade-time-col {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .trade-meta-col {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .trade-price {
    align-items: flex-start;
    flex-direction: row;
    gap: 6px;
  }

  .trade-tokens {
    flex-wrap: wrap;
  }
}

/* =====================================================
   WALLET LABELS STYLES
   ===================================================== */

/* Labels Legend */
.labels-legend {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #fafafa;
  border-radius: 8px;
}

.legend-description {
  font-size: 0.8125rem;
  color: #525252;
}

/* Wallets Labels List */
.wallets-labels-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wallet-label-card {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 16px;
  transition: border-color 0.15s;
}

.wallet-label-card:hover {
  border-color: #0a0a0a;
}

.wallet-label-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e5e5;
}

.wallet-label-address {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wallet-label-address .address-full {
  font-size: 0.8125rem;
  color: #0a0a0a;
  display: none;
}

.wallet-label-address .address-short {
  font-size: 0.875rem;
  color: #0a0a0a;
  font-weight: 500;
}

.wallet-label-card:hover .address-full {
  display: block;
}

.wallet-label-card:hover .address-short {
  display: none;
}

.wallet-label-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.wallet-label-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.wallet-label-badge.label-proTrader {
  background: #dcfce7;
  color: #166534;
}

.wallet-label-badge.label-smartTrader {
  background: #dbeafe;
  color: #1e40af;
}

.wallet-label-badge.label-freshTrader {
  background: #f5f5f5;
  color: #525252;
}

.wallet-label-badge.label-sniper {
  background: #fef3c7;
  color: #92400e;
}

.wallet-label-badge.label-insider {
  background: #fee2e2;
  color: #991b1b;
}

.wallet-label-badge.label-bundler {
  background: #f3e8ff;
  color: #7c3aed;
}

.wallet-label-badge.label-default {
  background: #f5f5f5;
  color: #525252;
}

.no-labels {
  font-size: 0.8125rem;
  color: #737373;
  font-style: italic;
}

.wallet-label-count {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.wallet-label-count .count-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0a0a0a;
}

.wallet-label-count .count-label {
  font-size: 0.75rem;
  color: #737373;
}

@media (max-width: 768px) {
  .wallet-label-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .wallet-label-address .address-full {
    display: block;
    font-size: 0.6875rem;
    word-break: break-all;
  }

  .wallet-label-address .address-short {
    display: none;
  }

  .legend-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
