/**
 * DecasHub Sovereign Components v1.0 — tokens.css değişkenlerine dayanır.
 * Sayfalar progresif olarak bu sınıflara geçer; mevcut sayfa-içi stiller korunur.
 */
.dh-card {
  background: var(--dh-card);
  border: 1px solid var(--dh-border);
  border-radius: var(--dh-radius);
  color: var(--dh-text);
}

.dh-card-glass {
  background: color-mix(in srgb, var(--dh-card) 75%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--dh-border);
  border-radius: var(--dh-radius);
}

.dh-btn-primary {
  display: inline-block;
  background: var(--dh-cyan);
  color: #030712;
  font-weight: 700;
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.dh-btn-primary:hover {
  transform: translateY(-1px);
}

.dh-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.dh-badge-cyan {
  background: rgba(6, 182, 212, 0.1);
  color: var(--dh-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.dh-input {
  width: 100%;
  background: var(--dh-surface);
  color: var(--dh-text);
  border: 1px solid var(--dh-border);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

.dh-input:focus {
  outline: 2px solid var(--dh-cyan);
  outline-offset: 1px;
}

.dh-muted {
  color: var(--dh-muted);
}

@media (prefers-reduced-motion: reduce) {
  .dh-btn-primary,
  .dh-card-glass {
    transition: none;
  }
}


/* DecasHub Component System v2 — Da Vinci */

/* Düğmeler */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: #22D3EE;
  color: #070B14;
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
}
.btn-primary:hover { background: #38BDF8; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.dh-btn-ghost, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--dh-radius, 0.75rem);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #F8FAFC;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.dh-btn-ghost:hover, .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(34, 211, 238, 0.4);
  color: #22D3EE;
  transform: translateY(-1px);
}

/* Kartlar */
.card {
  background: #0F172A;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: border-color 0.2s;
}
.card:hover { border-color: rgba(34,211,238,0.25); }

.card-highlight {
  background: #0F172A;
  border: 1px solid #22D3EE;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 14px 0 rgba(34, 211, 238, 0.08), 0 8px 24px -8px rgba(0, 0, 0, 0.5);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  background: rgba(34,211,238,0.1);
  color: #22D3EE;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid rgba(34,211,238,0.2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Proof strip item */
.proof-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.proof-num {
  font-size: 1.875rem;
  font-weight: 800;
  color: #22D3EE;
  line-height: 1;
}
.proof-label {
  font-size: 0.75rem;
  color: #64748B;
  text-align: center;
  max-width: 100px;
}

/* Section layout */
.section {
  padding: 5rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
.section-sm {
  padding: 3rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Step indicator */
.step-dot {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(34,211,238,0.12);
  border: 1px solid rgba(34,211,238,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22D3EE;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}
.step-dot.active {
  background: #22D3EE;
  color: #070B14;
}

/* Divider */
.divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 0;
}

/* Responsive grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 3rem 1rem; }
}

/* === PROOF STRIP (Kanıt Bandı) === */
.proof-strip {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin: 2.5rem 0;
}
.proof-strip .proof-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-gold);
  line-height: 1;
  font-family: var(--font-mono);
}
.proof-strip .proof-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

/* === UVT TABS === */
.uvt-tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0;
}
.uvt-tab {
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem 0.5rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  border-bottom: 2px solid transparent;
}
.uvt-tab:hover { color: var(--color-text-primary); }
.uvt-tab.active {
  color: var(--color-cyan);
  border-bottom-color: var(--color-cyan);
}

/* === PIPELINE STEPPER === */
.pipeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}
.pipeline::before {
  content: '';
  position: absolute;
  top: 1.25rem;
  left: 2.5%;
  right: 2.5%;
  height: 1px;
  background: var(--color-border);
}
.pipeline-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
  text-align: center;
}
.pipeline-dot {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}
.pipeline-dot.active {
  background: var(--color-cyan-lo);
  border-color: var(--color-cyan-border);
  color: var(--color-cyan);
}
.pipeline-label { font-size: 0.75rem; color: var(--color-text-secondary); font-weight: 600; }
.pipeline-range { font-size: 0.625rem; color: var(--color-text-muted); font-family: var(--font-mono); }

/* === HERO GLOW === */
.hero-glow {
  background: var(--gradient-hero);
}

/* === SECTION TITLE === */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  background: var(--color-cyan-lo);
  border: 1px solid var(--color-cyan-border);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* === FUND TICKER === */
.fund-ticker {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 2rem;
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-raised) 100%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}
.fund-item { text-align: center; }
.fund-value {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--color-gold);
  font-family: var(--font-mono);
  line-height: 1;
}
.fund-name { font-size: 0.75rem; color: var(--color-text-muted); margin-top: 0.25rem; }

@media (max-width: 640px) {
  .uvt-tabs { flex-wrap: wrap; }
  .pipeline { flex-wrap: wrap; gap: 1rem; }
  .pipeline::before { display: none; }
  .fund-ticker { gap: 1.5rem; }
}


/* =========================================================================
   STICKY HEADER DESKTOP NAV (Da Vinci / Nav Polish)
   ========================================================================= */
/* Global page overflow-x guard */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
}

header {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: clip !important;
}

.desktop-nav {
  display: flex !important;
  align-items: center;
  justify-content: center !important;
  flex: 1 1 0% !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
  gap: 0.5rem !important;
  white-space: nowrap !important;
  flex-wrap: nowrap !important;
  font-size: 0.8rem !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.desktop-nav::-webkit-scrollbar {
  display: none;
}
@media (min-width: 1280px) {
  .desktop-nav {
    gap: 0.65rem !important;
    font-size: 0.82rem !important;
  }
}
@media (min-width: 1440px) {
  .desktop-nav {
    gap: 0.85rem !important;
    font-size: 0.85rem !important;
  }
}
@media (min-width: 1600px) {
  .desktop-nav {
    gap: 1.15rem !important;
    font-size: 0.875rem !important;
  }
}
.desktop-nav a {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  padding: 0.25rem 0.45rem !important;
  border-radius: 0.375rem;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.desktop-nav a:hover {
  background-color: rgba(255, 255, 255, 0.05);
}
@media (max-width: 1024px) {
  .desktop-nav {
    display: none !important;
  }
}

/* =========================================================================
   STICKY HEADER DESKTOP NAV (Da Vinci / Nav Polish)
   ========================================================================= */
/* Global page overflow-x guard */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
}

header {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: clip !important;
}

.desktop-nav {
  display: flex !important;
  align-items: center;
  gap: 0.35rem !important;
  white-space: nowrap !important;
  flex-wrap: nowrap !important;
  font-size: 0.75rem !important;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  min-width: 0;
}
.desktop-nav::-webkit-scrollbar {
  display: none;
}

/* Yatay hap/kart kaydırıcıları: çıplak native scrollbar yasak (K-hap barı, meslek sekmeleri) */
nav.overflow-x-auto,
div.overflow-x-auto {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
nav.overflow-x-auto::-webkit-scrollbar,
div.overflow-x-auto::-webkit-scrollbar {
  display: none;
}

/* Dashboard ızgara başlığı: 1750px altında düşük öncelikliler ikonlaşır */
@media (max-width: 1750px) {
  .sovereign-core-nav a[href="/k4-grants.html"],
  .sovereign-core-nav a[href="/academy.html"],
  .sovereign-core-nav a[href="/login.html"] {
    display: none;
  }
  .nav-actions a.btn-preset span,
  .nav-actions button.btn-preset span {
    display: none;
  }
  .nav-actions a.btn-preset,
  .nav-actions button.btn-preset {
    padding: 6px 9px;
  }
}
/* Dashboard mobil: iki bar da gizli kaydırmalı */
@media (max-width: 768px) {
  .sovereign-core-nav,
  .nav-actions {
    overflow-x: auto;
    scrollbar-width: none;
    flex-wrap: nowrap !important;
    max-width: 100%;
  }
  .sovereign-core-nav::-webkit-scrollbar,
  .nav-actions::-webkit-scrollbar {
    display: none;
  }
}
@media (max-width: 1400px) {
  .sovereign-core-nav a:not([href="/dashboard.html"]) {
    display: none;
  }
  .nav-actions {
    overflow-x: auto;
    scrollbar-width: none;
    flex-wrap: nowrap !important;
    max-width: 100%;
  }
  .nav-actions::-webkit-scrollbar {
    display: none;
  }
}
@media (min-width: 1280px) {
  .desktop-nav {
    gap: 0.45rem !important;
    font-size: 0.78rem !important;
    overflow-x: auto;
  }
}
@media (min-width: 1440px) {
  .desktop-nav {
    gap: 0.7rem !important;
    font-size: 0.82rem !important;
    overflow-x: visible;
  }
}
@media (min-width: 1600px) {
  .desktop-nav {
    gap: 1.05rem !important;
    font-size: 0.875rem !important;
  }
}
.desktop-nav a {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  padding: 0.2rem 0.35rem !important;
  border-radius: 0.375rem;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.desktop-nav a:hover {
  background-color: rgba(255, 255, 255, 0.05);
}
@media (max-width: 768px) {
  .desktop-nav {
    display: none !important;
  }
}

/* =========================================================================
   JOURNEY SECTION (8 ADIM YOL HARİTASI & AKIŞ ÇİZGİLERİ)
   ========================================================================= */
.journey-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.journey-step {
  position: relative;
  z-index: 1;
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  text-align: center;
  background: var(--color-surface, #0A1628);
  border: 1px solid rgba(34, 211, 238, 0.15);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease,
              box-shadow 0.25s ease;
  will-change: transform, box-shadow;
}

/* 01-04 Cyan themed step hover */
.journey-step.journey-step-cyan:hover,
.journey-step:not(.journey-step-gold):not(.journey-step-unicorn):hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.55) !important;
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.10),
              inset 0 0 16px 0 rgba(34, 211, 238, 0.12),
              0 12px 28px -6px rgba(0, 0, 0, 0.45) !important;
}

/* 05-07 Gold themed step */
.journey-step.journey-step-gold {
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.journey-step.journey-step-gold:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.65) !important;
  box-shadow: 0 12px 28px -6px rgba(245, 158, 11, 0.3),
              0 0 18px 0 rgba(245, 158, 11, 0.22),
              var(--shadow-glow-gold, 0 0 32px rgba(245, 158, 11, 0.25)) !important;
}

/* 08 Unicorn Card — Altın Işıltısı ve Belirgin Glow */
.journey-step-unicorn {
  position: relative;
  z-index: 1;
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(34, 211, 238, 0.12)) !important;
  border: 2px solid var(--color-gold, #F59E0B) !important;
  box-shadow: var(--shadow-glow-gold, 0 0 32px rgba(245, 158, 11, 0.25)),
              0 0 40px rgba(245, 158, 11, 0.3) !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}

.journey-step-unicorn:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: #FBBF24 !important;
  box-shadow: var(--shadow-glow-gold, 0 0 32px rgba(245, 158, 11, 0.25)),
              0 0 55px rgba(245, 158, 11, 0.55),
              0 0 28px rgba(34, 211, 238, 0.35) !important;
}

/* 1. Satır (01-04) Akış Çizgisi */
.journey-connector-row1 {
  position: absolute;
  top: 3.5rem;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--color-journey-connector, linear-gradient(90deg, #22D3EE, #F59E0B));
  z-index: 0;
  border-radius: 2px;
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.08), 0 0 6px rgba(34, 211, 238, 0.2);
}

/* 01-04 ve 05-08 Arasındaki Akış Çizgisi ve Bağlantı Göstergesi */
.journey-row-divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 0.5rem 0;
  margin: 0.25rem 0;
  position: relative;
  z-index: 1;
}

.journey-row-divider-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.4), rgba(245, 158, 11, 0.55));
  border-radius: 2px;
}

.journey-row-divider-line.reverse {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.55), rgba(34, 211, 238, 0.4), transparent);
}

.journey-flow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.45rem 1.25rem;
  border-radius: 9999px;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2), 0 0 10px rgba(34, 211, 238, 0.15);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (min-width: 769px) {
  /* 01-04 ve 05-08 Kartlar Arası Yatay Bağlantı Noktaları */
  .journey-step-01::after,
  .journey-step-02::after,
  .journey-step-03::after {
    content: '';
    position: absolute;
    top: 3.5rem;
    right: -1.5rem;
    width: 1.5rem;
    height: 2px;
    background: linear-gradient(90deg, #22D3EE, rgba(34, 211, 238, 0.6));
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.08), 0 0 6px rgba(34, 211, 238, 0.2);
    z-index: 2;
  }

  .journey-step-05::after,
  .journey-step-06::after,
  .journey-step-07::after {
    content: '';
    position: absolute;
    top: 3.5rem;
    right: -1.5rem;
    width: 1.5rem;
    height: 2px;
    background: linear-gradient(90deg, #F59E0B, rgba(245, 158, 11, 0.7));
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
    z-index: 2;
  }
}

@media (max-width: 768px) {
  .journey-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .journey-step-unicorn {
    grid-column: 1 / -1 !important;
  }
  .journey-connector-row1 {
    display: none;
  }
}

@media (max-width: 480px) {
  .journey-grid {
    grid-template-columns: 1fr !important;
  }
  .journey-flow-badge {
    font-size: 0.6875rem;
    padding: 0.35rem 0.75rem;
    gap: 0.35rem;
  }
}

/* ==========================================================================
   DecasHub Sovereign Light Theme Override Engine — Da Vinci & Tesla
   WCAG 2.2 AA Uyumlu Kapsamlı Aydınlık / Beyaz Tema Mimarisi
   ========================================================================== */

/* 1. Kök Zemin ve Gövde */
html[data-theme="light"],
html[data-theme="light"] body,
body.light-mode {
  background-color: #F8FAFC !important;
  background-image: radial-gradient(circle at 10% 0%, rgba(14, 116, 144, 0.05) 0%, transparent 40%),
                    radial-gradient(circle at 90% 20%, rgba(180, 83, 9, 0.04) 0%, transparent 40%) !important;
  color: #0F172A !important;
}

/* 2. Header / Gezinme Çubuğu */
html[data-theme="light"] header,
body.light-mode header {
  background-color: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 1px 12px rgba(15, 23, 42, 0.05) !important;
}

/* 3. Kartlar ve Yüzey Konteynerleri */
html[data-theme="light"] .card,
html[data-theme="light"] .glass-card,
html[data-theme="light"] .card-highlight,
html[data-theme="light"] .sovereign-card,
html[data-theme="light"] .sovereign-card-emerald,
html[data-theme="light"] .dh-card,
html[data-theme="light"] .dh-card-glass,
html[data-theme="light"] [class*="bg-[#0A1628]"],
html[data-theme="light"] [class*="bg-[#04070F]"]:not(body),
html[data-theme="light"] [class*="bg-[#040915]"],
html[data-theme="light"] [class*="bg-[#091226]"],
html[data-theme="light"] [class*="bg-[#030712]"]:not(body),
html[data-theme="light"] [class*="bg-[#070B14]"]:not(body),
html[data-theme="light"] [class*="bg-[#05070c]"]:not(body),
html[data-theme="light"] [class*="bg-[#0D1C34]"],
html[data-theme="light"] [class*="bg-slate-900"],
html[data-theme="light"] [class*="bg-slate-950"],
html[data-theme="light"] [class*="bg-gray-900"],
html[data-theme="light"] [class*="bg-gray-950"],
body.light-mode .card,
body.light-mode .glass-card,
body.light-mode .card-highlight,
body.light-mode .sovereign-card,
body.light-mode .sovereign-card-emerald,
body.light-mode .dh-card,
body.light-mode .dh-card-glass,
body.light-mode [class*="bg-[#0A1628]"],
body.light-mode [class*="bg-[#04070F]"]:not(body),
body.light-mode [class*="bg-[#040915]"],
body.light-mode [class*="bg-[#091226]"],
body.light-mode [class*="bg-[#030712]"]:not(body),
body.light-mode [class*="bg-[#070B14]"]:not(body),
body.light-mode [class*="bg-[#05070c]"]:not(body),
body.light-mode [class*="bg-[#0D1C34]"],
body.light-mode [class*="bg-slate-900"],
body.light-mode [class*="bg-slate-950"],
body.light-mode [class*="bg-gray-900"],
body.light-mode [class*="bg-gray-950"] {
  background-color: #FFFFFF !important;
  background-image: none !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06) !important;
  color: #0F172A;
}

/* 4. Metin Renkleri */
html[data-theme="light"] .text-white,
html[data-theme="light"] .text-slate-100,
html[data-theme="light"] .text-slate-50,
html[data-theme="light"] .text-gray-100,
body.light-mode .text-white,
body.light-mode .text-slate-100,
body.light-mode .text-slate-50,
body.light-mode .text-gray-100 {
  color: #0F172A !important;
}

html[data-theme="light"] .text-slate-300,
html[data-theme="light"] .text-slate-200,
html[data-theme="light"] .text-gray-300,
html[data-theme="light"] .text-gray-200,
body.light-mode .text-slate-300,
body.light-mode .text-slate-200,
body.light-mode .text-gray-300,
body.light-mode .text-gray-200 {
  color: #334155 !important;
}

html[data-theme="light"] .text-slate-400,
html[data-theme="light"] .text-slate-500,
html[data-theme="light"] .text-gray-400,
html[data-theme="light"] .text-gray-500,
body.light-mode .text-slate-400,
body.light-mode .text-slate-500,
body.light-mode .text-gray-400,
body.light-mode .text-gray-500 {
  color: #475569 !important;
}

/* Butonlar içindeki metin istisnaları */
html[data-theme="light"] .btn-primary,
html[data-theme="light"] .dh-btn-primary,
html[data-theme="light"] a[class*="bg-cyan-400"],
html[data-theme="light"] a[class*="bg-cyan-300"],
html[data-theme="light"] button[class*="bg-cyan-400"],
body.light-mode .btn-primary,
body.light-mode .dh-btn-primary,
body.light-mode a[class*="bg-cyan-400"],
body.light-mode a[class*="bg-cyan-300"],
body.light-mode button[class*="bg-cyan-400"] {
  color: #0F172A !important;
}

html[data-theme="light"] button.text-white:not([class*="bg-white"]):not([class*="bg-slate-9"]):not([class*="bg-gray-"]):not([class*="bg-transparent"]),
html[data-theme="light"] a.text-white:not([class*="bg-white"]):not([class*="bg-slate-9"]):not([class*="bg-gray-"]):not([class*="bg-transparent"]),
html[data-theme="light"] [class*="bg-cyan-6"] .text-white,
html[data-theme="light"] [class*="bg-emerald-6"] .text-white,
html[data-theme="light"] [class*="bg-blue-6"] .text-white,
html[data-theme="light"] [class*="bg-indigo-6"] .text-white,
body.light-mode button.text-white:not([class*="bg-white"]):not([class*="bg-slate-9"]):not([class*="bg-gray-"]):not([class*="bg-transparent"]),
body.light-mode a.text-white:not([class*="bg-white"]):not([class*="bg-slate-9"]):not([class*="bg-gray-"]):not([class*="bg-transparent"]),
body.light-mode [class*="bg-cyan-6"] .text-white,
body.light-mode [class*="bg-emerald-6"] .text-white,
body.light-mode [class*="bg-blue-6"] .text-white,
body.light-mode [class*="bg-indigo-6"] .text-white {
  color: #FFFFFF !important;
}

/* 5. Hero Earth Katmanı ve Metin Kalkanı */
.hero-text-shield {
  background: radial-gradient(circle at 50% 40%, rgba(4, 7, 15, 0.70) 0%, rgba(4, 7, 15, 0.40) 60%, transparent 100%) !important;
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

#hero h1 {
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.95), 0 0 50px rgba(5, 7, 12, 0.9) !important;
}

#hero p[data-i18n="hero.subtitle"] {
  color: #F1F5F9 !important;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.95), 0 0 35px rgba(0, 0, 0, 0.85) !important;
  font-weight: 450 !important;
}

/* #hero KOZMİK EGEMENLİK (Cosmic Immunity) — #hero her zaman derin uzay sinematiğidir */
    html[data-theme="light"] #hero,
    body.light-mode #hero {
      background-color: #04070F !important;
      color: #F8FAFC !important;
    }
    html[data-theme="light"] #hero .hero-earth-backdrop,
    body.light-mode #hero .hero-earth-backdrop {
      opacity: 0.90 !important;
      mix-blend-mode: normal !important;
      filter: none !important;
    }
    html[data-theme="light"] #hero .hero-earth-overlay,
    body.light-mode #hero .hero-earth-overlay {
      background: linear-gradient(to bottom, #04070F 0%, rgba(4,7,15,0.2) 20%, rgba(4,7,15,0.2) 65%, #04070F 100%),
                  radial-gradient(ellipse 90% 70% at 50% 100%, transparent 45%, rgba(4,7,15,0.7) 100%) !important;
    }
    html[data-theme="light"] #hero .hero-text-shield,
    body.light-mode #hero .hero-text-shield {
      background: radial-gradient(circle at 50% 40%, rgba(4,7,15,0.7) 0%, rgba(4,7,15,0.4) 60%, transparent 100%) !important;
    }
    html[data-theme="light"] #hero h1,
    body.light-mode #hero h1,
    html[data-theme="light"] #hero h1 span,
    body.light-mode #hero h1 span {
      color: #FFFFFF !important;
      text-shadow: 0 4px 24px rgba(0,0,0,0.85) !important;
    }
    html[data-theme="light"] #hero p,
    body.light-mode #hero p {
      color: #E2E8F0 !important;
      text-shadow: 0 2px 14px rgba(0,0,0,0.8) !important;
    }
    html[data-theme="light"] #hero [class*="bg-slate-950"],
    body.light-mode #hero [class*="bg-slate-950"] {
      background-color: rgba(2, 6, 23, 0.75) !important;
      backdrop-filter: blur(16px) !important;
      border-color: rgba(6, 182, 212, 0.25) !important;
      box-shadow: 0 12px 36px rgba(0,0,0,0.7) !important;
    }
    html[data-theme="light"] #hero [class*="bg-slate-950"] .text-white,
    body.light-mode #hero [class*="bg-slate-950"] .text-white {
      color: #FFFFFF !important;
    }
    html[data-theme="light"] #hero [class*="bg-slate-950"] .text-slate-300,
    body.light-mode #hero [class*="bg-slate-950"] .text-slate-300 {
      color: #CBD5E1 !important;
    }
    html[data-theme="light"] #hero [class*="bg-slate-950"] .text-cyan-400,
    body.light-mode #hero [class*="bg-slate-950"] .text-cyan-400 {
      color: #22D3EE !important;
    }
    html[data-theme="light"] #hero a[class*="bg-cyan-400"],
    body.light-mode #hero a[class*="bg-cyan-400"] {
      background-color: #22D3EE !important;
      color: #04070F !important;
    }
    html[data-theme="light"] #hero a[class*="border-white/20"],
    body.light-mode #hero a[class*="border-white/20"] {
      border-color: rgba(255, 255, 255, 0.2) !important;
      color: #FFFFFF !important;
      background-color: rgba(2, 6, 23, 0.6) !important;
    }

/* Gradient başlık açık tema uyumu */
html[data-theme="light"] .bg-gradient-to-r.from-white,
body.light-mode .bg-gradient-to-r.from-white {
  background-image: linear-gradient(to right, #0F172A, #0891b2, #0284c7) !important;
}

/* 6. Kenarlıklar, Bölücüler ve Etkileşim Elemanları */
html[data-theme="light"] [class*="border-white/"],
html[data-theme="light"] [class*="border-slate-800"],
html[data-theme="light"] [class*="border-slate-700"],
body.light-mode [class*="border-white/"],
body.light-mode [class*="border-slate-800"],
body.light-mode [class*="border-slate-700"] {
  border-color: rgba(15, 23, 42, 0.1) !important;
}

html[data-theme="light"] .divider,
body.light-mode .divider {
  background: rgba(15, 23, 42, 0.08) !important;
}

/* 7. Özel Bileşenler: Story, Protocol, Journey, UVT */
html[data-theme="light"] .story-tab,
body.light-mode .story-tab {
  background: rgba(15, 23, 42, 0.04) !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  color: #475569 !important;
}

html[data-theme="light"] .story-tab.active,
body.light-mode .story-tab.active {
  background: rgba(14, 116, 144, 0.1) !important;
  border-color: rgba(14, 116, 144, 0.35) !important;
  color: #0e7490 !important;
}

html[data-theme="light"] .story-stage,
body.light-mode .story-stage {
  background: #FFFFFF !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

html[data-theme="light"] .protocol-console,
body.light-mode .protocol-console {
  background: #F1F5F9 !important;
  border-color: rgba(15, 23, 42, 0.15) !important;
  color: #0F172A !important;
}

html[data-theme="light"] .uvt-tab,
body.light-mode .uvt-tab {
  background-color: #FFFFFF !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #334155 !important;
}

html[data-theme="light"] .uvt-tab.active,
body.light-mode .uvt-tab.active {
  background-color: rgba(14, 116, 144, 0.1) !important;
  border-color: #0e7490 !important;
  color: #0e7490 !important;
}

html[data-theme="light"] .journey-step-unicorn,
body.light-mode .journey-step-unicorn {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(34, 211, 238, 0.15) 100%), #FFFFFF !important;
  border-color: #F59E0B !important;
  color: #0F172A !important;
}

html[data-theme="light"] .journey-flow-badge,
body.light-mode .journey-flow-badge {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
  color: #0F172A !important;
}

html[data-theme="light"] footer,
body.light-mode footer {
  background-color: #F1F5F9 !important;
  border-top-color: rgba(15, 23, 42, 0.1) !important;
  color: #475569 !important;
}

/* 8. Tema Değiştirme Butonu (FAB & Nav) */
html[data-theme="light"] .dh-theme-fab,
html[data-theme="light"] #dh-theme-toggle,
body.light-mode .dh-theme-fab,
body.light-mode #dh-theme-toggle {
  background: #FFFFFF !important;
  color: #0F172A !important;
  border-color: rgba(15, 23, 42, 0.15) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15) !important;
}

.dh-theme-fab:hover,
#dh-theme-toggle:hover {
  transform: scale(1.08);
}
