/* ==========================================================================
   NEXVIA DIGITAL STUDIO — KATMANLI KARAR ÇARKI (SUNBURST DECISION WHEEL)
   BEYAZ / TEMİZ LÜKS TEMA (CLEAN WHITE & GOLD LUXURY THEME)
   AGENTS.MD UYUMLU: EMOJİ KESİNLİKLE YOKTUR. FontAwesome 6 & Inline SVG.
   Renk Paleti: #ffffff, #f8fafc, #0f172a, #d4af37 (Gold), #e2e8f0 (Border)
   Tipografi: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif.
   ========================================================================== */

:root {
  --kc-bg-page: #f8fafc;
  --kc-bg-card: #ffffff;
  --kc-bg-subtle: #f1f5f9;
  --kc-card-border: #e2e8f0;
  --kc-card-border-focus: #d4af37;
  --kc-gold: #d4af37;
  --kc-gold-dark: #b8860b;
  --kc-gold-light: rgba(212, 175, 55, 0.12);
  --kc-gold-glow: rgba(212, 175, 55, 0.28);
  --kc-rose: #e11d48;
  --kc-emerald: #10b981;
  --kc-text: #0f172a;
  --kc-text-secondary: #334155;
  --kc-text-muted: #64748b;
  --kc-input-bg: #ffffff;
  --kc-radius-sm: 8px;
  --kc-radius-md: 14px;
  --kc-radius-lg: 20px;
  --main-header-h: 114px;
}

@media (max-width: 991px) {
  :root {
    --main-header-h: 125px;
  }
}

/* Sayfa Sarmalayıcı — Aydınlık ve Ferah */
.kc-page-wrapper {
  min-height: 100vh;
  background: #f8fafc;
  color: var(--kc-text);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 24px 0 80px;
  overflow-x: clip;
  max-width: 100%;
  box-sizing: border-box;
}

.kc-container {
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* Üst Başlık & Dil Seçici Çubuğu */
.kc-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--kc-card-border);
}

.kc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--kc-text-muted);
}
.kc-breadcrumb a {
  color: var(--kc-text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--kc-transition);
}
.kc-breadcrumb a:hover {
  color: var(--kc-gold-dark);
}
.kc-breadcrumb .separator {
  color: #cbd5e1;
  font-size: 0.75rem;
}
.kc-breadcrumb .active {
  color: var(--kc-gold-dark);
  font-weight: 700;
}

.kc-lang-switcher {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--kc-card-border);
  border-radius: var(--kc-radius-sm);
  padding: 3px;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}
.kc-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--kc-text-secondary);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--kc-transition);
}
.kc-lang-btn:hover {
  color: var(--kc-text);
  background: #f1f5f9;
}
.kc-lang-btn.active {
  background: var(--kc-gold);
  color: #0b0d12;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

/* Hero Başlık Alanı */
.kc-hero-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 36px;
}
.kc-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--kc-gold-dark);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.kc-hero-title {
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--kc-text);
  margin: 0 0 14px;
  letter-spacing: -0.5px;
}
.kc-hero-title .highlight-gold {
  color: var(--kc-gold-dark);
}
.kc-hero-desc {
  font-size: 1.05rem;
  color: var(--kc-text-muted);
  line-height: 1.6;
  margin: 0 auto;
  max-width: 720px;
}

/* ==========================================================================
   ÜST YÖNETİM SEKMELERİ BARI (ANA HEADER GİBİ ÜSTTE HEP SABİT & ORTALI)
   ========================================================================== */
.kc-top-tabs-bar {
  position: sticky;
  top: var(--main-header-h, 114px);
  z-index: 990;
  background: #ffffff;
  border-top: 1px solid var(--kc-card-border);
  border-bottom: 1px solid var(--kc-card-border);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
  padding: 8px 0;
  margin-bottom: 24px;
  width: 100%;
  transition: top 0.15s ease;
}

.kc-tabs-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.kc-tabs-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border: 1px solid var(--kc-card-border);
  border-radius: 50px;
  padding: 5px;
  gap: 6px;
  margin: 0 auto;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.kc-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 22px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50px;
  color: #64748b;
  font-size: 0.90rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.kc-tab-btn:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.85);
}

.kc-tab-btn.active {
  background: #ffffff;
  border-color: var(--kc-gold);
  color: var(--kc-gold-dark);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.25);
}

@media (max-width: 768px) {
  .kc-top-tabs-bar {
    padding: 6px 0;
    margin-bottom: 16px;
  }
  .kc-tabs-container {
    padding: 0 10px;
    justify-content: flex-start;
  }
  .kc-tabs-header {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    justify-content: flex-start;
  }
  .kc-tabs-header::-webkit-scrollbar {
    display: none;
  }
  .kc-tab-btn {
    padding: 8px 14px;
    font-size: 0.82rem;
    gap: 6px;
    border-radius: 8px;
  }
}

/* Ana Çalışma Alanı: 2 Kolon Düzen (Masaüstü Sol Editör, Sağ Canvas) */
.kc-workspace-grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 28px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 991px) {
  .kc-workspace-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* ==========================================================================
   SOL PANEL: YALNIZCA SEÇİLEN SEKMEYE AİT İÇERİKLER (BEYAZ KART)
   ========================================================================== */
.kc-editor-panel {
  background: var(--kc-bg-card);
  border: 1px solid var(--kc-card-border);
  border-radius: var(--kc-radius-lg);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  position: sticky;
  top: calc(var(--main-header-h, 114px) + 72px);
  max-height: calc(100vh - var(--main-header-h, 114px) - 92px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.4) transparent;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.kc-editor-panel::-webkit-scrollbar {
  width: 6px;
}
.kc-editor-panel::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.35);
  border-radius: 4px;
}

.kc-tab-content {
  display: none;
}
.kc-tab-content.active {
  display: block;
  animation: kcFadeIn 0.25s ease-out;
}

@keyframes kcFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Şablon Kartları Grid'i */
.kc-templates-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.kc-template-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--kc-card-border);
  border-radius: var(--kc-radius-md);
  padding: 12px 14px;
  cursor: pointer;
  transition: var(--kc-transition);
  text-align: left;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.kc-template-card:hover {
  border-color: var(--kc-gold);
  background: rgba(212, 175, 55, 0.04);
  transform: translateX(4px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}
.kc-template-card.active {
  border-color: var(--kc-gold);
  background: rgba(212, 175, 55, 0.08);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.18);
}
.kc-template-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: var(--kc-radius-sm);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--kc-gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.kc-template-info {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.kc-template-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
  width: 100%;
}
.kc-template-title {
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--kc-text);
  margin: 0;
  word-break: break-word;
}
.kc-template-meta {
  font-size: 0.78rem;
  color: var(--kc-text-muted);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  margin-top: 2px;
}
.kc-template-badge {
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(225, 29, 72, 0.3);
  color: var(--kc-rose);
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}

/* Görsel Ağaç Editörü (Tree Editor) */
.kc-form-group {
  margin-bottom: 18px;
}
.kc-form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--kc-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.kc-input-text {
  width: 100%;
  background: var(--kc-input-bg);
  border: 1px solid var(--kc-card-border);
  border-radius: var(--kc-radius-sm);
  color: var(--kc-text);
  padding: 10px 14px;
  font-size: 0.92rem;
  font-family: inherit;
  transition: var(--kc-transition);
  box-sizing: border-box;
}
.kc-input-text:focus {
  outline: none;
  border-color: var(--kc-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.kc-tree-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.kc-tree-cat-item {
  background: #f8fafc;
  border: 1px solid var(--kc-card-border);
  border-radius: var(--kc-radius-md);
  padding: 14px;
  transition: var(--kc-transition);
  position: relative;
}
.kc-tree-cat-item:hover {
  border-color: rgba(212, 175, 55, 0.6);
  background: #ffffff;
}

/* Çark Dilimine veya Merkeze Tıklanınca Solda Vurgulanan Kart Animasyonu (UX İyileştirmesi) */
.kc-tree-cat-item.kc-item-active-flash,
.kc-input-text.kc-item-active-flash {
  border-color: var(--kc-gold) !important;
  background: #fffdf5 !important;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.35), 0 8px 24px rgba(212, 175, 55, 0.15) !important;
  animation: kcCardPulse 1.2s ease-in-out;
}
@keyframes kcCardPulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.kc-tree-cat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.kc-cat-color-input {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  padding: 0;
  background: #ffffff;
  flex-shrink: 0;
}
.kc-cat-title-input {
  flex: 1;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: var(--kc-text);
  padding: 7px 10px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: var(--kc-transition);
}
.kc-cat-title-input:focus {
  outline: none;
  border-color: var(--kc-gold);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25);
}
.kc-icon-btn {
  background: transparent;
  border: none;
  color: var(--kc-text-muted);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  transition: var(--kc-transition);
  font-size: 0.85rem;
}
.kc-icon-btn:hover {
  color: var(--kc-text);
  background: #e2e8f0;
}
.kc-icon-btn-danger:hover {
  color: var(--kc-rose);
  background: rgba(225, 29, 72, 0.1);
}

.kc-tree-subcats {
  padding-left: 14px;
  border-left: 2px solid rgba(212, 175, 55, 0.35);
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kc-tree-subcat-item {
  background: #ffffff;
  border: 1px solid var(--kc-card-border);
  border-radius: 8px;
  padding: 10px;
  transition: var(--kc-transition);
}
.kc-tree-subcat-item.kc-item-active-flash {
  border-color: var(--kc-gold) !important;
  background: #fffdf5 !important;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3) !important;
}
.kc-tree-subcat-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.kc-tree-subcat-head input {
  flex: 1;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  color: var(--kc-text);
  padding: 5px 8px;
  font-size: 0.84rem;
  font-weight: 600;
}
.kc-tree-subcat-head input:focus {
  outline: none;
  border-color: var(--kc-gold);
  background: #ffffff;
}
.kc-tree-leaves-input {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  color: var(--kc-text-secondary);
  padding: 6px 8px;
  font-size: 0.8rem;
  resize: vertical;
  min-height: 48px;
  box-sizing: border-box;
  font-family: inherit;
}
.kc-tree-leaves-input:focus {
  outline: none;
  border-color: var(--kc-gold);
  background: #ffffff;
}

.kc-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--kc-card-border);
  border-radius: var(--kc-radius-sm);
  color: var(--kc-text-secondary);
  padding: 10px 16px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--kc-transition);
}
.kc-btn-secondary:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--kc-gold);
  color: var(--kc-gold-dark);
}

/* Hızlı Metin (Outline) Modu */
.kc-textarea-outline {
  width: 100%;
  min-height: 280px;
  background: #ffffff;
  border: 1px solid var(--kc-card-border);
  border-radius: var(--kc-radius-sm);
  color: var(--kc-text);
  padding: 14px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.86rem;
  line-height: 1.6;
  resize: vertical;
  box-sizing: border-box;
  margin-bottom: 12px;
}
.kc-textarea-outline:focus {
  outline: none;
  border-color: var(--kc-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}
.kc-outline-help {
  font-size: 0.78rem;
  color: var(--kc-text-muted);
  line-height: 1.5;
  background: #f1f5f9;
  padding: 10px 12px;
  border-radius: 6px;
  border-left: 3px solid var(--kc-gold);
  margin-bottom: 12px;
}

/* Renk Paletleri */
.kc-palettes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.kc-palette-btn {
  background: #ffffff;
  border: 1px solid var(--kc-card-border);
  border-radius: var(--kc-radius-sm);
  padding: 8px;
  cursor: pointer;
  transition: var(--kc-transition);
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.kc-palette-btn:hover {
  border-color: var(--kc-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.kc-palette-btn.active {
  border-color: var(--kc-gold);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.06);
}
.kc-palette-swatches {
  display: flex;
  height: 16px;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.kc-palette-swatches span {
  flex: 1;
}
.kc-palette-name {
  font-size: 0.74rem;
  color: var(--kc-text-secondary);
  font-weight: 700;
  text-align: center;
}

/* Tasarım & Stil Seçicileri */
.kc-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--kc-card-border);
  font-size: 0.86rem;
  color: var(--kc-text-secondary);
}
.kc-switch-row:last-child {
  border-bottom: none;
}
.kc-select {
  background: #ffffff;
  border: 1px solid var(--kc-card-border);
  border-radius: 6px;
  color: var(--kc-text);
  padding: 7px 12px;
  font-size: 0.84rem;
}
.kc-select:focus {
  outline: none;
  border-color: var(--kc-gold);
}

/* ==========================================================================
   SAĞ PANEL: ÇARK GÖRSELİ, ETKİLEŞİM & İNDİRME ALANI (BEYAZ KART)
   ========================================================================== */
.kc-canvas-card {
  background: var(--kc-bg-card);
  border: 1px solid var(--kc-card-border);
  border-radius: var(--kc-radius-lg);
  padding: 26px;
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Üst Araç Çubuğu (Toolbar) */
.kc-canvas-toolbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--kc-card-border);
}

.kc-path-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--kc-text-secondary);
  background: #f8fafc;
  border: 1px solid var(--kc-card-border);
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 600;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kc-path-breadcrumb .kc-active-crumb {
  color: var(--kc-gold-dark);
  font-weight: 700;
}

.kc-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.kc-btn-spin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--kc-gold);
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 10px 24px;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(184, 134, 11, 0.25);
  transition: var(--kc-transition);
}
.kc-btn-spin:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(184, 134, 11, 0.35);
  background: var(--kc-gold-dark);
}
.kc-btn-spin:active {
  transform: translateY(0);
}

/* Canvas Sahnesi */
.kc-stage-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  min-height: 480px;
  user-select: none;
}

/* Çarkın üstündeki altın ibre (Spin esnasında) */
.kc-spin-pointer {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 22px solid #d4af37;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));
  z-index: 20;
  transition: transform 0.15s ease-out;
}
.kc-spin-pointer.wiggle {
  animation: kcPointerWiggle 0.1s ease-in-out infinite alternate;
}
@keyframes kcPointerWiggle {
  from { transform: translateX(-50%) rotate(-4deg); }
  to { transform: translateX(-50%) rotate(4deg); }
}

#sunburstCanvas {
  max-width: 100%;
  height: auto;
  cursor: pointer;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.08));
  transition: transform 0.05s linear;
  border-radius: 50%;
}

/* İndirme & Dışa Aktarma Çubuğu */
.kc-export-bar {
  width: 100%;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--kc-card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.kc-export-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.kc-btn-export {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--kc-radius-sm);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--kc-transition);
  text-decoration: none;
}
.kc-btn-export-primary {
  background: var(--kc-gold);
  color: #0b0d12;
  border: 1px solid var(--kc-gold);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.25);
}
.kc-btn-export-primary:hover {
  background: #e5c058;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}
.kc-btn-export-outline {
  background: #ffffff;
  border: 1px solid var(--kc-card-border);
  color: var(--kc-text-secondary);
}
.kc-btn-export-outline:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--kc-text);
  transform: translateY(-2px);
}

.kc-export-hint {
  font-size: 0.78rem;
  color: var(--kc-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   KAZANAN / RASTGELE SEÇİM MODALI (SPIN WINNER MODAL)
   ========================================================================== */
.kc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.kc-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.kc-modal-card {
  background: #ffffff;
  border: 2px solid var(--kc-gold);
  border-radius: var(--kc-radius-lg);
  padding: 36px 32px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.kc-modal-overlay.active .kc-modal-card {
  transform: scale(1);
}
.kc-modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  border: 2px solid var(--kc-gold);
  color: var(--kc-gold-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  animation: kcPulse 2s infinite;
}
@keyframes kcPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 12px rgba(212, 175, 55, 0); }
}
.kc-modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--kc-text);
  margin: 0 0 8px;
}
.kc-modal-path {
  font-size: 0.9rem;
  color: var(--kc-text-muted);
  margin-bottom: 16px;
}
.kc-modal-result {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--kc-gold-dark);
  background: #fffdf5;
  border: 1px dashed var(--kc-gold);
  padding: 16px;
  border-radius: var(--kc-radius-md);
  margin-bottom: 24px;
  word-break: break-word;
}
.kc-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* Konfeti Canvas */
#confettiCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10000;
}

/* ==========================================================================
   SEO REHBER & SSS (FAQ) BÖLÜMÜ
   ========================================================================== */
.kc-seo-section {
  margin-top: 70px;
  padding-top: 60px;
  border-top: 1px solid var(--kc-card-border);
}

.kc-seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.kc-seo-card {
  background: #ffffff;
  border: 1px solid var(--kc-card-border);
  border-radius: var(--kc-radius-md);
  padding: 28px 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: var(--kc-transition);
}
.kc-seo-card:hover {
  border-color: var(--kc-gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.12);
}
.kc-seo-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--kc-gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.kc-seo-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--kc-text);
  margin: 0 0 10px;
}
.kc-seo-card p {
  font-size: 0.92rem;
  color: var(--kc-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Sıkça Sorulan Sorular (FAQ Accordion) */
.kc-faq-wrapper {
  max-width: 860px;
  margin: 0 auto;
}
.kc-faq-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--kc-text);
  margin-bottom: 32px;
}
.kc-faq-title .gold {
  color: var(--kc-gold-dark);
}

.kc-faq-item {
  background: #ffffff;
  border: 1px solid var(--kc-card-border);
  border-radius: var(--kc-radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: var(--kc-transition);
}
.kc-faq-item.open {
  border-color: var(--kc-gold);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.1);
}
.kc-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: transparent;
  border: none;
  color: var(--kc-text);
  font-size: 0.98rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.kc-faq-question .icon {
  color: var(--kc-gold-dark);
  transition: transform 0.25s ease;
}
.kc-faq-item.open .kc-faq-question .icon {
  transform: rotate(180deg);
}
.kc-faq-answer {
  padding: 0 22px 20px;
  color: var(--kc-text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  display: none;
}
.kc-faq-item.open .kc-faq-answer {
  display: block;
}

/* İlgili Diğer Araçlar Çapraz Tanıtım Bandı */
.kc-cross-tools {
  margin-top: 60px;
  background: #fffdf5;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--kc-radius-lg);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}
.kc-cross-text h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--kc-text);
  margin: 0 0 6px;
}
.kc-cross-text p {
  font-size: 0.92rem;
  color: var(--kc-text-muted);
  margin: 0;
}

/* ==========================================================================
   MAKSİMUM MOBİL UYUMLULUK & DOKUNMATİK OPTİMİZASYONU (RESPONSIVE MASTER)
   ========================================================================== */

/* Tablet & Küçük Masaüstü (<= 991px) */
@media (max-width: 991px) {
  .kc-workspace-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Çark Sahnesi Mobilde Her Zaman En Üstte */
  .kc-canvas-card {
    order: 1;
    margin-bottom: 0;
    padding: 16px 12px;
    border-radius: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Editör Paneli Mobilde Çarkın Hemen Altında */
  .kc-editor-panel {
    order: 2;
    position: static;
    top: auto;
    max-height: none;
    overflow-y: visible;
    padding: 16px 12px;
    border-radius: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .kc-stage-wrapper {
    min-height: auto;
    padding: 4px 0;
    touch-action: pan-y;
  }
}

/* Akıllı Telefonlar (<= 768px) */
@media (max-width: 768px) {
  .kc-page-wrapper {
    padding: 10px 0 60px;
    overflow-x: clip;
    max-width: 100%;
    box-sizing: border-box;
  }

  .kc-container {
    padding: 0 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Üst Gezinme & Dil */
  .kc-top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
  }

  .kc-breadcrumb {
    font-size: 0.78rem;
    flex-wrap: wrap;
    gap: 4px;
  }

  .kc-lang-switcher {
    align-self: flex-start;
  }

  .kc-lang-btn {
    padding: 5px 11px;
    font-size: 0.78rem;
  }

  /* Hero Başlık */
  .kc-hero-header {
    margin-bottom: 14px;
  }

  .kc-badge-pill {
    font-size: 0.70rem;
    padding: 4px 12px;
    margin-bottom: 8px;
  }

  .kc-hero-title {
    font-size: 1.42rem;
    line-height: 1.28;
    margin-bottom: 6px;
  }

  .kc-hero-desc {
    font-size: 0.85rem;
    line-height: 1.45;
  }

  /* Yapışkan Üst Sekme Barı */
  .kc-top-tabs-bar {
    padding: 6px 0;
    margin-bottom: 14px;
    top: var(--main-header-h, 125px);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .kc-tabs-container {
    padding: 0 6px;
    width: 100%;
    box-sizing: border-box;
  }

  .kc-tabs-header {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    border-radius: 50px;
    padding: 3px;
    gap: 4px;
    justify-content: flex-start;
    box-sizing: border-box;
  }

  .kc-tabs-header::-webkit-scrollbar {
    display: none;
  }

  .kc-tab-btn {
    padding: 8px 12px;
    font-size: 0.78rem;
    gap: 5px;
    border-radius: 50px;
    min-height: 36px;
    flex-shrink: 0;
  }

  /* Çark Araç Çubuğu & "Bana Karar Ver!" Butonu */
  .kc-canvas-toolbar {
    flex-direction: column-reverse;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
  }

  .kc-toolbar-actions {
    width: 100%;
  }

  .kc-btn-spin {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
    font-size: 1rem;
    border-radius: 12px;
    min-height: 48px;
    box-shadow: 0 4px 14px rgba(184, 134, 11, 0.25);
  }

  .kc-path-breadcrumb {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 0.78rem;
    padding: 7px 12px;
    box-sizing: border-box;
    overflow-x: auto;
    white-space: nowrap;
  }

  /* Çark Görseli */
  #sunburstCanvas {
    touch-action: pan-y;
    border-radius: 50%;
  }

  .kc-spin-pointer {
    top: 2px;
  }

  /* İndirme & Dışa Aktarma Butonları (Grid Düzen) */
  .kc-export-bar {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    margin-top: 16px;
    padding-top: 16px;
  }

  .kc-export-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .kc-btn-export-primary {
    grid-column: span 2;
    justify-content: center;
    padding: 13px 16px;
    font-size: 0.90rem;
    border-radius: 10px;
    min-height: 46px;
  }

  .kc-btn-export-outline {
    justify-content: center;
    padding: 11px 12px;
    font-size: 0.82rem;
    border-radius: 10px;
    min-height: 44px;
  }

  #btnPrint {
    display: none;
  }

  .kc-export-hint {
    justify-content: center;
    font-size: 0.76rem;
    text-align: center;
  }

  /* Şablon Kartları Mobilde Tam Sığma */
  .kc-templates-list {
    gap: 8px;
    width: 100%;
    max-width: 100%;
  }

  .kc-template-card {
    padding: 10px 10px;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .kc-template-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 1rem;
  }

  .kc-template-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    flex-wrap: wrap;
    width: 100%;
  }

  .kc-template-title {
    font-size: 0.86rem;
    line-height: 1.25;
    margin: 0;
  }

  .kc-template-badge {
    font-size: 0.60rem;
    padding: 2px 5px;
    letter-spacing: 0.2px;
  }

  .kc-template-meta {
    font-size: 0.73rem;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* iOS Otomatik Zoom Engelleme (Font-size 16px) */
  .kc-input-text,
  .kc-cat-title-input,
  .subcat-title-input,
  .kc-tree-leaves-input,
  .kc-textarea-outline,
  .kc-select {
    font-size: 16px !important;
    border-radius: 8px;
  }

  /* Ağaç Editörü Kartları */
  .kc-tree-cat-item {
    padding: 12px 10px;
    border-radius: 10px;
  }

  .kc-tree-cat-head {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .kc-cat-color-input {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }

  .kc-cat-title-input {
    padding: 8px 10px;
    min-height: 38px;
  }

  .kc-tree-subcat-item {
    padding: 10px 8px;
  }

  .kc-tree-subcat-head {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .kc-icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .kc-btn-outline-dashed {
    min-height: 42px;
    font-size: 0.86rem;
    padding: 10px 14px;
  }

  .kc-btn-primary {
    min-height: 44px;
    font-size: 0.90rem;
  }

  /* Paletler Grid */
  .kc-palettes-grid {
    grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
    gap: 8px;
  }

  .kc-palette-btn {
    padding: 8px 6px;
  }

  /* Kazanan Modal */
  .kc-modal-card {
    padding: 24px 16px;
    max-width: calc(100vw - 32px);
    border-radius: 16px;
  }

  .kc-modal-icon {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
    margin-bottom: 14px;
  }

  .kc-modal-title {
    font-size: 1.25rem;
    margin-bottom: 6px;
  }

  .kc-modal-path {
    font-size: 0.82rem;
    margin-bottom: 12px;
  }

  .kc-modal-result {
    font-size: 1.35rem;
    padding: 12px 8px;
    margin-bottom: 18px;
  }

  .kc-modal-actions {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .kc-modal-actions button {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  /* SEO & SSS */
  .kc-seo-section {
    margin-top: 36px;
    padding-top: 30px;
  }

  .kc-seo-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 30px;
  }

  .kc-seo-card {
    padding: 18px 16px;
    border-radius: 12px;
  }

  .kc-seo-card-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    margin-bottom: 12px;
  }

  .kc-seo-card h3 {
    font-size: 1.05rem;
  }

  .kc-seo-card p {
    font-size: 0.86rem;
  }

  .kc-faq-title {
    font-size: 1.35rem;
    margin-bottom: 18px;
  }

  .kc-faq-question {
    padding: 14px 16px;
    font-size: 0.88rem;
  }

  .kc-faq-answer {
    padding: 0 16px 14px;
    font-size: 0.84rem;
  }

  /* Çapraz Tanıtım */
  .kc-cross-tools {
    margin-top: 32px;
    padding: 20px 16px;
    flex-direction: column;
    text-align: center;
    gap: 14px;
    border-radius: 16px;
  }

  .kc-cross-text h4 {
    font-size: 1.1rem;
  }

  .kc-cross-text p {
    font-size: 0.84rem;
  }

  .kc-cross-tools a {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }
}

/* Küçük Ekranlar (<= 420px) */
@media (max-width: 420px) {
  .kc-export-group {
    grid-template-columns: 1fr;
  }

  .kc-btn-export-primary {
    grid-column: span 1;
  }

  .kc-tab-btn {
    padding: 7px 11px;
    font-size: 0.76rem;
  }
}
