/* ==========================================================================
   GLASS SIDEBAR
   ========================================================================== */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 24px 18px;
  background: var(--glass-sidebar);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-right: 1px solid var(--border-glass);
  box-shadow: 10px 0 35px var(--shadow-ambient);
  z-index: 50;
}

.sidebar .brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3) var(--space-5);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-glass);
  font-size: var(--text-xl);
  font-weight: var(--font-extrabold);
  letter-spacing: 0.08em;
  color: var(--text-pure);
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-emerald));
  box-shadow: 0 0 16px var(--tint-cyan-strong);
  color: var(--text-pure);
  font-size: 18px;
}

.brand small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--neon-cyan);
}

/* Sidebar Navigation Groups */
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.sidebar nav a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: all var(--speed-base) var(--ease-glass);
}

.sidebar nav a:hover {
  background: var(--tint-white);
  color: var(--text-pure);
  border-color: var(--border-glass);
  transform: translateX(3px);
}

.sidebar nav a.active {
  background: linear-gradient(90deg, var(--tint-cyan), var(--tint-emerald));
  color: var(--text-pure);
  border: 1px solid var(--tint-cyan-strong);
  box-shadow: 0 4px 15px var(--tint-cyan);
}

.sidebar nav a .nav-icon {
  font-size: 15px;
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-glass);
}

.logout {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 11px 14px;
  border-radius: var(--radius-md);
  background: var(--tint-rose);
  border: 1px solid var(--tint-rose-strong);
  color: var(--neon-rose);
  font-family: inherit;
  font-size: 13px;
  font-weight: var(--font-bold);
  cursor: pointer;
  transition: all var(--speed-base) var(--ease-glass);
}

.logout:hover {
  background: var(--tint-rose-strong);
  border-color: var(--tint-rose-strong);
  color: var(--text-pure);
  transform: translateY(-1px);
}

/* ==========================================================================
   PANEL AREA & GLASS TOPBAR
   ========================================================================== */
.panel-area {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.panel-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-4) var(--space-10);
  background: var(--glass-topbar);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 4px 20px var(--shadow-ambient);
}

.crumb-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.lang-picker-wrap {
  position: relative;
}

.crumb-wrap .highlight {
  color: var(--neon-cyan);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 7px var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--glass-card);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-family: inherit;
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--speed-fast) var(--ease-glass);
}

.lang-btn:hover {
  background: var(--glass-card-hover);
  border-color: var(--border-glass-light);
  color: var(--text-pure);
}

.lang-menu {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  min-width: 176px;
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-2);
  background: var(--glass-modal);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--border-glass-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glass);
  z-index: 60;
}

.lang-menu.show {
  display: flex;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 9px var(--space-3);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--speed-fast) var(--ease-glass);
}

.lang-option:hover {
  background: var(--tint-white);
  color: var(--text-pure);
}

.lang-option.active {
  background: var(--tint-cyan);
  color: var(--neon-cyan);
}

.currency-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--tint-white);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  font-size: 11.5px;
  font-weight: var(--font-bold);
  color: var(--text-muted);
}

.currency-ticker .tcmb-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-emerald);
  box-shadow: 0 0 8px var(--neon-emerald);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--tint-white-strong);
  border: 1px solid var(--border-glass-light);
  font-size: 13px;
  font-weight: var(--font-bold);
  color: var(--text-pure);
  box-shadow: var(--glass-shine);
}

.user-avatar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-emerald);
  box-shadow: 0 0 10px var(--neon-emerald);
}

/* Tema anahtarı — tek simge, döngüdeki sonraki paleti gösterir.
   theme-toggle.js .theme-icon-next içeriğini günceller; sun/moon span'leri
   JS'siz durum için işaretlemede kalır, CSS ile gizlenir. */
.theme-toggle-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-glass-light);
  background: var(--tint-white-strong);
  color: var(--text-main);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition:
    background var(--speed-fast) var(--ease-glass),
    border-color var(--speed-fast) var(--ease-glass),
    box-shadow var(--speed-fast) var(--ease-glass),
    transform var(--speed-fast) var(--ease-glass);
}

.theme-toggle-btn:hover {
  border-color: var(--border-glass-focus);
  box-shadow: var(--shadow-glow-cyan);
  transform: translateY(-1px);
}

.theme-toggle-btn:active {
  transform: translateY(0);
}

.theme-toggle-btn:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

.theme-icon-sun,
.theme-icon-moon {
  display: none;
}

/* Palet seçici swatch grubu — döngü yerine doğrudan geçiş. Her swatch
   kendi paletinin bg+accent ikilisini style attr'ındaki --swatch-*
   değişkenlerinden alır; aktif palet halkayla işaretlenir. */
.theme-swatches {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-glass-light);
  background: var(--tint-white-strong);
}

.theme-swatch {
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(255, 255, 255, 0.55);
  background:
    radial-gradient(circle at 30% 30%, var(--swatch-accent) 0%, var(--swatch-accent) 38%, var(--swatch-bg) 46%, var(--swatch-bg) 100%);
  cursor: pointer;
  transition:
    transform var(--speed-fast) var(--ease-glass),
    box-shadow var(--speed-fast) var(--ease-glass),
    border-color var(--speed-fast) var(--ease-glass);
}

.theme-swatch:hover {
  transform: translateY(-1px) scale(1.08);
  box-shadow: var(--shadow-glow-cyan);
}

.theme-swatch:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

.theme-swatch.active {
  border-color: var(--accent-solid);
  box-shadow:
    0 0 0 2px var(--accent-solid),
    var(--shadow-glow-cyan);
}

/* Auto swatch: saat simgeli, gündüz-gece geçişini ima eden zemin */
.theme-swatch-auto {
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  line-height: 1;
}

.theme-swatch[aria-pressed='true']:not(.active) {
  border-color: rgba(255, 255, 255, 0.8);
}

/* ====================================================================
   Segmented tema seçici: Koyu / Aydınlık / Otomatik
   Header'da kompakt, tek satır, üç seçenekli radyo grubu.
   ==================================================================== */
.theme-seg {
  display: inline-flex;
  align-items: center;
  background: var(--glass-card);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}

.theme-seg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.theme-seg-btn:hover {
  background: color-mix(in oklab, var(--text-muted) 10%, transparent);
  color: var(--text-main);
}

.theme-seg-btn:active {
  transform: scale(0.92);
}

.theme-seg-btn:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 1px;
}

.theme-seg-btn.active {
  background: var(--accent-solid);
  color: var(--color-white, #fff);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

html.dark .theme-seg-btn.active {
  box-shadow: 0 0 12px color-mix(in oklab, var(--accent-solid) 35%, transparent);
}

/* Tooltip: hover'da açık label göster */
.theme-seg-btn::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  background: var(--text-main);
  color: var(--glass-card);
  border-radius: 5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 10;
}

.theme-seg-btn:hover::after {
  opacity: 1;
}

@media (max-width: 640px) {
  .theme-seg {
    padding: 2px;
    border-radius: 8px;
  }
  .theme-seg-btn {
    width: 30px;
    height: 28px;
    font-size: 13px;
  }
  .theme-seg-btn::after {
    display: none;
  }
}

/* Ayarlar > Görünüm & Tema: büyük palet kartları. .theme-swatch sınıfını
   taşır (paintUI aktif halkası ve tıklama delegasyonu için) ama kart düzeni
   swatch topbar boyutlarını ezmez. */
.theme-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.theme-card {
  width: auto;
  height: auto;
  min-height: 108px;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass-light);
  background:
    linear-gradient(135deg, var(--swatch-accent) 0%, var(--swatch-accent) 4%, transparent 42%),
    var(--glass-card);
  color: var(--text-main);
  cursor: pointer;
  transition:
    transform var(--speed-fast) var(--ease-glass),
    box-shadow var(--speed-fast) var(--ease-glass),
    border-color var(--speed-fast) var(--ease-glass);
}

.theme-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-cyan);
}

.theme-card:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

.theme-card.active {
  border-color: var(--accent-solid);
  box-shadow:
    0 0 0 2px var(--accent-solid),
    var(--shadow-glow-cyan);
}

.theme-card-swatch {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(255, 255, 255, 0.55);
  background:
    radial-gradient(circle at 30% 30%, var(--swatch-accent) 0%, var(--swatch-accent) 38%, var(--swatch-bg) 46%, var(--swatch-bg) 100%);
}

.theme-card-icon { font-size: 24px; line-height: 1; }

.theme-card-name {
  font-weight: var(--font-semibold);
  color: var(--text-main);
}

.theme-card-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Auto kartı: saat simgeli, gündüz-gece geçişini ima eden zemin */
.theme-card-auto {
  background:
    linear-gradient(135deg, rgba(148, 163, 184, 0.35) 0%, rgba(148, 163, 184, 0.08) 42%),
    var(--glass-card);
}

/* Dashboard 14 günlük trend modalı — kart tıklamasıyla açılır.
   Tüm renkler token dilinde; overlay paletin scrim-deep değerini kullanır. */
.chart-modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  background: var(--scrim-veil);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  z-index: 90;
}

.chart-modal-overlay[hidden] { display: none; }

body.modal-open { overflow: hidden; }

.chart-modal {
  width: min(760px, 100%);
  max-height: min(86vh, 720px);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-glass-light);
  background: var(--glass-modal);
  box-shadow: var(--shadow-glass);
}

.chart-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}

.chart-modal-head h2 {
  margin: 0;
  font-size: var(--text-xl);
  color: var(--text-pure);
}

.chart-modal-sub {
  margin: 4px 0 0;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.chart-modal-sub .delta-up { color: var(--neon-emerald); font-weight: var(--font-bold); }
.chart-modal-sub .delta-down { color: var(--neon-rose); font-weight: var(--font-bold); }
.chart-modal-sub .delta-flat { color: var(--text-muted); font-weight: var(--font-medium); }

.chart-modal-close {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-glass-light);
  background: var(--fill-subtle);
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--speed-fast) var(--ease-glass);
}

.chart-modal-close:hover {
  background: var(--tint-cyan);
  color: var(--neon-cyan);
}

.chart-series-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.chart-tab {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-glass-light);
  background: var(--fill-subtle);
  color: var(--text-main);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  cursor: pointer;
  transition: all var(--speed-fast) var(--ease-glass);
}

.chart-tab:hover { border-color: var(--tint-cyan-strong); }

.chart-tab.active {
  background: var(--tint-cyan);
  color: var(--neon-cyan);
  border-color: var(--tint-cyan-strong);
}

.chart-host { min-height: 220px; }

/* Aralık seçici: 7 / 14 / 30 günlük görünüm butonları */
.chart-range-picker {
  display: flex;
  gap: var(--space-1);
  margin-top: var(--space-2);
}

.range-btn {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-glass-light);
  background: var(--fill-subtle);
  color: var(--text-muted);
  font-size: var(--text-2xs);
  font-weight: var(--font-semibold);
  cursor: pointer;
  transition: all var(--speed-fast) var(--ease-glass);
  font-family: var(--font-mono);
}

.range-btn:hover { border-color: var(--tint-cyan-strong); color: var(--text-main); }

.range-btn.active {
  background: var(--tint-cyan);
  color: var(--neon-cyan);
  border-color: var(--tint-cyan-strong);
}

.trend-svg { width: 100%; height: auto; display: block; }

.trend-grid {
  stroke: var(--line-soft);
  stroke-width: 1;
}

.trend-axis {
  fill: var(--text-muted);
  font-size: 10px;
  font-family: var(--font-mono);
}

.trend-area {
  fill: var(--tint-cyan);
  stroke: none;
}

.trend-line {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trend-dot {
  fill: var(--glass-card);
  stroke-width: 1.6;
}

.trend-dot.active {
  r: 4.6;
}

/* Çoklu seri legend satırı */
.trend-legend text {
  font-size: 10px;
  fill: var(--text-muted);
  font-family: var(--font-mono);
}

.trend-hit { cursor: crosshair; }

.trend-guide {
  stroke: var(--line-contrast);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  pointer-events: none;
}

.trend-tip-box {
  fill: var(--glass-modal);
  stroke: var(--border-glass-light);
}

.trend-tip-text {
  fill: var(--text-pure);
  font-size: 11px;
  font-weight: var(--font-semibold);
  font-family: var(--font-mono);
}

.chart-modal-foot {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ==========================================================================
   MAIN CONTENT & WELCOME BANNER
   ========================================================================== */
.panel-content {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 32px 40px 80px !important;
  box-sizing: border-box !important;
}

.welcome {
  position: relative;
  overflow: hidden;
  padding: var(--space-8) var(--space-10);
  border-radius: var(--radius-2xl);
  background: var(--welcome-gradient);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--tint-cyan-strong);
  box-shadow: var(--shadow-glass), var(--glass-shine);
  margin-bottom: var(--space-7);
}

.welcome::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--tint-cyan-strong), transparent 70%);
  pointer-events: none;
}

.welcome .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-2xs);
  font-weight: var(--font-extrabold);
  letter-spacing: var(--tracking-caps);
  color: var(--neon-cyan);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.welcome h1 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: var(--font-extrabold);
  letter-spacing: var(--tracking-tight);
  color: var(--text-pure);
  margin-bottom: var(--space-3);
  line-height: 1.15;
}

.welcome p {
  color: var(--text-soft);
  font-size: var(--text-md);
  max-width: 680px;
  line-height: 1.6;
}

/* Dashboard son güncelleme zaman damgası */
.dashboard-last-updated {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  margin-bottom: var(--space-3);
  font-size: var(--text-2xs);
  font-weight: var(--font-medium);
  color: var(--text-muted);
  font-family: var(--font-mono);
  border-radius: var(--radius-pill);
  background: var(--fill-whisper);
  border: 1px solid var(--line-faint);
  transition: all var(--speed-fast) var(--ease-glass);
  user-select: none;
}

.dashboard-last-updated:hover {
  color: var(--neon-cyan);
  border-color: var(--tint-cyan-strong);
  background: var(--tint-cyan);
}

.dashboard-last-updated:active {
  transform: scale(0.97);
}

/* ==========================================================================
   METRIC CARDS (GLASSMORPHIC STATS)
   ========================================================================== */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-7);
}

.metric {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  background: var(--glass-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-card), var(--glass-shine);
  transition: all var(--speed-base) var(--ease-glass);
}

.metric::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--neon-cyan), var(--neon-emerald));
  opacity: 0;
  transition: opacity var(--speed-base) var(--ease-glass);
}

.metric:hover {
  background: var(--glass-card-hover);
  border-color: var(--border-glass-light);
  transform: translateY(-3px);
  box-shadow: var(--table-shadow), 0 0 20px var(--tint-cyan);
}

.metric:hover::before {
  opacity: 1;
}

.metric span {
  font-size: var(--text-xs);
  font-weight: var(--font-extrabold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.metric strong {
  font-size: var(--text-3xl);
  font-weight: var(--font-extrabold);
  letter-spacing: var(--tracking-tight);
  color: var(--text-pure);
  line-height: 1;
}

.metric small {
  font-size: var(--text-sm);
  color: var(--text-dim);
  line-height: 1.4;
}

/* Değer + trend deltası satırı */
.metric-value-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  min-width: 0;
}

.metric-trend {
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  white-space: nowrap;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--fill-subtle);
  color: var(--text-muted);
}

.metric-trend.up {
  color: var(--neon-emerald);
  background: var(--tint-emerald);
}

.metric-trend.down {
  color: var(--neon-rose);
  background: var(--tint-rose);
}

.metric-trend.flat {
  color: var(--text-muted);
  background: var(--fill-subtle);
}

/* Mini sparkline — palet vurgu rengiyle */
.metric-spark {
  height: 36px;
  margin-top: var(--space-1);
  border-radius: var(--radius-sm);
  background: var(--fill-whisper);
  overflow: hidden;
}

.metric-spark-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.spark-line {
  fill: none;
  stroke: var(--neon-cyan);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.spark-dot {
  fill: var(--neon-cyan);
  filter: drop-shadow(0 0 4px var(--shadow-glow-cyan));
}

.metric[data-series="published"] .spark-line {
  stroke: var(--neon-emerald);
}

.metric[data-series="published"] .spark-dot {
  fill: var(--neon-emerald);
  filter: drop-shadow(0 0 4px var(--shadow-glow-emerald));
}

.metric[data-series="published"] .spark-hover-dot {
  fill: var(--neon-emerald);
}

.metric[data-series="upcoming"] .spark-hover-dot {
  fill: var(--neon-indigo);
}

.metric[data-series="upcoming"] .spark-line {
  stroke: var(--neon-indigo);
}

.metric[data-series="upcoming"] .spark-dot {
  fill: var(--neon-indigo);
}

/* Dashboard canlı yenileme: değer değişince tek seferlik pulse */
/* Değer değişim animasyonları — yön bazlı renk */
@keyframes value-bump-up {
  0% { transform: scale(1); box-shadow: none; }
  20% { transform: scale(1.12); box-shadow: 0 0 20px var(--neon-emerald), 0 0 40px rgba(52, 211, 153, 0.3); }
  100% { transform: scale(1); box-shadow: none; }
}

@keyframes value-bump-down {
  0% { transform: scale(1); box-shadow: none; }
  20% { transform: scale(1.12); box-shadow: 0 0 20px var(--neon-rose), 0 0 40px rgba(251, 113, 133, 0.3); }
  100% { transform: scale(1); box-shadow: none; }
}

.metric-value-row strong.value-bump-up {
  display: inline-block;
  animation: value-bump-up 2s var(--ease-glass) forwards;
  color: var(--neon-emerald);
}

.metric-value-row strong.value-bump-down {
  display: inline-block;
  animation: value-bump-down 2s var(--ease-glass) forwards;
  color: var(--neon-rose);
}

/* Spark hover: gün bazlı imleç kılavuzu + değer etiketi */
.spark-guide {
  stroke: var(--line-contrast);
  stroke-width: 1;
  stroke-dasharray: 3 3;
  opacity: 0;
  pointer-events: none;
}

.spark-guide.show { opacity: 0.7; }

.spark-hit { fill: transparent; cursor: crosshair; }

.spark-hover-dot {
  fill: var(--neon-cyan);
  stroke: var(--glass-card);
  stroke-width: 1.4;
  opacity: 0;
  pointer-events: none;
}

.spark-hover-dot.show { opacity: 1; }

.spark-tip {
  position: absolute;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass-light);
  background: var(--glass-modal);
  color: var(--text-pure);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: var(--font-semibold);
  white-space: nowrap;
  box-shadow: var(--shadow-card);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--speed-fast) var(--ease-glass);
  z-index: 5;
}

.spark-tip.show { opacity: 1; }

/* Haftalık toplam etiketi — sparkline altında küçük satır */
.metric-weekly {
  display: block;
  margin-top: var(--space-1);
  font-size: var(--text-2xs);
  font-weight: var(--font-medium);
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  transition: color var(--speed-fast) var(--ease-glass);
}

/* Sayaç animasyonu sırasında hafif parlama */
.metric-weekly.animating {
  color: var(--neon-cyan);
}

/* Ekran okuyucu duyuru bölgesi — görselde gizli */
.metric-announce {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Spark focus durumu — klavye ile gezinirken çizgi vurgusu */
.metric-spark-svg:focus {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 1px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   QUICK LINKS / ACTIONS GRID
   ========================================================================== */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-10);
}

#dashboard-work-queue { margin: 0 0 var(--space-6); }
#dashboard-work-queue h2 { margin: 0; font-size: 18px; }
.dashboard-queue { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 8px; }
.dashboard-queue a { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 13px 15px; border: 1px solid var(--border-glass); border-radius: 14px; background: var(--glass-card); color: var(--text-main); text-decoration: none; }
.dashboard-queue a:hover { border-color: var(--neon-purple); }
.dashboard-queue strong { font-size: 22px; }
.dashboard-queue span { flex: 1; font-size: 13px; }
.dashboard-queue i { font-size: 17px; }

.quick {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  background: var(--glass-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-card), var(--glass-shine);
  transition: all var(--speed-base) var(--ease-glass);
  color: var(--text-main);
}

.quick:hover {
  background: var(--glass-card-hover);
  border-color: var(--tint-cyan-strong);
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover), var(--shadow-glow-cyan);
}

.quick > strong {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--text-pure);
}

/* Child combinator zorunlu: .quick aynı zamanda workspace section'larında da var
   (ör. #catalog-workspace.quick) — sınırsız span seçicisi code-badge gibi
   bileşen rozetlerinin rengini ezip aydınlık temada kontrastı 4.5 altına düşürüyordu. */
.quick > span {
  font-size: 13px;
  color: var(--text-muted);
}

.quick .quick-arrow {
  margin-top: auto;
  font-size: var(--text-lg);
  color: var(--neon-cyan);
  transition: transform var(--speed-base) var(--ease-glass);
}

.quick:hover .quick-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   Hugeicons icon font — boyut ve hizalama ayarları
   ========================================================================== */
i[class*="hgi-"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  line-height: 1;
  vertical-align: middle;
  flex-shrink: 0;
}

.legacy-hgi-icon {
  display: inline-block;
  margin-inline: 0.12em;
  font-size: 1.05em;
  line-height: 1;
  vertical-align: -0.1em;
}

/* Panel theme-seg-btn içindeki ikonlar */
.theme-seg-btn i[class*="hgi-"] {
  font-size: 18px;
}

/* Header butonlarındaki ikonlar — Tailwind size-4/5/6 ile uyumlu */
i.size-4 { font-size: 16px; width: 16px; height: 16px; }
i.size-5 { font-size: 20px; width: 20px; height: 20px; }
i.size-6 { font-size: 24px; width: 24px; height: 24px; }

/* Mobil header search bar */
.chisfis-home .chisfis-header-root i[class*="hgi-"] {
  font-size: 20px;
}

/* Header popover butonlarındaki ikonlar */
#popover-button-3 i[class*="hgi-"] {
  font-size: 18px;
  gap: 2px;
}

/* Theme toggle ikonları */
#theme-toggle i[class*="hgi-"] {
  font-size: 22px;
}

/* Avatar popover */
#popover-button-5 img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.partner-org-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin:16px 0 28px}.partner-org-card{border:1px solid var(--line-soft,#e5e7eb);border-radius:16px;padding:18px;background:var(--glass-card,#fff)}.partner-org-card p{margin:9px 0}.partner-action-form{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin:12px 0}.partner-action-form label{display:grid;gap:5px;min-width:180px;flex:1}.partner-action-form input,.partner-action-form select{min-height:40px;max-width:300px}.partner-action-form button{min-height:40px}.partner-lead-list,.partner-legacy-list{display:grid;gap:9px;margin:12px 0 24px}.partner-lead-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;border:1px solid var(--line-soft,#e5e7eb);border-radius:14px;padding:11px 15px}.partner-lead-row .partner-action-form{margin:0}
