/* 3D Earnings Page */
.earnings-3d .stat-grid-3d.earnings {
  grid-template-columns: repeat(3, 1fr);
}

.stat-card-3d.highlight {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(245, 158, 11, 0.3));
  border-color: var(--golden);
}

.breakdown-section-3d {
  margin: 2rem 0;
}

.breakdown-section-3d h3 {
  color: white;
  margin-bottom: 1rem;
}

.breakdown-bars-3d {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bar-row-3d {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bar-label {
  width: 120px;
  color: #9ca3af;
  font-size: 0.9rem;
}

.bar-container {
  flex: 1;
  height: 30px;
  background: rgba(26, 26, 46, 0.9);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 6px;
  overflow: hidden;
}

.bar-3d {
  height: 100%;
  border-radius: 6px;
  position: relative;
  transition: width 0.5s ease-out;
}

.bar-3d.subs { background: linear-gradient(90deg, var(--brain), #a78bfa); }
.bar-3d.purchases { background: linear-gradient(90deg, var(--golden), #fbbf24); }
.bar-3d.tips { background: linear-gradient(90deg, #10b981, #4ade80); }

.bar-glow {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 20px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
}

.bar-value {
  width: 80px;
  text-align: right;
  color: white;
  font-weight: bold;
}

.tier-table-section {
  margin: 2rem 0;
}

.tier-table-section h3 {
  color: white;
  margin-bottom: 1rem;
}

.table-3d {
  background: rgba(26, 26, 46, 0.9);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  overflow: hidden;
}

.spec-table-3d {
  width: 100%;
  border-collapse: collapse;
}

.spec-table-3d th {
  background: rgba(139, 92, 246, 0.2);
  color: var(--brain);
  padding: 1rem;
  text-align: left;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.spec-table-3d td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
  color: #d1d5db;
}

.spec-table-3d tr.current-tier {
  background: rgba(245, 158, 11, 0.1);
}

.spec-table-3d tr.current-tier td {
  color: white;
}

.tier-badge-sm {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  text-transform: capitalize;
}

.tier-badge-sm.neuron { background: #6b728020; color: #9ca3af; }
.tier-badge-sm.synapse { background: #3b82f620; color: #3b82f6; }
.tier-badge-sm.cortex { background: #8b5cf620; color: #8b5cf6; }
.tier-badge-sm.genius { background: #f59e0b20; color: var(--golden); }
.tier-badge-sm.galaxy_brain { background: #ec489920; color: #ec4899; }

.keep-col {
  color: #4ade80 !important;
  font-weight: bold;
}

.kappa-section-3d {
  margin-top: 2rem;
}

.kappa-section-3d h3 {
  color: white;
  margin-bottom: 1rem;
}

.kappa-display-3d {
  background: rgba(26, 26, 46, 0.9);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
}

.kappa-gauge {
  position: relative;
  height: 20px;
  background: rgba(26, 26, 46, 0.9);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 10px;
  overflow: visible;
  margin-bottom: 1.5rem;
}

.gauge-fill {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, var(--kappa-color, #4ade80));
  border-radius: 10px;
}

.gauge-marker {
  position: absolute;
  top: -8px;
  width: 4px;
  height: 36px;
  border-radius: 2px;
  transform: translateX(-50%);
}

.gauge-marker.optimal {
  background: var(--golden);
}

.gauge-marker.current {
  background: var(--kappa-color, #4ade80);
}

.kappa-values {
  display: flex;
  justify-content: space-around;
  margin-bottom: 1rem;
}

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

.kappa-item .kappa-label {
  display: block;
  color: #9ca3af;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.kappa-item .kappa-val {
  font-family: 'Fira Code', monospace;
  font-size: 1.1rem;
  font-weight: bold;
}

.kappa-item .kappa-val.golden {
  color: var(--golden);
}

.kappa-status {
  text-align: center;
  padding: 0.75rem;
  border-radius: 8px;
}

.kappa-status.optimal {
  background: rgba(245, 158, 11, 0.1);
  color: var(--golden);
}

.kappa-status.adjust {
  background: rgba(139, 92, 246, 0.1);
  color: var(--brain);
}

