:root {
  --primary-bg: #000000;
  --secondary-bg: #111111;
  --accent-bg: #1a1a1a;
  --card-bg: rgba(255, 255, 255, 0.02);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --text-primary: rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.4);
  --accent-blue: #007aff;
  --accent-purple: #5856d6;
  --accent-green: #30d158;
  --accent-orange: #ff9500;
  --gradient-1: linear-gradient(135deg, #007aff 0%, #5856d6 100%);
  --gradient-2: linear-gradient(135deg, rgba(120, 119, 198, 0.1) 0%, rgba(255, 255, 255, 0.01) 100%);
  --blur: blur(20px);
  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.2);
  --shadow-heavy: 0 16px 64px rgba(0, 0, 0, 0.4);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--primary-bg);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Animated background */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: radial-gradient(ellipse at top, rgba(120, 119, 198, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at bottom, rgba(255, 149, 0, 0.06) 0%, transparent 50%);
}

.background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 149, 0, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(0, 122, 255, 0.03) 0%, transparent 50%);
  animation: backgroundFloat 20s ease-in-out infinite;
}

@keyframes backgroundFloat {
  0%, 100% { opacity: 0.3; transform: translateY(0px) rotate(0deg); }
  33% { opacity: 0.5; transform: translateY(-10px) rotate(1deg); }
  66% { opacity: 0.4; transform: translateY(5px) rotate(-1deg); }
}

/* Grid pattern */
.grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.02;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 40s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* Main container */
.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

/* Hero section */
.hero {
  text-align: center;
  max-width: 800px;
  margin-bottom: 2rem;
  animation: heroFadeIn 1s ease-out;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.logo {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 900;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  padding-bottom: 0.1em;
}

.tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.subtitle {
  font-size: clamp(0.875rem, 2vw, 1rem);
  color: var(--text-muted);
  font-weight: 300;
}

/* Search section */
.search-section {
  width: 100%;
  max-width: 600px;
  position: relative;
  animation: searchFadeIn 1s ease-out 0.2s both;
}

@keyframes searchFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Search container removed - search input and button now direct children of form */

.search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  border-bottom: none;
  outline: none;
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.4;
  resize: none;
  font-family: inherit;
  min-height: 45px;
  margin: 0;
  padding: 0.75rem;
  text-align: center;
  display: block;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-input:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-heavy);
}

.search-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(88, 86, 214, 0.1), var(--shadow-heavy);
}

.search-input::placeholder {
  color: var(--text-muted);
  font-weight: 300;
}

.search-input:focus::placeholder {
  opacity: 0.5;
}

.search-button {
  width: 100%;
  background: var(--gradient-1);
  border: none;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  letter-spacing: -0.01em;
  margin-top: 0;
}

.search-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.search-button:hover::before {
  left: 100%;
}

.search-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(0, 122, 255, 0.3);
}

.search-button:active {
  transform: translateY(0);
}

.search-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Loading overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: var(--blur);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.loading-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.loader-animation {
  width: 80px;
  height: 80px;
  position: relative;
}

.loader-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(0, 122, 255, 0.2);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.loader-ring:nth-child(1) {
  animation-delay: 0s;
}

.loader-ring:nth-child(2) {
  animation-delay: 0.4s;
}

.loader-ring:nth-child(3) {
  animation-delay: 0.8s;
}

@keyframes pulse {
  0% {
    transform: scale(0);
    opacity: 1;
    border-color: var(--accent-blue);
  }
  100% {
    transform: scale(1);
    opacity: 0;
    border-color: var(--accent-purple);
  }
}

.loader-text {
  color: var(--text-secondary);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Results section */
.results {
  width: 100%;
  max-width: 1400px;
  margin-top: 4rem;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.results.visible {
  opacity: 1;
  transform: translateY(0);
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.csv-button {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: none;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.csv-button:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.csv-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.results-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.clear-button {
  background: var(--accent-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.clear-button:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.results-section {
  background: var(--card-bg);
  backdrop-filter: var(--blur);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.section-header {
  padding: 1rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.beta-label {
  font-size: 0.75rem;
  color: var(--accent-orange);
  font-weight: 500;
  margin-left: 0.5rem;
  opacity: 0.8;
  text-transform: uppercase;
}

.source-link {
  margin-left: 0.5rem;
  color: var(--accent-blue);
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.source-link:hover {
  opacity: 1;
}

.table-container {
  overflow-x: auto;
}

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

thead th {
  background: var(--accent-bg);
  padding: 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
}

tbody tr {
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.2s ease;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

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

tbody td {
  padding: 1rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
  vertical-align: top;
  word-wrap: break-word;
  word-break: break-word;
  max-width: 300px;
}

.company-name {
  color: var(--text-primary);
  font-weight: 600;
}

.fund-name {
  color: var(--text-primary);
  font-weight: 600;
}

.category-badge {
  display: inline-block;
  background: rgba(0, 122, 255, 0.1);
  color: var(--accent-blue);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.website-link {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.website-link:hover {
  color: var(--accent-purple);
}

.funding {
  font-weight: 500;
}

.funding.available {
  color: var(--accent-green);
}

.funding.na {
  color: var(--text-muted);
  font-style: italic;
}

/* Overview Section Table Styles - Optimized column widths */
#overviewSection table {
  table-layout: fixed;
  width: 100%;
}

#overviewSection table td:first-child {
  width: 180px; /* Fixed width to accommodate "Recent Breakthroughs" + padding */
  font-weight: normal;
  color: var(--text-primary);
  white-space: nowrap;
  padding-right: 1rem;
  vertical-align: top;
}

#overviewSection table td:last-child {
  width: calc(100% - 180px); /* Take remaining space */
  padding-left: 0.75rem;
  vertical-align: top;
  color: var(--text-secondary);
  font-weight: normal;
}

/* Funds Table Column Widths - Optimized spacing */
#fundsTable {
  table-layout: fixed;
  width: 100%;
}

#fundsTable th:nth-child(1),
#fundsTable td:nth-child(1) {
  width: 20%; /* Fund name - narrow left */
}

#fundsTable th:nth-child(2),
#fundsTable td:nth-child(2) {
  width: 60%; /* Focus area - wide middle */
}

#fundsTable th:nth-child(3),
#fundsTable td:nth-child(3) {
  width: 20%; /* Headquarters - narrow right */
}

/* CAGR Section Styles */
.cagr-section {
  margin: 0.75rem 0;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

.cagr-container {
  text-align: center;
  padding: 0.5rem 0;
}

.cagr-value-wrapper {
  display: flex;
  justify-content: center;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.cagr-value {
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--accent-green);
  line-height: 1;
  text-shadow: 0 0 20px rgba(48, 209, 88, 0.3);
  position: relative;
  letter-spacing: -0.05em;
  cursor: pointer;
  transition: transform 0.2s ease, text-shadow 0.2s ease;
}

.cagr-value:hover {
  transform: scale(1.05);
  text-shadow: 0 0 30px rgba(48, 209, 88, 0.5);
}

.number-container {
  display: inline-block;
  text-align: center;
  position: relative;
}

.range-number {
  display: inline-block;
}

.range-dash {
  display: inline-block;
  position: relative;
  margin: 0 -0.05em;
}

.percent-sign {
  display: inline;
  font-size: 0.8em;
  margin-left: 0;
  position: relative;
  top: -0.1em;
}

.cagr-label {
  font-size: 1.2rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.cagr-sublabel {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: 0.05em;
}

/* Cache Toggle Button */
.cache-toggle-container {
  margin-bottom: 1rem;
  padding-top: 0;
  display: flex;
  justify-content: center;
}

.cache-toggle-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.cache-toggle-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(0, 122, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

.cache-toggle-button:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.cache-toggle-button:active {
  transform: translateY(0) scale(0.98);
}

.cache-toggle-button:active::before {
  width: 200px;
  height: 200px;
}

/* Disabled state (cache is disabled) */
.cache-toggle-button.disabled {
  background: rgba(255, 59, 48, 0.1);
  border-color: rgba(255, 59, 48, 0.3);
  color: #ff453a;
}

.cache-toggle-button.disabled:hover {
  background: rgba(255, 59, 48, 0.15);
  border-color: rgba(255, 59, 48, 0.4);
}

.cache-toggle-button.disabled::before {
  background: rgba(255, 59, 48, 0.1);
}

.cache-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.cache-toggle-button:hover .cache-icon {
  transform: rotate(15deg) scale(1.1);
}

.cache-toggle-button.disabled .cache-icon {
  transform: rotate(180deg);
}

.cache-button-text {
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.01em;
}

/* Error message */
.error-message {
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.2);
  color: #ff453a;
  padding: 1rem;
  border-radius: 12px;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .hero {
    margin-bottom: 3rem;
  }

  /* search-container removed */

  .results-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  table {
    font-size: 0.75rem;
  }

  thead th,
  tbody td {
    padding: 0.75rem 0.5rem;
  }
}

/* News Ticker */
.news-ticker {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  margin-bottom: 2rem;
  overflow: hidden;
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow-subtle);
}

.news-ticker-header {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.news-icon {
  font-size: 1.1rem;
}

.news-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-ticker-container {
  height: 200px; /* Increased to accommodate tallest cards */
  overflow: hidden;
  position: relative;
  background: transparent;
  padding: 0.75rem 0;
}

.news-ticker-track {
  display: flex;
  align-items: center; /* Center align since all cards are same height */
  height: 100%;
  /* Animation handled by JavaScript for seamless looping */
  padding: 0 1.5rem;
  gap: 1.25rem;
}

.news-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 220px;
  height: 160px; /* Default height, overridden by JS */
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(10px);
  flex-shrink: 0;
  align-self: flex-end; /* Align to bottom of container */
}

/* Uniform sizing - all cards use the same height */
.news-item.uniform-size .news-item-title {
  -webkit-line-clamp: var(--line-clamp, 4);
  line-clamp: var(--line-clamp, 4);
  max-height: calc(var(--line-clamp, 4) * 1.25em);
}

.news-item:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.news-item-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.news-item-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  white-space: normal;
  margin-bottom: 1rem;
  flex: 1;
  max-height: 4.5em;
}

.news-item-meta {
  font-size: 0.6875rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: flex-start;
  margin-top: auto;
}

.news-item-date {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.news-item-source {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* News item types */
.news-item.company {
  border-left: 3px solid var(--accent-blue);
}

.news-item.external {
  border-left: 3px solid var(--accent-blue);
}

/* Scrolling animation - seamless loop */
@keyframes scroll-news-smooth {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Hover pause now handled by JavaScript */

/* Empty state */
.news-ticker.empty .news-ticker-track {
  justify-content: center;
  animation: none;
}

.news-ticker.empty::after {
  content: "No recent news found";
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
  padding: 1rem;
}

/* Responsive news ticker */
@media (max-width: 768px) {
  .news-ticker-track {
    animation-duration: 40s; /* Faster on mobile */
  }
  
  .news-item {
    margin-right: 2rem;
    padding: 0.375rem 0.75rem;
  }
  
  .news-item-title {
    font-size: 0.8125rem;
    max-width: 250px;
  }
  
  .news-item-meta {
    font-size: 0.6875rem;
  }
}

/* Mode Toggle */
.mode-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: var(--blur);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 6px;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-subtle);
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  overflow: hidden;
}

.toggle-button {
  flex: 1;
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 0;
  cursor: pointer;
  border-radius: 12px;
  transition: color 0.25s ease;
}

.toggle-button.active {
  color: var(--text-primary);
}

.toggle-highlight {
  position: absolute;
  top: 6px;
  left: 6px;
  width: calc(50% - 6px);
  height: calc(100% - 12px);
  background: var(--gradient-1);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(88, 86, 214, 0.4);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 0;
  will-change: transform;
}

.beta {
  font-size: 0.8rem;
  margin-left: 4px;
  color: var(--accent-orange);
}

/* Hidden by default */
.hidden {
  display: none !important;
}

/* Companies loading state */
.companies-loading-container {
  padding: 3rem 2rem;
  text-align: center;
  background: var(--card-bg);
  border-radius: 12px;
  margin: 2rem 0;
}

.companies-loading-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.companies-loading-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Companies error state */
.companies-error-container {
  padding: 3rem 2rem;
  text-align: center;
  background: var(--card-bg);
  border-radius: 12px;
  margin: 2rem 0;
}

.companies-error-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.companies-error-message {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.retry-button {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
  border: none;
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(88, 86, 214, 0.3);
}

.retry-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(88, 86, 214, 0.4);
}

.retry-button:active {
  transform: translateY(0);
}

.retry-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Fund investments loading animation */
.loading-investments {
  color: var(--accent-blue);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.fund-investments {
  min-width: 200px;
}