/* Compound Interest Calculator - tool specific */
#ciFuture {
  color: #34d399;
}

#ciSentence {
  color: var(--text-muted);
}

.ci-table-card {
  padding-top: var(--spacing-md);
}

.ci-table-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 var(--spacing-sm);
  color: var(--text-secondary, var(--text-muted));
}

/* Uzun vadelerde tablo taşmasın: dikey kaydırma + yatay kaydırma (mobil) */
.ci-table-scroll {
  max-height: 320px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.ci-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  white-space: nowrap;
}

.ci-table th,
.ci-table td {
  padding: 0.55rem 0.7rem;
  text-align: right;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ci-table th:first-child,
.ci-table td:first-child {
  text-align: left;
}

.ci-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(20, 20, 30, 0.92);
  backdrop-filter: blur(8px);
  font-weight: 600;
  color: var(--text-muted);
}

.ci-table tbody tr:last-child td {
  border-bottom: none;
}

.ci-table .ci-earned { color: #fbbf24; }
.ci-table .ci-balance { color: #34d399; font-weight: 600; }

@media (max-width: 640px) {
  .ci-table {
    font-size: 0.82rem;
  }
  .ci-table th,
  .ci-table td {
    padding: 0.45rem 0.5rem;
  }
}

/* Tablo başlığı + periyot seçici (Aylık / 3 Aylık / Yıllık) */
.ci-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: var(--spacing-sm);
}

.ci-table-head .ci-table-title {
  margin: 0;
}

.ci-table-seg {
  flex: 0 0 auto;
  margin: 0;
}

.ci-table-seg .calc-seg-btn {
  flex: 0 0 auto;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

/* Vade girişi: input + Yıl/Ay birim seçici yan yana */
.ci-term-row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.ci-term-row .calc-input {
  flex: 1;
  min-width: 0;
}

.ci-term-seg {
  flex: 0 0 auto;
  margin: 0;
}

.ci-term-seg .calc-seg-btn {
  flex: 0 0 auto;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}
