.investments-container {
  padding: 1rem 0;
  animation: fadeIn 0.4s ease-out;
}

/* ── HEADER & TOTAL ── */
.investments-header {
  margin-bottom: 2rem;
  padding: 0 4px;
}

.header-info h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.header-info .subtitle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.total-badge {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 20px;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.total-badge .label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
}

.total-badge .value {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

/* ── STATS CARDS ── */
.inv-stats-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 2rem;
}

.inv-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}

.card-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.card-value {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: right;
}

.card-value.gain {
  color: var(--accent);
}

.card-footer {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #555;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.03);
  display: flex;
  justify-content: space-between;
}

/* ── PROGRESS & PROJECTION ── */
.inv-chart-container {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 20px;
  margin-bottom: 2rem;
}

.inv-chart-container h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.progress-track {
  height: 6px;
  background: var(--bg);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px var(--accent);
}

.progress-markers {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
}

/* ── DETAILS LIST ── */
.inv-details-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.detail-value {
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.detail-value.highlight {
  color: var(--accent);
}

/* ── ACTIONS ── */
.inv-actions {
  display: flex;
  justify-content: center;
  padding-top: 1rem;
}

#btn-update-inv {
  width: 100%;
  padding: 14px;
  font-size: 0.85rem;
}
