/* ==========================================================================
   FİNANS PANELİ (finance.js) — Kadro Çim Sahası Arkaplanı & Zümrüt Finans Kartları
   ========================================================================== */
.finance-fullview {
  width: 100%;
  min-height: 100%;
  padding: 20px 24px 80px 24px;
  overflow-y: auto;
  box-sizing: border-box;
  background: 
    radial-gradient(ellipse at 50% 15%, rgba(34, 197, 94, 0.35) 0%, rgba(4, 30, 15, 0.98) 100%),
    repeating-linear-gradient(
      90deg,
      #166534 0px,
      #166534 50px,
      #14532d 50px,
      #14532d 100px
    );
  background-size: 100% 100%;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.85);
}
.fin-page {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 26px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.92);
  border: 1.5px solid rgba(74, 222, 128, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.fin-kicker {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #4ade80;
}
.fin-title {
  margin: 2px 0;
  font-family: 'Rajdhani', sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: #ffffff;
}
.fin-sub {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #bbf7d0;
}
.fin-hero-season-tag {
  display: flex;
  align-items: center;
}
.fh-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.4);
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #4ade80;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* ---- KPIs (4 Cards Layout) */
.fin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 900px) {
  .fin-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.fin-kpi {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.92);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  min-width: 0;
  transition: all 0.15s ease;
}
.fin-kpi:hover {
  transform: translateY(-2px);
  border-color: rgba(74, 222, 128, 0.4);
}
.fin-kpi-icon {
  flex-shrink: 0;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fin-kpi-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
}
.fin-kpi-value {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
}
.fin-kpi-sub {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
}
.pos {
  color: #4ade80;
}
.neg {
  color: #f87171;
}

/* ---- cards */
.fin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 1024px) {
  .fin-grid {
    grid-template-columns: 1fr;
  }
}
.fin-card {
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.92);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
}
.fin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.fin-card-head h3 {
  margin: 0;
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
}
.fin-card-head span {
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
}

/* ---- Chart Toggle Buttons (Para / Token) */
.fin-chart-toggle {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.fin-toggle-btn {
  border: none;
  border-radius: 8px;
  padding: 5px 12px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #94a3b8;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}
.fin-toggle-btn:hover {
  color: #ffffff;
}
.fin-toggle-btn.active {
  color: #052e16;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
}

/* ---- Sezonluk Para Akışı Özeti */
.fin-season-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.fin-summary-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.fsb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fsb-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 900;
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fsb-net {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 900;
}
.fsb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 700;
}
.fsb-row span {
  color: #94a3b8;
}
.fsb-row strong {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  color: #f8fafc;
}
.fsb-bar-wrap {
  width: 100%;
  height: 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.6);
  overflow: hidden;
  display: flex;
  margin-top: 4px;
}
.fsb-bar-in {
  background: linear-gradient(90deg, #22c55e, #4ade80);
  height: 100%;
}
.fsb-bar-out {
  background: linear-gradient(90deg, #ef4444, #f87171);
  height: 100%;
}

/* ---- Çizgi Grafik (SVG Line Chart) */
.fin-line-chart-container {
  flex: 1;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.fin-svg-chart {
  width: 100%;
  height: 220px;
  overflow: visible;
}
.fin-chart-grid-line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-dasharray: 4 4;
}
.fin-chart-axis-label {
  fill: #64748b;
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
}
.fin-chart-line-income {
  fill: none;
  stroke: #4ade80;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(74, 222, 128, 0.45));
}
.fin-chart-line-expense {
  fill: none;
  stroke: #f87171;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(248, 113, 113, 0.45));
}
.fin-chart-area-income {
  fill: url(#incomeGradient);
  opacity: 0.25;
}
.fin-chart-area-expense {
  fill: url(#expenseGradient);
  opacity: 0.20;
}
.fin-chart-dot {
  cursor: pointer;
  transition: r 0.15s ease;
}
.fin-chart-dot:hover {
  r: 6;
}
.fin-chart-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 800;
  font-family: 'Rajdhani', sans-serif;
}
.fcl-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
}
.fcl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.fcl-dot.inc { background: #4ade80; box-shadow: 0 0 6px #4ade80; }
.fcl-dot.exp { background: #f87171; box-shadow: 0 0 6px #f87171; }

/* ---- categories + recent */
.fin-cats,
.fin-recent {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fin-cat,
.fin-row {
  display: grid;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
  transition: all 0.15s ease;
}
.fin-cat:hover,
.fin-row:hover {
  background: rgba(51, 65, 85, 0.85);
  border-color: rgba(74, 222, 128, 0.35);
}
.fin-cat {
  grid-template-columns: 1fr auto auto;
}
.fin-cat-val {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  text-align: right;
  min-width: 70px;
}
.fin-row {
  grid-template-columns: 110px 1fr auto 150px;
}
.fin-row-time {
  color: #94a3b8;
  font-size: 13px;
}
.fin-row-amount {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fin-row-balance {
  text-align: right;
  font-size: 12.5px;
  color: #94a3b8;
}
