  /* Using YOUR exact brand colors from base.html */
  
  .portfolio-content {
    background-color: #1e293b;
    margin: 0 auto 40px;
    padding: 40px;
    border-radius: 16px;
    max-width: 1200px;
    width: calc(100% - 40px);
    box-sizing: border-box;
    text-align: center;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  }

  .portfolio-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(139, 92, 246, 0.25);
  }

  /* Portfolio Summary Cards */
  .portfolio-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
  }

  .summary-card {
    background: #334155;
    padding: 15px;
    border-radius: 12px;
    text-align: left;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 1px solid rgba(139, 92, 246, 0.2);
  }

  .summary-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(139, 92, 246, 0.2);
    border-color: #8b5cf6;
  }

  .summary-card h3 {
    margin: 0 0 8px 0;
    color: #8b5cf6;
    font-size: 14px;
    font-weight: 600;
  }

  .summary-card .value {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 4px;
    color: #e2e8f0;
  }

  .summary-card .change {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .change.positive {
    color: #10b981;
  }

  .change.negative {
    color: #ef4444;
  }

  /* Network Selector */
  .network-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .network-btn {
    background: #475569;
    color: #e2e8f0;
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
  }

  .network-btn.active {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6, #8b5cf6, #d97706);
    color: white;
  }

  .network-btn:hover {
    background: #64748b;
    border-color: #8b5cf6;
  }

  .network-btn.active:hover {
    filter: brightness(1.1);
  }

  /* COMPACT Charts Container - 3 side-by-side */
  .charts-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
  }

  .chart-card {
    background: #334155;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    height: 260px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  }

  .chart-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(139, 92, 246, 0.2);
    border-color: #8b5cf6;
  }

  .chart-card h3 {
    margin: 0 0 10px 0;
    text-align: center;
    color: #8b5cf6;
    font-weight: 600;
    font-size: 14px;
  }

  canvas {
    max-width: 100%;
    max-height: 200px;
  }

  /* Connect button using YOUR gradient */
  .connect-button {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6, #8b5cf6, #d97706);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    min-width: 160px;
    transition: all 0.3s ease;
  }

  .connect-button:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
  }

  /* Small buttons using YOUR brown color */
  .small-button {
    background-color: #8A3B12;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin: 0 5px;
    transition: all 0.3s ease;
  }

  .small-button:hover {
    background-color: #7A3210;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(138, 59, 18, 0.3);
  }

  /* Empty state */
  .empty-state {
    background: #334155;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    color: #94a3b8;
    border: 1px solid rgba(139, 92, 246, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .empty-state h3 {
    color: #8b5cf6;
    margin: 0 0 12px 0;
    font-weight: 600;
    font-size: 1.3rem;
  }

  .empty-state p {
    color: #e2e8f0;
    margin: 0 0 20px 0;
    line-height: 1.5;
    max-width: 350px;
  }

  /* FIXED: Properly centered action button */
  .action-button {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6, #8b5cf6, #d97706);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto;
    display: inline-block;
  }

  .action-button:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
  }

  /* Responsive Design */
  @media (max-width: 768px) {
    .charts-container {
      grid-template-columns: 1fr;
    }
    
    .chart-card {
      height: 220px;
    }
    
    .portfolio-summary {
      grid-template-columns: 1fr;
    }
  }

  /* Animations */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .portfolio-content {
    animation: fadeInUp 0.5s ease;
  }
  
  #walletPickerModal {
    z-index: 10001 !important;
}

#walletPickerModal .wallet-option {
    pointer-events: auto !important;
    cursor: pointer !important;
}

#walletPickerModal button {
    pointer-events: auto !important;
}

/* Portfolio Table Styles */
.portfolio-table {
  background: #334155;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(139, 92, 246, 0.2);
  margin: 20px 0;
}

.portfolio-table table {
  width: 100%;
  border-collapse: collapse;
}

.portfolio-table th {
  background: #475569;
  color: #8b5cf6;
  padding: 15px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.portfolio-table td {
  padding: 15px;
  border-bottom: 1px solid rgba(71, 85, 105, 0.3);
  color: #e2e8f0;
}

/* Fix for the text inputs/textareas in the Notes column */
.portfolio-table textarea,
.portfolio-table input[type="text"] {
  background: rgba(30, 41, 59, 0.8) !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
  border-radius: 6px !important;
  padding: 8px 12px !important;
  font-size: 14px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  resize: vertical !important;
  min-height: 60px !important;
}

.portfolio-table textarea::placeholder,
.portfolio-table input[type="text"]::placeholder {
  color: #94a3b8 !important;
}

.portfolio-table textarea:focus,
.portfolio-table input[type="text"]:focus {
  outline: none !important;
  border-color: #8b5cf6 !important;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2) !important;
}

/* Risk badges */
.risk-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.risk-badge.volatile {
  background-color: #fbbf24;
  color: #1f2937;
}

.risk-badge.safe {
  background-color: #10b981;
  color: white;
}

/* Star/Favorite icons */
.fav-star {
  color: #fbbf24;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.fav-star:hover {
  transform: scale(1.2);
}

.portfolio-content textarea, 
.notes-section textarea, 
.portfolio-table textarea {
  color: #e2e8f0 !important;
  background-color: #222a38 !important;
  border: 1px solid #8b5cf6;
}



/* Fix wallet picker modal on Portfolio page */
#walletPickerModal {
    z-index: 99999 !important;
}

#walletPickerModal .modal-content {
    position: relative;
    z-index: 100000 !important;
}

#walletPickerModal .wallet-option,
#walletPickerModal button {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 100001 !important;
}

/* Ensure overlay doesn't block buttons */
#walletPickerModal::before,
#walletPickerModal::after {
    pointer-events: none !important;
}


