/* ============================================================
   SEMCD Risk Paneli — app.css
   ============================================================ */
:root {
    --teal-700: #0f766e;
    --teal-600: #0d9488;
    --teal-50: #f0fdfa;
    --ink: #0f172a;
    --slate-500: #64748b;
    --slate-200: #e2e8f0;
    --bg: #f4f6fa;
    --card-radius: 16px;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.app-main {
    flex: 1 0 auto;
}

.app-navbar {
    background: linear-gradient(90deg, #134e4a 0%, #0f766e 55%, #115e59 100%);
    box-shadow: 0 2px 12px rgba(15, 23, 42, .18);
}

.app-navbar .navbar-brand { color: #fff; font-weight: 700; letter-spacing: .01em; }
.app-navbar .nav-link { color: rgba(255,255,255,.78); font-weight: 500; border-radius: 8px; padding: .45rem .8rem; }
.app-navbar .nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.app-navbar .nav-link.active { color: #fff; background: rgba(255,255,255,.14); }

.brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 10px;
    background: rgba(255,255,255,.16); color: #fff; font-size: 1.05rem;
}
.brand-mark-lg { width: 56px; height: 56px; border-radius: 16px; font-size: 1.7rem; background: var(--teal-700); }

.card { border-radius: var(--card-radius); }
.shadow-sm { box-shadow: 0 1px 2px rgba(15,23,42,.05), 0 6px 20px rgba(15,23,42,.05) !important; }

.btn-brand {
    --bs-btn-bg: var(--teal-700);
    --bs-btn-border-color: var(--teal-700);
    --bs-btn-hover-bg: #0c5d57;
    --bs-btn-hover-border-color: #0c5d57;
    --bs-btn-active-bg: #0a504b;
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    font-weight: 600;
}
.text-teal { color: var(--teal-700) !important; }

.stat-card .stat-icon,
.score-banner .stat-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 13px; font-size: 1.25rem; color: #fff; flex-shrink: 0;
}
.bg-teal { background: var(--teal-600); }
.bg-blue { background: #2563eb; }
.bg-green { background: #059669; }
.bg-amber { background: #d97706; }
.bg-slate { background: #475569; }
.stat-value { font-size: 1.65rem; font-weight: 700; line-height: 1.15; }
.stat-label { font-size: .8rem; color: var(--slate-500); }

.mono-link { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.status-completed { background: var(--teal-50); color: var(--teal-700); border: 1px solid #99f6e4; }
.status-progress { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

.app-footer { flex-shrink: 0; border-top: 1px solid var(--slate-200); background: #fff; }

/* ---------- auth ---------- */
.auth-wrapper {
    flex: 1; display: flex; align-items: center; justify-content: center;
    padding: 40px 16px;
    background:
        radial-gradient(1000px 480px at 85% -10%, rgba(13,148,136,.14), transparent),
        radial-gradient(800px 420px at -10% 110%, rgba(37,99,235,.08), transparent);
}
.auth-card { width: 100%; max-width: 460px; }

/* ---------- wizard ---------- */
.wizard-progress-card .progress { background: var(--slate-200); border-radius: 999px; }
.wizard-panel .card-body { animation: fadeIn .22s ease; }
@keyframes fadeIn { from { opacity: .35; transform: translateY(4px);} to { opacity: 1; transform: none;} }

.clinical-note {
    background: #f8fafc; border-left: 3px solid var(--teal-600);
    padding: .6rem .9rem; border-radius: 0 8px 8px 0;
}

.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.choice-grid-lg { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.choice-card {
    position: relative; text-align: left;
    border: 1.5px solid var(--slate-200); background: #fff;
    border-radius: 14px; padding: 1.1rem 1.25rem;
    transition: all .15s ease; cursor: pointer; min-height: 76px;
    display: flex; flex-direction: column; gap: 2px;
}
.choice-card:hover { border-color: var(--teal-600); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(15,118,110,.12); }
.choice-card:focus-visible { outline: 3px solid rgba(13,148,136,.35); outline-offset: 1px; }
.choice-title { font-weight: 600; }
.choice-sub { font-size: .8rem; color: var(--slate-500); }
.choice-icon { font-size: 1.3rem; color: var(--teal-700); margin-bottom: .25rem; }
.check-indicator {
    position: absolute; top: 10px; right: 12px;
    width: 22px; height: 22px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--teal-700); color: #fff; font-size: .85rem;
    opacity: 0; transform: scale(.5); transition: all .15s ease;
}
.choice-card.selected { border-color: var(--teal-700); background: var(--teal-50); box-shadow: inset 0 0 0 1px var(--teal-700); }
.choice-card.selected .check-indicator { opacity: 1; transform: scale(1); }

.number-input-group { max-width: 340px; }
.unit-badge { font-weight: 600; color: var(--teal-700); background: var(--teal-50); border-color: var(--slate-200); }
.auto-category-hint { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.category-chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fff; border: 1.5px solid var(--slate-200);
    border-radius: 999px; padding: .35rem .95rem; font-size: .88rem; font-weight: 600;
}
.category-chip .points-badge {
    background: var(--teal-700); color: #fff; border-radius: 999px;
    font-size: .72rem; padding: .1rem .5rem; font-weight: 700;
}
.category-chip.unfavorable { border-color: #fca5a5; background: #fef2f2; }
.category-chip.unfavorable .points-badge { background: #dc2626; }

.live-score {
    font-size: 1.5rem; font-weight: 800; color: var(--teal-700);
    font-variant-numeric: tabular-nums; line-height: 1.1;
}
.review-block li { display: flex; justify-content: space-between; gap: 12px; padding: .28rem 0; border-bottom: 1px dashed var(--slate-200); }
.review-block li:last-child { border-bottom: 0; }

/* ---------- score hero ---------- */
.score-hero { background: linear-gradient(180deg, #ffffff 0%, var(--teal-50) 130%); }
.score-gauge { width: min(320px, 80%); height: auto; margin-top: .5rem; }
.gauge-track { fill: none; stroke: var(--slate-200); stroke-width: 14; stroke-linecap: round; }
.gauge-value {
    fill: none; stroke: var(--teal-600); stroke-width: 14; stroke-linecap: round;
    stroke-dasharray: 283; stroke-dashoffset: calc(283 - 283 * var(--pct) / 100);
}
.gauge-score { font-size: 26px; font-weight: 800; fill: var(--ink); font-variant-numeric: tabular-nums; }

.mini-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; background: #fff; border: 1px solid var(--slate-200); border-radius: 12px; padding: .6rem 1.4rem; }
.mini-stat-value { font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.mini-stat-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--slate-500); }

.disclaimer-box {
    background: #fffbeb; border: 1px solid #fcd34d; color: #78350f;
    border-radius: 12px; padding: .75rem 1rem; font-size: .86rem; text-align: left;
}
.point-neg { color: #dc2626; }
.point-zero { color: var(--slate-500); }
.point-total { color: var(--teal-700); }

.extra-vars dt { padding: .15rem 0; }
.extra-vars dd { padding: .15rem 0; margin-bottom: 0; font-weight: 600; border-bottom: 1px dashed var(--slate-200); }

.formula-box { background: #0f172a; color: #a5f3fc; border-radius: 10px; padding: .9rem 1.1rem; font-size: .85rem; }
.study-meta li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--slate-200); padding: .4rem 0; font-size: .9rem; }
.study-meta li span { color: var(--slate-500); }
.concept-card { background: linear-gradient(160deg, #fff 60%, #ecfeff 100%); }

@media (max-width: 576px) {
    .live-score { font-size: 1.15rem; }
    .choice-card { min-height: 64px; }
}

@media print {
    .app-navbar, .app-footer, .btn { display: none !important; }
    body { background: #fff; }
    .shadow-sm { box-shadow: none !important; }
}

/* ============ KayraBot Rapor / Yazdırma ============ */
:root {
    --kb-navy: #0b2545;
    --kb-teal: #0e7490;
    --kb-line: #dbe4ee;
}
.report-toolbar {
    background: #fff;
    border-bottom: 1px solid var(--kb-line);
    position: sticky;
    top: 0;
    z-index: 10;
}
.report-body { background: #f2f6fb; }
.report-page { max-width: 980px; }
.report-header {
    background: linear-gradient(135deg, var(--kb-navy) 0%, #13375f 55%, var(--kb-teal) 100%);
    color: #fff;
    border-radius: 14px;
    padding: 22px 26px;
    margin-bottom: 26px;
}
.report-brand { font-size: 1.35rem; font-weight: 700; letter-spacing: .3px; }
.report-brand span { font-weight: 300; opacity: .92; }
.report-brand-sub { font-size: .8rem; opacity: .85; }
.report-brand-mark {
    width: 52px; height: 52px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35);
    font-size: 1.6rem; color: #fff; flex: 0 0 auto;
}
table.report-meta { font-size: .78rem; color: rgba(255,255,255,.95); }
table.report-meta th { text-transform: uppercase; font-weight: 600; opacity: .7; padding-right: 12px; text-align: left; }
table.report-meta td { font-weight: 600; }
.report-title {
    font-size: .95rem; font-weight: 700; color: var(--kb-navy);
    border-left: 4px solid var(--kb-teal);
    padding-left: 10px; margin: 22px 0 12px;
}
.report-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.report-card { background: #fff; border: 1px solid var(--kb-line); border-radius: 12px; padding: 14px 16px; }
.report-card-value { font-size: 1.45rem; font-weight: 700; color: var(--kb-teal); line-height: 1.15; }
.report-card-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .4px; color: #64748b; margin-top: 2px; }
.report-table {
    width: 100%; background: #fff; border-collapse: collapse;
    border: 1px solid var(--kb-line); border-radius: 10px; overflow: hidden;
    font-size: .82rem;
}
.report-table th, .report-table td { padding: 8px 10px; border-bottom: 1px solid var(--kb-line); text-align: left; vertical-align: middle; }
.report-table thead th { background: #eef4fa; color: var(--kb-navy); font-size: .72rem; text-transform: uppercase; letter-spacing: .3px; border-bottom: 2px solid var(--kb-teal); }
.report-table tbody tr:nth-child(even) td { background: #fafcff; }
.report-table-sm th, .report-table-sm td { padding: 6px 9px; font-size: .76rem; }
.row-ok td { box-shadow: inset 3px 0 0 #16a34a; }
.row-bad td { box-shadow: inset 3px 0 0 #dc2626; }
.row-missing td { box-shadow: inset 3px 0 0 #d97706; }
.row-total td { background: #eef4fa !important; border-top: 2px solid var(--kb-teal); }
.score-cell { font-weight: 700; white-space: nowrap; }
.score-cell span { font-size: .68em; color: #64748b; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: .68rem; font-weight: 600; }
.pill-ok { background: #dcfce7; color: #166534; }
.pill-warn { background: #fef3c7; color: #92400e; }
.report-note { font-size: .72rem; color: #64748b; margin-top: 10px; }
.report-case-summary {
    display: flex; gap: 18px; align-items: stretch; flex-wrap: wrap;
    background: #fff; border: 1px solid var(--kb-line); border-radius: 14px; padding: 18px 22px;
}
.report-score-big { text-align: center; min-width: 170px; padding: 10px 18px; border-radius: 12px; background: linear-gradient(135deg,#ecfeff,#e0f2fe); border: 1px solid #bae6fd; }
.report-score-big strong { font-size: 2.6rem; font-weight: 800; color: var(--kb-teal); line-height: 1; }
.report-score-big span { font-size: .95rem; color: #475569; margin-left: 4px; }
.report-score-big.is-missing strong { color: #d97706; font-size: 1.9rem; }
.report-case-info { flex: 1 1 260px; align-self: center; }
.report-case-info table.report-meta { color: inherit; }
.report-case-info table.report-meta th { color: #64748b; opacity: 1; width: 130px; }
.report-case-info table.report-meta td { color: var(--kb-navy); }
.report-footer { margin-top: 30px; }
.report-disclaimer { font-size: .74rem; color: #475569; line-height: 1.55; }
.report-disclaimer.alert-box { background: #fffbeb; border: 1px solid #fde68a; color: #78350f; border-radius: 10px; padding: 10px 14px; margin-top: 10px; }
.report-signatures { display: flex; gap: 40px; margin-top: 34px; }
.report-signatures div { flex: 1; max-width: 280px; text-align: center; font-size: .75rem; color: #475569; }
.report-signatures div span { display: block; border-bottom: 1.5px dotted #94a3b8; height: 38px; margin-bottom: 6px; }
.report-page-tag { margin-top: 26px; padding-top: 10px; border-top: 1px solid var(--kb-line); font-size: .68rem; color: #94a3b8; text-align: center; }

.export-card { transition: transform .15s ease, box-shadow .15s ease; }
.export-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(2,32,71,.10) !important; }
.export-icon { width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.bg-teal-soft { background: #ccfbf1; }
.bg-red-soft { background: #fee2e2; }
.bg-blue-soft { background: #dbeafe; }

@media print {
    @page { size: A4 portrait; margin: 12mm 10mm; }
    body { background: #fff !important; }
    .report-toolbar, .no-print { display: none !important; }
    .report-page { max-width: none; margin: 0; padding: 0; }
    .report-header { border-radius: 10px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .report-table { page-break-inside: auto; }
    .report-table tr { page-break-inside: avoid; }
    .report-table thead { display: table-header-group; }
    .report-cards, .report-case-summary, .report-footer, thead th, .row-total td, .pill,
    .report-score-big { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .card, .shadow-sm { box-shadow: none !important; }
}

/* ===================== v2.0 — Aşamalı Değerlendirme ===================== */
.band-success { border-top: 4px solid #16a34a !important; }
.band-warning { border-top: 4px solid #d97706 !important; }
.band-orange { border-top: 4px solid #ea580c !important; }
.band-danger { border-top: 4px solid #dc2626 !important; }
.band-label { letter-spacing: .02em; }

.score-chip { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.15; min-width: 92px; padding: .35rem .6rem; border-radius: 10px; font-weight: 700; }
.score-chip-band { font-size: .58rem; font-weight: 500; opacity: .85; max-width: 130px; white-space: normal; }
.score-chip-success { background: #dcfce7; color: #14532d; }
.score-chip-warning { background: #fef3c7; color: #78350f; }
.score-chip-orange { background: #ffedd5; color: #7c2d12; }
.score-chip-danger { background: #fee2e2; color: #7f1d1d; }
.score-chip-secondary { background: #f1f5f9; color: #334155; }

.phase-card .display-5, .phase-card .display-4 { font-variant-numeric: tabular-nums; }
.eval-question.question-na { background: #f8fafc; opacity: .72; }
.eval-question.question-na > label[for], .eval-question.question-na .option-list { pointer-events: none; }
.option-row { cursor: pointer; transition: background .1s ease; }
.option-row:hover { background: #f1f5f9; }
.option-row.selected { background: #e0f2fe; outline: 1px solid #bae6fd; }
.points-badge { font-variant-numeric: tabular-nums; }
.na-toggle input:checked ~ span { color: #b45309; }
.section-progress { max-width: 90px; margin: 2px auto 0; }

.sticky-bottom-bar { position: sticky; bottom: .75rem; z-index: 1020; box-shadow: 0 -6px 18px rgba(2,32,71,.08); }

.two-col-list { columns: 2; column-gap: 2rem; padding-left: 1.25rem; }
@media (max-width: 767.98px) { .two-col-list { columns: 1; } }

.report-score-block { text-align: center; padding: 14px 22px; border-radius: 14px; border: 1.5px solid var(--kb-line); background: #fff; min-width: 150px; }
.report-score-block strong { font-size: 2rem; line-height: 1; color: var(--kb-navy); font-variant-numeric: tabular-nums; }
.report-score-block span { font-size: .8rem; color: #64748b; margin-left: 4px; }
.report-score-block.is-missing strong { color: #cbd5e1; }
.report-case-summary { display: flex; gap: 14px; justify-content: space-between; align-items: stretch; flex-wrap: wrap; margin-bottom: 8px; }
.report-warnings { background: #fffbeb; border: 1px solid #fde68a; color: #78350f; border-radius: 10px; padding: 10px 14px; font-size: .74rem; margin-bottom: 10px; }
.report-profile-table th { width: auto; }

/* ---------------- Lightbox ---------------- */
.lb-overlay { position: fixed; inset: 0; z-index: 3000; display: none; background: rgba(8,15,30,.92); align-items: center; justify-content: center; flex-direction: column; }
.lb-overlay.is-open { display: flex; animation: lb-fade .18s ease; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lb-stage { max-width: min(1100px, 92vw); max-height: 80vh; display: flex; align-items: center; justify-content: center; }
.lb-media { max-width: 100%; max-height: 78vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.55); background: #0b1224; }
video.lb-media { width: auto; }
.lb-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; transition: background .15s ease; z-index: 3002; }
.lb-nav:hover { background: rgba(255,255,255,.22); }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb-close { position: fixed; top: 16px; right: 20px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; font-size: 1.6rem; cursor: pointer; z-index: 3002; }
.lb-close:hover { background: rgba(239,68,68,.75); }
.lb-caption { margin-top: 14px; color: #cbd5e1; font-size: .85rem; display: flex; gap: 14px; align-items: baseline; }
.lb-counter { color: #64748b; }

/* ---------------- KayraAI ---------------- */
.kayra-hero { position: relative; overflow: hidden; border-radius: 20px; padding: 2.2rem 1.5rem 2.4rem; color: #e6f1ff;
  background: radial-gradient(1200px 500px at 15% -10%, #164e63 0%, transparent 60%), radial-gradient(900px 420px at 90% 0%, #312e81 0%, transparent 55%), linear-gradient(135deg, #0b1224 0%, #111c3a 55%, #0b1224 100%);
  border: 1px solid #1e2a4a; box-shadow: 0 18px 50px rgba(2,32,71,.35); }
.kayra-orbit { position: relative; width: 108px; height: 108px; margin-inline: auto; }
.kayra-orbit .kayra-core { position: absolute; inset: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.4rem;
  background: linear-gradient(145deg, #38bdf8, #6366f1); box-shadow: 0 0 34px rgba(56,189,248,.65); animation: kayra-bob 2.6s ease-in-out infinite; }
.kayra-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed rgba(125,211,252,.45); animation: kayra-spin 9s linear infinite; }
.kayra-ring.kayra-ring2 { inset: -10px; border-style: dotted; border-color: rgba(165,180,252,.35); animation-duration: 14s; animation-direction: reverse; }
.kayra-sat { position: absolute; top: -7px; left: 50%; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 12px #22d3ee; }
.kayra-ring2 .kayra-sat { background: #a5b4fc; box-shadow: 0 0 12px #a5b4fc; }
@keyframes kayra-spin { to { transform: rotate(360deg); } }
@keyframes kayra-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.kayra-status-line { min-height: 1.4rem; }
.kayra-cursor::after { content: '▍'; animation: kayra-blink .9s steps(1) infinite; color: #67e8f9; }
@keyframes kayra-blink { 50% { opacity: 0; } }
.kayra-steps { list-style: none; padding: 0; margin: 0; }
.kayra-steps li { opacity: .28; transition: opacity .3s ease; display: flex; gap: .6rem; align-items: center; font-size: .95rem; }
.kayra-steps li.active { opacity: 1; }
.kayra-steps li.done { opacity: .75; }
.kayra-steps li.done .kayra-dot { background: #34d399; box-shadow: 0 0 10px #34d399; }
.kayra-dot { width: 10px; height: 10px; border-radius: 50%; background: #38bdf8; box-shadow: 0 0 10px rgba(56,189,248,.9); flex: none; animation: kayra-pulse 1.1s ease-in-out infinite; }
@keyframes kayra-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.45); } }
.kayra-shimmer { height: 8px; border-radius: 999px; overflow: hidden; background: rgba(148,163,184,.18); position: relative; }
.kayra-shimmer::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(103,232,249,.85), transparent); animation: kayra-slide 1.3s linear infinite; }
@keyframes kayra-slide { to { transform: translateX(100%); } }
.tooth-float { position: absolute; bottom: -14px; font-size: 1.5rem; opacity: .5; animation: tooth-rise linear infinite; user-select: none; }
@keyframes tooth-rise { from { transform: translateY(0) rotate(0deg); } to { transform: translateY(-190px) rotate(24deg); opacity: 0; } }
.kayra-md h4 { color: #93c5fd; border-bottom: 1px solid #1e2a4a; padding-bottom: .35rem; margin-top: 1.4rem; }
.kayra-md p { color: #dbeafe; line-height: 1.65; }
.kayra-md ul, .kayra-md ol { color: #dbeafe; line-height: 1.6; }
.kayra-md table { width: 100%; border-collapse: collapse; margin: .8rem 0; font-size: .88rem; }
.kayra-md th, .kayra-md td { border: 1px solid #27365c; padding: .45rem .6rem; text-align: left; }
.kayra-md th { background: rgba(56,189,248,.12); color: #bae6fd; }
.kayra-md td { color: #e2e8f0; }
.kayra-chip-row { display: flex; gap: .6rem; align-items: stretch; flex-wrap: wrap; }
.kayra-phase-pill { flex: 1 1 150px; text-align: center; border-radius: 14px; padding: .7rem .5rem; background: rgba(148,163,184,.09); border: 1px solid #27365c; }
.kayra-phase-pill .num { font-size: 1.7rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.kayra-arrow { align-self: center; color: #67e8f9; font-size: 1.3rem; }
.btn-kayraai { background: linear-gradient(120deg, #0ea5e9, #6366f1); color: #fff; border: none; box-shadow: 0 6px 18px rgba(79,70,229,.35); }
.btn-kayraai:hover, .btn-kayraai:focus { color: #fff; filter: brightness(1.08); }
.kayra-badge { background: linear-gradient(120deg, #0ea5e9, #6366f1); color: #fff; border-radius: 999px; padding: .2rem .7rem; font-size: .72rem; letter-spacing: .04em; }

/* ---- KayraAI v2.3: infografik + sesli okuma ---- */
.kayra-chart-box { background: rgba(148,163,184,.06); border: 1px solid #27365c; border-radius: 14px; padding: .9rem 1rem; }
.kayra-chart text { font-family: inherit; }
.kayra-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .6rem; height: 100%; align-content: stretch; }
.kayra-stat { background: rgba(148,163,184,.09); border: 1px solid #27365c; border-radius: 12px; padding: .6rem .7rem; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.kayra-stat-num { font-size: 1.45rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; color: #e2e8f0; }
#kayraTtsBtn { position: relative; }
#kayraTtsBtn.kayra-speaking { animation: kayraPulse 1.1s ease-in-out infinite; }
@keyframes kayraPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99,102,241,.55); }
    50%      { box-shadow: 0 0 0 9px rgba(99,102,241,0); }
}

/* ---- KayraAI v2.4: analiz katmanı + paylaş ---- */
.kayra-overlay { position: fixed; inset: 0; z-index: 3000; display: none; flex-direction: column;
    align-items: center; justify-content: center; gap: 20px; text-align: center;
    background: rgba(6,10,26,.86); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.kayra-overlay .kayra-steps { max-width: 420px; width: 100%; padding-left: 0; margin: 0 auto; list-style: none; }
.kayra-orbit-sm { transform: scale(.72); margin: -30px 0; }
