/* ============================================================
   AI Asistan paneli (AI Tablo — Çekirdek 5): .aia-*
   ============================================================ */
.aia-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.38); z-index: 640; }
.aia-panel { position: fixed; top: 0; right: 0; height: 100vh; width: 380px; max-width: 92vw;
    background: var(--bg-surface); border-left: 1px solid var(--border); z-index: 650;
    display: flex; flex-direction: column; transform: translateX(105%); transition: transform .22s ease;
    box-shadow: -14px 0 40px rgba(0,0,0,.35); }
.aia-panel.open { transform: translateX(0); }
.aia-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.aia-title { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--text-primary); }
.aia-title svg { width: 19px; height: 19px; color: var(--accent2); }
.aia-body { padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.aia-lbl { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.aia-panel textarea, .aia-input { width: 100%; background: var(--bg-elevated); border: 1px solid var(--border-strong); border-radius: 12px; padding: 11px 13px; color: var(--text-primary); font-size: 14px; font-family: inherit; resize: vertical; outline: none; }
.aia-panel textarea:focus, .aia-input:focus { border-color: var(--accent); }
.aia-run { width: 100%; justify-content: center; }
.aia-sec { margin-top: 8px; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--text-muted); display: flex; align-items: center; justify-content: space-between; }
/* Katlanır bölümler (akordeon) */
.aia-sec { cursor: pointer; user-select: none; padding: 9px 2px; border-top: 1px solid var(--border); transition: color .14s; }
.aia-sec:hover { color: var(--text-secondary); }
.aia-sec::after { content: "\25B8"; margin-left: 8px; font-size: 11px; line-height: 1; transition: transform .18s; flex: 0 0 auto; }
.aia-sec.aia-open::after { transform: rotate(90deg); }
.aia-hist-head .aia-mini { margin-left: auto; }
.aia-hidden { display: none !important; }
.aia-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.aia-quick button { display: inline-flex; align-items: center; gap: 8px; padding: 11px 12px; border-radius: 11px; background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-primary); font-size: 13px; font-weight: 600; cursor: pointer; transition: .14s; }
.aia-quick button:hover { border-color: var(--accent2); color: var(--accent2); }
.aia-quick button svg { width: 16px; height: 16px; }
.aia-result { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; color: var(--text-secondary); display: flex; flex-direction: column; gap: 10px; }
/* AI Asistan sonuç popup'ı (panel üstünde, ortada) */
.aia-pop { position: fixed; inset: 0; z-index: 700; display: flex; align-items: center; justify-content: center; padding: 16px; }
.aia-pop[hidden] { display: none; }
.aia-pop-back { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.aia-pop-card { position: relative; width: min(920px, 100%); max-height: 86vh; display: flex; flex-direction: column;
    background: var(--bg-surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.4); overflow: hidden;
    animation: aiaPopIn .16s ease; }
@keyframes aiaPopIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.aia-pop-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.aia-pop-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--text-primary); }
.aia-pop-title svg { width: 18px; height: 18px; color: var(--accent); }
.aia-pop-body.aia-result { border: 0; border-radius: 0; background: transparent; padding: 16px 18px 18px; overflow-y: auto; min-height: 0; font-size: 14px; }
.aia-pop textarea { width: 100%; background: var(--bg-elevated); border: 1px solid var(--border-strong); border-radius: 12px; padding: 11px 13px; color: var(--text-primary); font-size: 14px; font-family: inherit; resize: vertical; outline: none; }
body.aia-pop-open { overflow: hidden; }
/* AI sonuçlarından açılan Rapor / Dashboard / Veri Formu modalları panelin ve sonuç popup'ının ÜSTÜNDE görünsün */
#repModal, #dashModal, #dataFormModal { z-index: 710; }
/* Atmos AI — Klasör */
.aic-folder-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg-surface); color: var(--text-secondary); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.aic-folder-btn:hover, .aic-folder-btn.active { border-color: var(--accent-dim); color: var(--accent-bright); background: var(--accent-soft); }
.aic-folder-btn svg { width: 15px; height: 15px; }
.aic-folder-chip { margin: 8px 0 0; }
.aic-folder-used { margin-top: 6px; }
.aic-prog { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.aic-prog .aic-dots { display: inline-flex; }

/* AI Asistan — Klasör */
.aia-folder-chip { display: flex; align-items: center; gap: 7px; margin: 2px 0 8px; padding: 7px 8px 7px 10px; border: 1px solid var(--accent-dim); background: var(--accent-soft); border-radius: 10px; font-size: 13px; color: var(--text-primary); min-width: 0; }
.aia-folder-chip[hidden] { display: none; }
.aia-folder-chip.needs-perm { border-style: dashed; }
.aia-folder-chip svg { width: 16px; height: 16px; color: var(--accent); flex: 0 0 auto; }
.aia-folder-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.aia-folder-meta { color: var(--text-muted); font-size: 12px; white-space: nowrap; }
.aia-folder-x { margin-left: auto; flex: 0 0 auto; width: 24px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--text-muted); cursor: pointer; }
.aia-folder-x:hover { background: rgba(240,85,109,.14); color: var(--danger); }
.aia-folder-x svg { width: 14px; height: 14px; color: inherit; }
.aia-folder-box { display: flex; flex-direction: column; gap: 8px; }
.aia-folder-files { max-height: 180px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; font-size: 12px; color: var(--text-secondary); }
.aia-folder-files[hidden] { display: none; }
.aia-folder-files-h { font-weight: 700; margin-bottom: 4px; color: var(--text-primary); }
.aia-folder-file { display: flex; align-items: center; gap: 5px; padding: 1px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aia-folder-file svg { width: 12px; height: 12px; flex: 0 0 auto; }
.aia-folder-used { font-size: 12px; color: var(--text-muted); }
.aia-folder-used summary { cursor: pointer; }
.aia-answer { font-size: 14px; line-height: 1.6; color: var(--text-primary); }
.aia-answer p { margin: 0 0 6px; }
.aia-answer ul { margin: 4px 0 8px; padding-left: 20px; }
.aia-answer ol { margin: 4px 0 8px; padding-left: 22px; }
.aia-answer li { margin: 2px 0; }
.aia-answer .aic-tbl { margin: 6px 0 10px; }
.aia-answer .aic-tbl table { font-size: 12.5px; }

.aia-lastres { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; background: transparent; border: 1px dashed var(--border-strong); color: var(--text-secondary);
    border-radius: 10px; padding: 7px 12px; font-size: 13px; cursor: pointer; }
.aia-lastres[hidden] { display: none; }
.aia-lastres:hover { color: var(--accent); border-color: var(--accent); }
.aia-lastres svg { width: 15px; height: 15px; }
@media (max-width: 640px) { .aia-pop { padding: 0; align-items: flex-end; } .aia-pop-card { max-height: 92vh; border-radius: 16px 16px 0 0; } }
.aia-ok { display: flex; align-items: center; gap: 8px; color: #16b364; font-weight: 600; }
.aia-ok svg, .aia-err svg { width: 17px; height: 17px; flex-shrink: 0; }
.aia-err { display: flex; align-items: center; gap: 8px; color: var(--danger); font-weight: 600; }
.aia-badge { background: var(--accent-soft, rgba(20,184,166,.14)); color: var(--accent); border-radius: 999px; padding: 1px 9px; font-size: 12px; font-weight: 700; }
.aia-subtitle { color: var(--text-secondary); font-size: 13px; }
.aia-issue { display: flex; align-items: flex-start; gap: 9px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; color: var(--text-primary); cursor: pointer; }
.aia-issue input { margin-top: 2px; accent-color: var(--accent); }
.aia-issue small { display: block; color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.aia-spin { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--border-strong); border-top-color: var(--accent); border-radius: 50%; animation: aia-rot .7s linear infinite; vertical-align: -2px; margin-right: 6px; }
@keyframes aia-rot { to { transform: rotate(360deg); } }
.aia-hist-head { margin-top: 10px; }
.aia-mini { background: none; border: 0; color: var(--text-muted); cursor: pointer; display: inline-flex; padding: 2px; }
.aia-mini:hover { color: var(--accent); }
.aia-mini svg { width: 15px; height: 15px; }
.aia-hist { display: flex; flex-direction: column; gap: 6px; }
.aia-empty { color: var(--text-muted); font-size: 13px; padding: 6px 0; }
.aia-hist-row { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-elevated); }
.aia-hist-row.undone { opacity: .55; }
.aia-hist-main { flex: 1; min-width: 0; }
.aia-hist-sum { font-size: 13px; color: var(--text-primary); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aia-hist-meta { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.aia-undo { flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-surface); color: var(--text-muted); display: grid; place-items: center; cursor: pointer; }
.aia-undo:hover { color: var(--accent2); border-color: var(--accent2); }
.aia-undo svg { width: 15px; height: 15px; }
@media (max-width: 480px) { .aia-quick { grid-template-columns: 1fr; } }

/* ---- AI Rapor (panel içi) ---- */
.aia-report { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.aia-rep-title { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--text-primary); }
.aia-rep-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; margin-bottom: 8px; }
.aia-rep-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.aia-rep-metric { display: flex; flex-direction: column; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 9px; padding: 8px 10px; }
.aia-rep-metric span { font-size: 11px; color: var(--text-muted); }
.aia-rep-metric b { font-size: 15px; color: var(--accent-bright); }
.aia-rep-narr { font-size: 13px; line-height: 1.5; color: var(--text-secondary); margin-bottom: 8px; }
.aia-rep-h { font-size: 12px; font-weight: 700; color: var(--accent2); margin: 6px 0 4px; }
.aia-rep-find { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--text-secondary); line-height: 1.5; }

/* ---- AI Dashboard modalı ---- */
/* .modal'ın max-width: 440px'ı bu genişliği eziyordu → max-width de açıkça ayarlanır */
.dash-modal { width: min(1120px, 96vw); max-width: 1120px; max-height: 92vh; display: flex; flex-direction: column; }
/* Geniş ekranda dashboard grafikleri yan yana 2'li (KPI/içgörü satırları tam genişlik) */
@media (min-width: 900px) {
    #dashBody { flex-direction: row; flex-wrap: wrap; }
    #dashBody > * { flex: 1 1 100%; min-width: 0; }
    #dashBody > .dash-chart { flex: 1 1 calc(50% - 8px); }
}
.dash-body { overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.dash-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.dash-kpi { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 14px; padding: 16px; text-align: center; }
.dash-kpi-v { font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--accent-bright); }
.dash-kpi-l { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }
.dash-chart { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.dash-chart-t { font-weight: 700; font-size: 14px; color: var(--text-primary); margin-bottom: 10px; }
.dash-chart canvas { max-height: 300px; }
.dash-ins-h { font-weight: 700; color: var(--accent2); font-size: 14px; }
.dash-ins { margin: 0; padding-left: 18px; color: var(--text-secondary); font-size: 13.5px; line-height: 1.6; }

/* ---- AI Agent (çok-adımlı) ---- */
.aia-cmd-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.aia-cmd-actions .btn { padding: 9px 12px; font-size: 13px; }
.aia-cmd-actions .aia-run { flex: 1 1 120px; justify-content: center; }
.aia-agent-btn { flex: 1 1 auto; justify-content: center; background: var(--bg-elevated); border: 1px solid var(--accent2); color: var(--accent2); font-weight: 700; }
.aia-agent-btn:hover { background: var(--accent2); color: #fff; }
/* Komut kutusu daha rahat yazılsın */
#aiaCmd { min-height: 92px; line-height: 1.45; }
.aia-steps { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.aia-step { display: flex; gap: 10px; align-items: flex-start; padding: 9px 11px; border: 1px solid var(--border); border-left-width: 3px; border-radius: 10px; background: var(--bg-surface); }
.aia-step svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; }
.aia-step.ok { border-left-color: #16b364; } .aia-step.ok svg { color: #16b364; }
.aia-step.skip { border-left-color: var(--text-muted); } .aia-step.skip svg { color: var(--text-muted); }
.aia-step.error { border-left-color: var(--danger); } .aia-step.error svg { color: var(--danger); }
.aia-step-main { min-width: 0; }
.aia-step-t { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.aia-step-s { font-size: 12px; color: var(--text-muted); margin-top: 2px; line-height: 1.45; }

/* ---- AI Otomasyon (zamanlanmış) ---- */
.aia-auto-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-elevated); }
.aia-auto-form select, .aia-auto-form input { width: 100%; }
.aia-auto-row { display: flex; gap: 8px; }
.aia-auto-row > * { flex: 1; }
.aia-auto-list { display: flex; flex-direction: column; gap: 6px; }
.aia-auto { display: flex; align-items: flex-start; gap: 8px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-elevated); }
.aia-auto.off { opacity: .6; }
.aia-auto-main { flex: 1; min-width: 0; }
.aia-auto-name { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.aia-auto-meta { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.aia-auto-last { font-size: 11.5px; color: var(--text-secondary); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aia-auto-acts { display: flex; gap: 4px; flex-shrink: 0; }
.aia-auto-acts .aia-undo { width: 28px; height: 28px; }

/* ---- AI Asistan sesle yaz (mikrofon) ---- */
.aia-mic-btn { flex-shrink: 0; width: 44px; border: 1px solid var(--border-strong); border-radius: 11px; background: var(--bg-elevated); color: var(--text-secondary); display: grid; place-items: center; cursor: pointer; transition: .14s; }
.aia-mic-btn:hover { border-color: var(--accent); color: var(--accent); }
.aia-mic-btn svg { width: 18px; height: 18px; }
.aia-mic-btn.rec { background: var(--danger); color: #fff; border-color: var(--danger); animation: aia-pulse 1.2s ease-in-out infinite; }
@keyframes aia-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(240,85,109,.5); } 50% { box-shadow: 0 0 0 6px rgba(240,85,109,0); } }

/* ===== AI Asistan — Grup A: Öneriler / Çalışanlar / Radar / Formül ===== */
/* Proaktif öneriler */
.aia-suggest { display: flex; flex-direction: column; gap: 6px; }
.aia-sugg { display: flex; align-items: center; gap: 8px; text-align: left; width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-elevated); color: var(--text-primary); font-size: 13px; font-weight: 600; cursor: pointer; transition: .14s; }
.aia-sugg:hover { border-color: var(--accent); background: var(--bg-surface); }
.aia-sugg-i { font-size: 15px; line-height: 1; flex-shrink: 0; }

/* AI Çalışanlar (persona) */
.aia-personas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.aia-persona { display: flex; align-items: center; gap: 8px; padding: 10px 11px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-elevated); color: var(--text-primary); cursor: pointer; transition: .14s; text-align: left; }
.aia-persona:hover { border-color: var(--accent); background: var(--bg-surface); transform: translateY(-1px); }
.aia-persona-i { font-size: 20px; line-height: 1; flex-shrink: 0; }
.aia-persona-n { font-size: 12.5px; font-weight: 700; line-height: 1.25; }
@media (max-width: 480px) { .aia-personas { grid-template-columns: 1fr; } }

/* Şüpheli veri radarı */
.aia-anoms { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.aia-anom { display: block; width: 100%; text-align: left; padding: 9px 11px; border: 1px solid var(--border); border-left-width: 3px; border-radius: 10px; background: var(--bg-surface); cursor: pointer; transition: .14s; }
.aia-anom:hover { background: var(--bg-elevated); }
.aia-anom.high { border-left-color: var(--danger); }
.aia-anom.medium { border-left-color: #f5a623; }
.aia-anom-h { font-size: 12.5px; color: var(--text-primary); }
.aia-anom-h b { color: var(--accent-bright); }
.aia-anom-v { color: var(--text-secondary); font-weight: 600; }
.aia-anom-r { font-size: 11.5px; color: var(--text-muted); margin-top: 3px; line-height: 1.45; }

/* Formül açıkla / basitleştir */
.aia-fx { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.aia-fx code { display: block; font-family: var(--font-mono, monospace); font-size: 12.5px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 8px; padding: 7px 9px; color: var(--accent-bright); overflow-x: auto; white-space: pre-wrap; word-break: break-word; }
.aia-fx-e { font-size: 13px; line-height: 1.55; color: var(--text-secondary); }
.aia-fx-simp { border-top: 1px dashed var(--border); padding-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.aia-fx-simp-h { font-size: 12px; font-weight: 700; color: var(--text-primary); }
.aia-fx-note { font-size: 11.5px; color: var(--text-muted); line-height: 1.45; }

/* ===== AI Asistan — Grup B: Plan / Simülasyon / Amaç / Veri Soyu / Kural ===== */
.aia-hint { font-size: 11.5px; color: var(--text-muted); margin: -2px 0 4px; line-height: 1.4; }

/* Plan önizleme */
.aia-plan, .aia-sim, .aia-lin { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.aia-plan-h { font-weight: 700; font-size: 13.5px; color: var(--text-primary); display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.aia-plan-h svg { width: 16px; height: 16px; color: var(--accent); }
.aia-plan-ops { display: flex; flex-direction: column; gap: 5px; max-height: 240px; overflow-y: auto; }
.aia-plan-op { display: flex; align-items: center; gap: 7px; font-size: 12.5px; padding: 5px 7px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 8px; }
.aia-plan-op b { color: var(--accent-bright); flex-shrink: 0; }
.aia-plan-op svg { width: 13px; height: 13px; color: var(--text-muted); flex-shrink: 0; }
.aia-plan-old { color: var(--text-muted); text-decoration: line-through; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40%; }
.aia-plan-new { color: #16b364; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aia-plan-acts { display: flex; gap: 8px; margin-top: 10px; }

/* Simülasyon tablosu */
.aia-sim-t { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 4px; }
.aia-sim-t th { text-align: left; color: var(--text-muted); font-weight: 600; padding: 5px 6px; border-bottom: 1px solid var(--border); font-size: 11.5px; }
.aia-sim-t td { padding: 6px; border-bottom: 1px solid var(--border); color: var(--text-primary); }
.aia-sim-t td.up { color: #16b364; font-weight: 600; }
.aia-sim-t td.down { color: var(--danger); font-weight: 600; }

/* Veri soyu ağacı */
.aia-lin-tree { margin-top: 6px; }
.aia-lin-node { margin-top: 4px; }
.aia-lin-cell { display: block; width: 100%; text-align: left; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-elevated); cursor: pointer; }
.aia-lin-cell:hover { border-color: var(--accent); }
.aia-lin-cell b { color: var(--accent-bright); margin-right: 6px; }
.aia-lin-cell code { font-family: var(--font-mono, monospace); font-size: 11.5px; color: var(--text-secondary); margin-right: 6px; }
.aia-lin-cell .aia-lin-v { font-size: 12px; color: var(--text-primary); font-weight: 600; }
.aia-lin-cell small { display: block; color: var(--text-muted); font-size: 10.5px; margin-top: 2px; }
.aia-lin-kids { margin-left: 14px; padding-left: 8px; border-left: 2px solid var(--border); }

/* ===== AI Asistan — Grup C: Veri Formu / Mini Uygulama ===== */
/* Veri giriş formu */
.dataform-body { display: flex; flex-direction: column; gap: 12px; padding: 4px 2px; max-height: 60vh; overflow-y: auto; }
.df-field { display: flex; flex-direction: column; gap: 5px; }
.df-lbl { font-size: 12.5px; font-weight: 600; color: var(--text-secondary); }
.df-input { width: 100%; padding: 9px 11px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--bg-elevated); color: var(--text-primary); font-size: 14px; }
.df-input:focus { outline: none; border-color: var(--accent); }
.dataform-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

/* Mini uygulama (ortalanmış popup — Analiz Et gibi) */
.miniapp-overlay { position: fixed; inset: 0; z-index: 4000; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.miniapp-overlay[hidden] { display: none !important; }
.miniapp-modal { width: min(480px, 94vw); max-height: 88vh; display: flex; flex-direction: column; background: var(--bg-base, var(--bg-surface)); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,.45); }
.miniapp-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--bg-elevated); }
.miniapp-title { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--text-primary); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.miniapp-head .icon-mini { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--border); background: var(--bg-surface); color: var(--text-secondary); cursor: pointer; }
.miniapp-head .icon-mini:hover { color: var(--accent); border-color: var(--accent); }
.miniapp-search { display: flex; align-items: center; gap: 8px; margin: 12px 16px 0; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--bg-elevated); }
.miniapp-search svg { width: 18px; height: 18px; color: var(--text-muted); }
.miniapp-search input { flex: 1; border: 0; background: none; color: var(--text-primary); font-size: 15px; outline: none; }
.miniapp-stats { display: flex; gap: 10px; padding: 12px 16px 0; }
.miniapp-stat { flex: 1; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 12px; padding: 12px; text-align: center; }
.miniapp-stat b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--accent-bright); }
.miniapp-stat span { font-size: 11.5px; color: var(--text-muted); }
.miniapp-list { flex: 1; overflow-y: auto; padding: 12px 16px 24px; display: flex; flex-direction: column; gap: 8px; }
.miniapp-card { text-align: left; width: 100%; padding: 13px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-elevated); cursor: pointer; transition: .14s; }
.miniapp-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.miniapp-card-t { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.miniapp-card-subs { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 5px; }
.miniapp-card-f { font-size: 12px; color: var(--text-secondary); }
.miniapp-card-f i { color: var(--text-muted); font-style: normal; }
.miniapp-detail { flex: 1; overflow-y: auto; padding: 14px 16px 24px; }
.miniapp-detail-back { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--accent); font-size: 14px; font-weight: 600; cursor: pointer; margin-bottom: 12px; }
.miniapp-detail-back svg { width: 16px; height: 16px; }
.miniapp-detail-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.miniapp-detail-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.miniapp-detail-row:last-child { border-bottom: 0; }
.miniapp-detail-l { font-size: 12.5px; color: var(--text-muted); }
.miniapp-detail-v { font-size: 14px; color: var(--text-primary); font-weight: 600; text-align: right; word-break: break-word; }
.miniapp-detail { max-height: 60vh; }

