/* ===== TRADERS PAGE SPECIFIC STYLES ===== */

/* Wallet Search Container */
.wallet-search-container {
  max-width: 800px;
  margin: 2rem auto 3rem;
  padding: 0 1rem;
}

.search-input-wrapper {
  display: flex;
  gap: 1rem;
  position: relative;
}

.wallet-input {
  flex: 1;
  padding: 1rem 1.25rem;
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  font-size: 1rem;
  font-family: var(--font-mono);
  background: white;
  color: var(--neutral-900);
  transition: all var(--duration-fast) var(--ease-out);
  letter-spacing: 0.025em;
}

.wallet-input:focus {
  outline: none;
  border-color: var(--primary-400);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.wallet-input::placeholder {
  color: var(--neutral-400);
  font-family: var(--font-sans);
  letter-spacing: normal;
}

.wallet-search-btn {
  padding: 1rem 2rem;
  background: var(--primary-600);
  color: white;
  border: none;
  border-radius: var(--radius-xl);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.wallet-search-btn:hover:not(:disabled) {
  background: var(--primary-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.wallet-search-btn:active:not(:disabled) {
  transform: translateY(0);
}

.wallet-search-btn:disabled {
  background: var(--neutral-400);
  cursor: not-allowed;
  transform: none;
  position: relative;
}

.wallet-search-btn:disabled::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  top: 0;
  bottom: 0;
  left: 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Wallet Info Container */
.wallet-info-container {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--neutral-200);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.wallet-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.wallet-identity {
  flex: 1;
  min-width: 0;
}

.wallet-address {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--neutral-900);
  margin: 0 0 0.25rem 0;
  word-break: break-all;
}

.wallet-username {
  font-size: 1rem;
  color: var(--neutral-600);
  margin: 0;
}

.external-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--neutral-50);
  color: var(--primary-600);
  text-decoration: none;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--duration-fast) var(--ease-out);
}

.external-link:hover {
  background: var(--primary-50);
  color: var(--primary-700);
  transform: translateY(-1px);
}

/* Wallet Stats Grid */
.wallet-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.wallet-stat-card {
  background: var(--neutral-50);
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--neutral-100);
  transition: all var(--duration-fast) var(--ease-out);
}

.wallet-stat-card:hover {
  border-color: var(--neutral-200);
  box-shadow: var(--shadow-xs);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--neutral-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--neutral-900);
  font-feature-settings: 'tnum';
}

/* Transaction Table Container */
.tx-table-container {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--neutral-200);
  overflow: visible;
  box-shadow: var(--shadow-sm);
  animation: fadeInScale 0.3s ease-out;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--neutral-200);
  background: linear-gradient(135deg, var(--neutral-50) 0%, #f8fafc 100%);
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
}

.table-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-500), var(--success-500), var(--primary-500));
}

.table-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--neutral-900);
  margin: 0;
}

.table-subtitle {
  font-size: 0.875rem;
  color: var(--neutral-600);
  margin: 0.25rem 0 0 0;
  flex-basis: 100%;
}

.table-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.filter-select {
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-lg);
  background: white;
  font-size: 0.875rem;
  color: var(--neutral-900);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  transition: all var(--duration-fast) var(--ease-out);
}

.filter-select:hover {
  border-color: var(--neutral-400);
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary-400);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Table Wrapper */
.table-wrapper {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Note: Enhanced loading spinner styles are now defined in traders.html for better organization */

/* Transaction Table */
.transaction-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.925rem;
}

.transaction-table thead {
  background: var(--neutral-50);
  border-bottom: 1px solid var(--neutral-200);
}

.transaction-table th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 600;
  color: var(--neutral-700);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  position: relative;
}

.transaction-table th.sortable {
  cursor: pointer;
  user-select: none;
  transition: all var(--duration-fast) var(--ease-out);
}

.transaction-table th.sortable:hover {
  color: var(--neutral-900);
  background: var(--neutral-100);
}

.sort-indicator {
  display: inline-block;
  margin-left: 0.5rem;
  opacity: 0.3;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.sort-indicator::after {
  content: '↕';
  font-size: 0.75rem;
}

.transaction-table th.sort-asc .sort-indicator::after {
  content: '↑';
  opacity: 1;
}

.transaction-table th.sort-desc .sort-indicator::after {
  content: '↓';
  opacity: 1;
}

.transaction-table td {
  padding: 0.875rem 1.5rem;
  border-bottom: 1px solid var(--neutral-100);
  color: var(--neutral-900);
}

.transaction-table tbody tr {
  transition: background var(--duration-fast) var(--ease-out);
}

.transaction-table tbody tr:hover {
  background: var(--neutral-50);
}

.transaction-table tbody tr:last-child td {
  border-bottom: none;
}

/* Token Cell */
.token-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.token-cell:hover {
  transform: translateX(2px);
}

.token-img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--neutral-200);
  background: var(--neutral-100);
  transition: all var(--duration-fast) var(--ease-out);
}

.token-cell:hover .token-img {
  border-color: var(--primary-300);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.token-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.token-symbol {
  font-weight: 600;
  color: var(--neutral-900);
  font-size: 0.925rem;
}

.token-name {
  font-size: 0.8rem;
  color: var(--neutral-500);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Transaction Type Badge */
.tx-type {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tx-type.buy {
  background: rgba(16, 185, 129, 0.1);
  color: rgb(16, 185, 129);
}

.tx-type.sell {
  background: rgba(239, 68, 68, 0.1);
  color: rgb(239, 68, 68);
}

/* Transaction Link */
.tx-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--primary-600);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  transition: all var(--duration-fast) var(--ease-out);
}

.tx-link:hover {
  color: var(--primary-700);
  text-decoration: underline;
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  gap: 1rem;
  color: var(--neutral-500);
}

.empty-state svg {
  opacity: 0.3;
}

.empty-state p {
  font-size: 1rem;
  margin: 0;
}



/* Holdings Container */
.holdings-container {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--neutral-200);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

/* Holdings Table */
.holdings-table {
  width: 100%;
  border-collapse: collapse;
}

.holdings-table thead {
  border-bottom: 2px solid var(--neutral-200);
  background-color: var(--neutral-50);
}

.holdings-table th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--neutral-700);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Column specific alignments */
.holdings-table th:first-child {
  width: 50%;
  text-align: left;
}

.holdings-table th:nth-child(2) {
  width: 25%;
  text-align: right;
}

.holdings-table th:nth-child(3) {
  width: 25%;
  text-align: right;
}

.holdings-table tbody tr {
  border-bottom: 1px solid var(--neutral-100);
  transition: all var(--duration-fast) var(--ease-out);
}

.holdings-table tbody tr:hover {
  background-color: var(--neutral-50);
  transform: translateX(2px);
}

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

.holdings-table td {
  padding: 1rem 1.5rem;
  vertical-align: middle;
}

/* Token cell styling */
.holdings-table td:first-child {
  font-weight: 500;
}

.holdings-table td:first-child .token-cell {
  gap: 1rem;
}

.holdings-table td:first-child .token-info {
  flex: 1;
}

.holdings-table td:first-child .token-symbol {
  font-size: 1rem;
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: 0.125rem;
}

.holdings-table td:first-child .token-name {
  font-size: 0.875rem;
  color: var(--neutral-600);
  font-weight: 400;
}

/* Amount and Value cells */
.holdings-table td:nth-child(2),
.holdings-table td:nth-child(3) {
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 500;
}

.holdings-table td:nth-child(2) {
  color: var(--neutral-700);
  font-size: 0.95rem;
}

.holdings-table td:nth-child(3) {
  color: var(--neutral-900);
  font-size: 1rem;
  font-weight: 700;
}

.holding-row {
  position: relative;
}

/* Value highlighting */
.value-usd {
  color: var(--primary-700);
}

/* Profit/Loss Styling */
.profit-positive {
  color: var(--success-600);
  font-weight: 600;
}

.profit-negative {
  color: var(--danger-600);
  font-weight: 600;
}

.profit-positive::before {
  content: '+';
}

.profit-negative::before {
  content: '-';
}

/* Numeric cells */
.numeric-cell {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--neutral-700);
}

/* Total row */
.holdings-total-row {
  border-top: 2px solid var(--neutral-300);
  background-color: var(--neutral-50);
}

.holdings-total-row:hover {
  transform: none !important;
  background-color: var(--neutral-50) !important;
}

/* Holdings specific responsive */
@media (max-width: 1024px) {
  .holdings-table {
    font-size: 0.875rem;
  }
  
  .holdings-table th,
  .holdings-table td {
    padding: 0.625rem 0.75rem;
  }
}

@media (max-width: 768px) {
  .holdings-container {
    padding: 1rem;
    margin: 0 -0.5rem 1.5rem;
    border-radius: var(--radius-lg);
  }
  
  .holdings-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .holdings-table thead,
  .holdings-table tbody,
  .holdings-table tr {
    display: table;
    width: 100%;
    table-layout: fixed;
  }
  
  .holdings-table {
    min-width: 700px;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .wallet-search-container {
    padding: 0;
  }
  
  .search-input-wrapper {
    flex-direction: column;
  }
  
  .wallet-search-btn {
    width: 100%;
    justify-content: center;
  }
  
  .wallet-info-container {
    padding: 1.5rem;
  }
  
  .wallet-header {
    flex-direction: column;
  }
  
  .wallet-address {
    font-size: 1.1rem;
  }
  
  .wallet-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .stat-value {
    font-size: 1.25rem;
  }
  
  .table-header {
    padding: 1rem 1.5rem;
  }
  
  .table-title {
    font-size: 1rem;
  }
  
  .transaction-table {
    font-size: 0.85rem;
  }
  
  .transaction-table th,
  .transaction-table td {
    padding: 0.75rem 1rem;
  }
  
  .token-img {
    width: 28px;
    height: 28px;
  }
  
  .tx-type {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
  }
}

@media (max-width: 640px) {
  .wallet-info-container,
  .tx-table-container {
    border-radius: var(--radius-lg);
  }
  
  .wallet-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  
  .wallet-stat-card {
    padding: 1rem;
  }
  
  .transaction-table {
    min-width: 700px;
  }
  
  .table-controls {
    width: 100%;
  }
  
  .filter-select {
    width: 100%;
  }
} 

/* ===== HOLDINGS TABLE STYLES ===== */
.holdings-container {
  margin-bottom: 2rem;
}

.holdings-table {
  width: 100%;
  background: white;
  border-collapse: collapse;
  font-size: 0.925rem;
}

.holdings-table thead th {
  background: var(--neutral-50);
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 600;
  color: var(--neutral-700);
  border-bottom: 1px solid var(--neutral-200);
  white-space: nowrap;
}

.holdings-table tbody td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--neutral-100);
  vertical-align: middle;
}

.holdings-table tbody tr:last-child td {
  border-bottom: none;
}

.holdings-table tbody tr:hover {
  background: var(--neutral-50);
  transition: background var(--duration-fast) var(--ease-out);
}

/* Holdings total row - make it sticky at bottom */
.holdings-total-row {
  position: sticky;
  bottom: 0;
  background: var(--neutral-50);
  border-top: 2px solid var(--neutral-300);
  font-weight: 700;
}

.holdings-total-row td {
  padding: 1rem 1.5rem !important;
  border-bottom: none !important;
}

.holdings-total-row:hover {
  background: var(--neutral-50) !important;
}

.numeric-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ===== TRADES TABLE STYLES ===== */
.trades-container {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--neutral-200);
  overflow: visible;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.trades-table {
  width: 100%;
  background: white;
  border-collapse: collapse;
  font-size: 0.925rem;
}

.trades-table thead th {
  background: var(--neutral-50);
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 600;
  color: var(--neutral-700);
  border-bottom: 1px solid var(--neutral-200);
  white-space: nowrap;
}

.trades-table tbody td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--neutral-100);
  vertical-align: middle;
}

.trades-table tbody tr:last-child td {
  border-bottom: none;
}

.trades-table tbody tr:hover {
  background: var(--neutral-50);
  transition: background var(--duration-fast) var(--ease-out);
}

.trade-row .numeric-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Mobile responsiveness for trades table */
@media (max-width: 768px) {
  .trades-table {
    min-width: 600px;
  }
  
  .trades-table thead th,
  .trades-table tbody td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 640px) {
  .trades-container {
    margin: 0 -1rem 2rem -1rem;
    padding: 0 1rem;
  }
  
  .trades-table thead th,
  .trades-table tbody td {
    padding: 0.625rem 0.75rem;
    font-size: 0.8rem;
  }
} 

/* ===== TABLE WRAPPER SCROLLING ===== */
.table-wrapper {
  max-height: 500px;
  overflow-y: auto;
  overflow-x: auto;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  position: relative;
  background: white;
}

/* Sticky table headers */
.holdings-table thead,
.trades-table thead,
.transaction-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--neutral-50);
}

.holdings-table thead th,
.trades-table thead th,
.transaction-table thead th {
  position: relative;
  background: var(--neutral-50);
}

/* Add shadow to sticky headers when scrolling */
.table-wrapper.scrolled .holdings-table thead::after,
.table-wrapper.scrolled .trades-table thead::after,
.table-wrapper.scrolled .transaction-table thead::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 4px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), transparent);
  pointer-events: none;
}

/* Custom scrollbar for modern browsers */
.table-wrapper::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
  background: var(--neutral-100);
  border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb {
  background: var(--neutral-400);
  border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--neutral-500);
}

/* Firefox scrollbar */
.table-wrapper {
  scrollbar-width: thin;
  scrollbar-color: var(--neutral-400) var(--neutral-100);
}

/* Ensure tables inside wrapper have proper styling */
.table-wrapper table {
  margin-bottom: 0;
}

/* Fade effect at bottom when content overflows */
.table-wrapper {
  position: relative;
}

.table-wrapper::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(to top, rgba(255,255,255,1), rgba(255,255,255,0));
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.3s;
}

.table-wrapper.has-overflow::before {
  opacity: 1;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .table-wrapper {
    max-height: 400px;
  }
}

@media (max-width: 640px) {
  .table-wrapper {
    max-height: 350px;
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
} 

/* ===== STYLES MOVED FROM TRADERS.HTML INLINE STYLES ===== */

/* Header Bar Enhancement: adds top gradient line above breadcrumbs */
.header-bar {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.header-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.6), transparent);
}

/* Enhanced Table Styles for Trending Tokens */
.trending-table-container {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--neutral-200);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
}

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

.trending-table thead {
  background: var(--neutral-50);
  border-bottom: 1px solid var(--neutral-200);
}

.trending-table th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 600;
  color: var(--neutral-700);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trending-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--neutral-100);
}

.trending-table tbody tr:hover {
  background: var(--neutral-50);
  transition: background var(--duration-fast) var(--ease-out);
}

.trending-table tbody tr:last-child td {
  border-bottom: none;
}

/* Token Display */
.token-display {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.token-image {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--neutral-100);
}

.token-symbol {
  font-weight: 600;
  color: var(--neutral-900);
  font-size: 0.95rem;
}

/* Pressure Bar Styles */
.pressure-bar-container {
  display: flex;
  height: 24px;
  background: var(--neutral-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pressure-bar {
  height: 100%;
  transition: width var(--duration-normal) var(--ease-out);
}

.pressure-bar.buy {
  background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}

.pressure-bar.sell {
  background: linear-gradient(90deg, #ef4444 0%, #f87171 100%);
}

/* Value Display */
.value-display {
  font-weight: 600;
  color: var(--neutral-700);
  font-size: 0.9rem;
  font-feature-settings: 'tnum';
}

/* Enhanced Controls */
.trend-controls {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.control-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--neutral-700);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.control-select {
  padding: 0.625rem 1rem;
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-lg);
  background: white;
  font-size: 0.925rem;
  color: var(--neutral-900);
  min-width: 160px;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.control-select:hover {
  border-color: var(--primary-300);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.control-select:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Loading containers compatibility - now using abstract spinner system */
.central-loading {
  /* Container will be styled by abstract-spinner.js */
  display: flex;
}

.loading-spinner {
  /* Container will be styled by abstract-spinner.js */
  display: flex;
}

.trending-loading {
  /* Container will be styled by abstract-spinner.js */
  display: flex;
}

/* Mobile Optimizations - Tablet View */
@media (max-width: 768px) {
  .trending-table th,
  .trending-table td {
    padding: 0.75rem 1rem;
  }
  
  .trending-table th {
    font-size: 0.8rem;
  }
  
  .token-image {
    width: 28px;
    height: 28px;
  }
  
  .token-symbol {
    font-size: 0.875rem;
  }
  
  .pressure-bar-container {
    height: 20px;
  }
  
  .value-display {
    font-size: 0.85rem;
  }
  
  .trend-controls {
    gap: 1rem;
  }
  
  .control-select {
    min-width: 140px;
    font-size: 0.875rem;
    padding: 0.5rem 0.875rem;
  }
  
  /* Mobile loading adjustments */
  .trending-spinner {
    width: 40px;
    height: 40px;
  }
}

/* Mobile Optimizations - Phone View */
@media (max-width: 640px) {
  /* Make analytics dashboard full width on mobile */
  .analytics-dashboard {
    margin: 0 -1rem;
    padding: 1rem;
  }
  
  /* Adjust header for mobile */
  .header-bar {
    padding: 1rem;
  }
  
  .header-title h1 {
    font-size: 1.5rem;
  }
  
  .header-subtitle {
    font-size: 0.875rem;
  }
  
  /* Stack controls vertically */
  .trend-controls {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .control-group {
    width: 100%;
  }
  
  .control-select {
    width: 100%;
    min-width: unset;
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  /* Mobile table container */
  .trending-table-container {
    border-radius: var(--radius-lg);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
  }
  
  /* Mobile table styling */
  .trending-table {
    min-width: 500px; /* Force horizontal scroll if needed */
  }
  
  .trending-table th,
  .trending-table td {
    padding: 0.625rem 0.75rem;
  }
  
  .trending-table th {
    font-size: 0.75rem;
    letter-spacing: 0.03em;
  }
  
  .trending-table th:first-child {
    width: 120px;
  }
  
  .trending-table th:nth-child(2) {
    min-width: 200px;
  }
  
  .trending-table th:last-child {
    width: 100px;
  }
  
  /* Smaller token display */
  .token-display {
    gap: 0.5rem;
  }
  
  .token-image {
    width: 24px;
    height: 24px;
    border-width: 1px;
  }
  
  .token-symbol {
    font-size: 0.8rem;
  }
  
  /* Smaller pressure bars */
  .pressure-bar-container {
    height: 16px;
    border-radius: 8px;
  }
  
  /* Smaller values */
  .value-display {
    font-size: 0.75rem;
  }
  
  /* Mobile loading state */
  .trending-loading {
    padding: 3rem 2rem;
  }
  
  .trending-spinner {
    width: 40px;
    height: 40px;
    border-width: 3px;
  }
}

/* Extra small mobile (< 480px) */
@media (max-width: 480px) {
  /* Card-based layout for very small screens */
  @supports (display: flex) {
    .trending-table-container {
      overflow-x: visible;
    }
    
    .trending-table {
      min-width: unset;
    }
    
    .trending-table thead {
      display: none;
    }
    
    .trending-table tbody {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }
    
    .trending-table tr {
      display: flex;
      flex-direction: column;
      background: white;
      border: 1px solid var(--neutral-200);
      border-radius: var(--radius-lg);
      padding: 1rem;
      box-shadow: var(--shadow-xs);
    }
    
    .trending-table td {
      display: flex;
      padding: 0;
      border: none;
      margin-bottom: 0.75rem;
    }
    
    .trending-table td:last-child {
      margin-bottom: 0;
    }
    
    /* Token info at top */
    .trending-table td:first-child {
      margin-bottom: 1rem;
    }
    
    /* Full width pressure bar */
    .trending-table td:nth-child(2) {
      width: 100%;
    }
    
    .pressure-bar-container {
      width: 100% !important;
      height: 20px;
    }
    
    /* Value below pressure bar */
    .trending-table td:last-child {
      justify-content: center;
      font-size: 0.875rem;
      color: var(--neutral-600);
    }
  }
}

/* Ensure footer is mobile friendly */
@media (max-width: 640px) {
  .enterprise-footer {
    margin-top: 2rem;
  }
}

/* iOS specific fixes */
@supports (-webkit-touch-callout: none) {
  .control-select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 1.2em;
    padding-right: 2.5rem;
  }
}

/* Horizontal scroll indicator for mobile */
@media (max-width: 640px) and (min-width: 481px) {
  .trending-table-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.8));
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s;
  }
  
  .trending-table-container.scrolled-right::after {
    opacity: 0;
  }
}

/* All spinner styles now handled by abstract-spinner.js */

/* Ensure modal overlay above header */
.token-modal-overlay { z-index: 2000 !important; } 

/* ===== WALLET STATS (KPI) SECTION ===== */
.wallet-stats-section {
  margin-top: 1.5rem;
}

.wallet-stats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.wallet-stats-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--neutral-900);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wallet-stats-period {
  font-size: 0.75rem;
  color: var(--neutral-500);
  background: var(--neutral-100);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-weight: 500;
}

.wallet-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.wallet-stat-card {
  background: var(--surface-primary);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.wallet-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-500), var(--primary-400));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.wallet-stat-card:hover {
  border-color: var(--border-secondary);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.wallet-stat-card:hover::before {
  opacity: 1;
}

.stat-icon {
  width: 32px;
  height: 32px;
  background: var(--primary-50);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  color: var(--primary-600);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--neutral-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--neutral-900);
  line-height: 1;
}

/* Remove win rate color styling */
#winRate {
  color: var(--neutral-900) !important;
}

/* Special styling for different stat types */
.wallet-stat-card.volume .stat-icon {
  background: var(--success-50);
  color: var(--success-600);
}

.wallet-stat-card.transactions .stat-icon {
  background: var(--info-50);
  color: var(--info-600);
}

.wallet-stat-card.tokens .stat-icon {
  background: var(--warning-50);
  color: var(--warning-600);
}

/* Mobile optimization for stats */
@media (max-width: 768px) {
  .wallet-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .wallet-stat-card {
    padding: 1rem;
  }
  
  .stat-value {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .wallet-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== TWITTER PROFILE SECTION ===== */
.twitter-profile-section {
  background: linear-gradient(to bottom, var(--surface-primary), rgba(255, 255, 255, 0.95));
  border: 1px solid var(--border-primary);
  border-radius: 16px;
  padding: 1.75rem;
  margin-top: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.twitter-profile-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(29, 161, 242, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.twitter-profile-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
}

.twitter-profile-header svg {
  width: 22px;
  height: 22px;
  color: #000;
}

.twitter-profile-header h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--neutral-900);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.twitter-verified {
  margin-left: auto;
  width: 20px;
  height: 20px;
  color: #1DA1F2;
}

.twitter-profile-content {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  position: relative;
}

.twitter-pfp {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: var(--neutral-100);
  flex-shrink: 0;
}

.twitter-details {
  flex: 1;
  min-width: 0;
}

.twitter-name-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.twitter-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--neutral-900);
  line-height: 1.2;
}

.twitter-handle {
  font-size: 0.9375rem;
}

.twitter-handle a {
  color: var(--neutral-600);
  text-decoration: none;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.twitter-handle a:hover {
  color: #1DA1F2;
}

.twitter-handle svg {
  width: 14px;
  height: 14px;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.15s ease;
}

.twitter-handle a:hover svg {
  opacity: 1;
  transform: translateX(0);
}

.twitter-bio {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--neutral-700);
  margin: 0.75rem 0;
  max-width: 600px;
}

.twitter-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.twitter-stat {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.twitter-stat-label {
  font-size: 0.8125rem;
  color: var(--neutral-500);
  font-weight: 500;
}

.twitter-stat-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--neutral-900);
}

/* Empty state for missing Twitter data */
.twitter-empty {
  text-align: center;
  padding: 2rem;
  color: var(--neutral-500);
  font-size: 0.875rem;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
  .twitter-profile-section {
    padding: 1rem;
  }
  
  .twitter-profile-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .twitter-pfp {
    width: 80px;
    height: 80px;
  }
  
  .twitter-name-row {
    justify-content: center;
  }
  
  .twitter-stats {
    justify-content: center;
  }
  
  .twitter-bio {
    max-width: 100%;
  }
} 