/* ═══════════════════════════════════════════════════════════════════════
   SEYHAN AMBALAJ MAKİNA — ÜRETİM YÖNETİM SİSTEMİ (ERP)
   Endüstriyel Komuta Merkezi tasarım dili
   Renk kimliği: Çelik Cyan (#0891B2) + Endüstriyel Amber (#F59E0B) + Grafit
   ═══════════════════════════════════════════════════════════════════════ */

:root {
    --brand-50:  #ECFEFF;
    --brand-100: #CFFAFE;
    --brand-300: #67E8F9;
    --brand-400: #22D3EE;
    --brand-500: #06B6D4;
    --brand-600: #0891B2;
    --brand-700: #0E7490;
    --brand-800: #155E75;
    --brand-soft: rgba(8, 145, 178, .12);

    --amber-400: #FBBF24;
    --amber-500: #F59E0B;
    --amber-600: #D97706;

    --ink-900: #0A1120;
    --ink-800: #0E1729;
    --ink-700: #16233C;

    /* Parça durum renkleri — tüm sistemde AYNI anlamı taşır */
    --st-hazir: #10B981;
    --st-yolda: #F59E0B;
    --st-eksik: #EF4444;
    --st-plan:  #94A3B8;
}

* { font-family: 'Inter', system-ui, sans-serif; }
html { scroll-behavior: smooth; }

::-webkit-scrollbar        { width: 6px; height: 6px; }
::-webkit-scrollbar-track  { background: transparent; }
::-webkit-scrollbar-thumb  { background: #334155; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

/* ═══════════════════════════════════════════════════════════
   ZEMİN
   ═══════════════════════════════════════════════════════════ */
.factory-bg {
    background-color: #F1F5F9;
    background-image:
        radial-gradient(circle at 10% 6%,  rgba(8,145,178,.06), transparent 42%),
        radial-gradient(circle at 90% 90%, rgba(245,158,11,.05), transparent 44%),
        radial-gradient(circle at 50% 45%, rgba(30,41,59,.03), transparent 60%);
}

/* ═══════════════════════════════════════════════════════════
   SIDEBAR + LAYOUT
   ═══════════════════════════════════════════════════════════ */
#mainSidebar {
    transform: translateX(-100%);
    transition: transform .32s cubic-bezier(.4,0,.2,1);
    background: linear-gradient(180deg, var(--ink-900) 0%, var(--ink-800) 45%, var(--ink-900) 100%);
}
@media (min-width: 1024px) { #mainSidebar { transform: translateX(0) !important; } }
.main-content { margin-left: 0; }
@media (min-width: 1024px) { .main-content { margin-left: 260px; } }

.sidebar-section-label {
    display: block; font-size: 9.5px; letter-spacing: .12em; font-weight: 700;
    color: #45536e; text-transform: uppercase; padding: 13px 14px 5px; user-select: none;
}

.nav-item {
    display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px;
    cursor: pointer; transition: background .16s; border-left: 2px solid transparent;
    text-decoration: none; width: 100%; background: none; border-top: 0; border-right: 0;
    border-bottom: 0; text-align: left; position: relative;
}
.nav-item:hover { background: rgba(255,255,255,.055); }
.nav-item:hover .nav-label { color: #fff; }
.nav-item:hover .nav-icon  { color: #cbd5e1; }

.nav-active {
    background: linear-gradient(135deg, rgba(8,145,178,.24) 0%, rgba(245,158,11,.07) 100%) !important;
    border-left-color: var(--brand-400) !important;
    box-shadow: inset 0 0 0 1px rgba(34,211,238,.13);
}
.nav-active .nav-label { color: #fff !important; }
.nav-active .nav-icon  { color: var(--brand-400) !important; filter: drop-shadow(0 0 5px rgba(34,211,238,.6)); }

.nav-label { font-size: 13px; font-weight: 500; color: #94a3b8; transition: color .14s; white-space: nowrap; }
.nav-icon  { width: 16px; height: 16px; flex-shrink: 0; color: #4b5b78; transition: color .14s, filter .14s; }

.sub-item {
    display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 8px;
    cursor: pointer; transition: background .14s; text-decoration: none; border-left: 2px solid transparent;
}
.sub-item:hover { background: rgba(255,255,255,.045); }
.sub-item:hover .sub-label { color: #e2e8f0; }
.sub-item:hover .sub-dot   { background: var(--brand-400); }
.sub-item.nav-active {
    background: linear-gradient(135deg, rgba(8,145,178,.26) 0%, rgba(245,158,11,.08) 100%) !important;
    border-left-color: var(--brand-400) !important;
}
.sub-item.nav-active .sub-label { color: #fff !important; font-weight: 600; }
.sub-item.nav-active .sub-dot { background: var(--brand-400) !important; box-shadow: 0 0 0 3px rgba(34,211,238,.22); }
.nav-item.parent-active { background: rgba(255,255,255,.05); }
.nav-item.parent-active .nav-label { color: #e2e8f0; }
.nav-item.parent-active .nav-icon  { color: var(--brand-400); }
.sub-label { font-size: 12.5px; font-weight: 500; color: #64748b; transition: color .14s; }
.sub-dot { width: 5px; height: 5px; border-radius: 50%; background: #334155; flex-shrink: 0; margin-left: 4px; transition: background .14s; }

.dd-body { max-height: 0; overflow: hidden; transition: max-height .3s cubic-bezier(.4,0,.2,1); }
.dd-body.open { max-height: 780px; }
.chevron { transition: transform .22s ease; }
.chevron.open { transform: rotate(180deg); }

.topbar-shadow { box-shadow: 0 1px 0 0 #e2e8f0, 0 2px 14px -4px rgba(15,23,42,.07); }

.ai-drawer { transform: translateX(100%); transition: transform .36s cubic-bezier(.4,0,.2,1); }
.ai-drawer.open { transform: translateX(0); }
.drawer-shadow { box-shadow: -10px 0 44px -4px rgba(15,23,42,.16); }
.backdrop { opacity: 0; pointer-events: none; transition: opacity .28s ease; }
.backdrop.open { opacity: 1; pointer-events: all; }
.mob-overlay { opacity: 0; pointer-events: none; transition: opacity .28s ease; }
.mob-overlay.open { opacity: 1; pointer-events: all; }

/* ═══════════════════════════════════════════════════════════
   ANİMASYONLAR
   ═══════════════════════════════════════════════════════════ */
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:.5;transform:scale(.72);} }
.pulse-dot { animation: pulse-dot 1.8s ease-in-out infinite; }

@keyframes bounce-dot { 0%,80%,100%{transform:translateY(0);opacity:.4;} 40%{transform:translateY(-5px);opacity:1;} }
.bounce-1 { animation: bounce-dot 1.2s infinite 0ms; }
.bounce-2 { animation: bounce-dot 1.2s infinite 180ms; }
.bounce-3 { animation: bounce-dot 1.2s infinite 360ms; }

@keyframes livepulse { 0%,100%{opacity:1;} 50%{opacity:.25;} }
.live-pulse { animation: livepulse 1.5s ease-in-out infinite; }

@keyframes fadeUp { from{opacity:0;transform:translateY(10px);} to{opacity:1;transform:translateY(0);} }
.dash-anim { animation: fadeUp .5s cubic-bezier(.16,1,.3,1) both; }

@keyframes glowRing { 0%,100%{box-shadow:0 0 0 0 rgba(8,145,178,.35);} 50%{box-shadow:0 0 0 8px rgba(8,145,178,0);} }
.glow-ring { animation: glowRing 2.2s ease-out infinite; }

@keyframes glowRingRed { 0%,100%{box-shadow:0 0 0 0 rgba(239,68,68,.5);} 50%{box-shadow:0 0 0 10px rgba(239,68,68,0);} }
.glow-ring-red { animation: glowRingRed 1.15s ease-out infinite; }

@keyframes glowRingGreen { 0%,100%{box-shadow:0 0 0 0 rgba(16,185,129,.45);} 50%{box-shadow:0 0 0 9px rgba(16,185,129,0);} }
.glow-ring-green { animation: glowRingGreen 2s ease-out infinite; }

@keyframes shimmer { 0%{background-position:-420px 0;} 100%{background-position:420px 0;} }
.shimmer-line {
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 100%);
    background-size: 420px 100%; animation: shimmer 2.6s linear infinite;
}

@keyframes floaty { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-6px);} }
.floaty { animation: floaty 4.5s ease-in-out infinite; }

@keyframes breathe { 0%,100%{transform:scale(1);opacity:1;} 50%{transform:scale(1.035);opacity:.92;} }
.breathe { animation: breathe 3.2s ease-in-out infinite; }

@keyframes spinSlow { from{transform:rotate(0);} to{transform:rotate(360deg);} }
.spin-slow { animation: spinSlow 6s linear infinite; }

@keyframes alarmBlinkBg { 0%,100%{background-color:rgba(239,68,68,.06);} 50%{background-color:rgba(239,68,68,.15);} }
.alarm-row-crit { animation: alarmBlinkBg 1.6s ease-in-out infinite; }

@keyframes tickerScroll { from{transform:translateX(0);} to{transform:translateX(-50%);} }
.ticker-track { animation: tickerScroll 30s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }

/* ═══════════════════════════════════════════════════════════
   PREMIUM YÜZEYLER
   ═══════════════════════════════════════════════════════════ */
.card {
    background: #fff; border: 1px solid rgba(226,232,240,.75); border-radius: 16px;
    box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.premium-card { transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s, border-color .25s; }
.premium-card:hover { transform: translateY(-4px); box-shadow: 0 20px 46px -12px rgba(15,23,42,.16); }

.glass-dark {
    background: linear-gradient(155deg, rgba(10,17,32,.92) 0%, rgba(18,30,52,.88) 100%);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,.08);
}
.noise-overlay {
    position: absolute; inset: 0; opacity: .05; pointer-events: none; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.speedmono { font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

/* ═══════════════════════════════════════════════════════════
   TABLO / FORM / BUTON
   ═══════════════════════════════════════════════════════════ */
.tbl { width: 100%; border-collapse: collapse; text-align: left; }
.tbl thead tr {
    font-size: 10.5px; font-weight: 600; color: #94A3B8; text-transform: uppercase;
    letter-spacing: .04em; border-bottom: 1px solid #F1F5F9; background: rgba(248,250,252,.8);
}
.tbl thead th { padding: 10px 14px; white-space: nowrap; }
.tbl tbody tr { border-bottom: 1px solid #F8FAFC; transition: background .15s; }
.tbl tbody tr:hover { background: rgba(248,250,252,.75); }
.tbl tbody td { padding: 10px 14px; font-size: 12.5px; color: #64748B; }

.inp {
    width: 100%; padding: 10px 12px; font-size: 13px; border: 1px solid #E2E8F0;
    border-radius: 12px; outline: none; background: #fff; color: #334155;
    transition: border-color .15s, box-shadow .15s;
}
.inp:focus { border-color: var(--brand-400); box-shadow: 0 0 0 3px rgba(8,145,178,.15); }
.lbl { display: block; font-size: 11.5px; font-weight: 600; color: #64748B; margin-bottom: 4px; }

.btn-main {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px;
    font-size: 13px; font-weight: 600; color: #fff;
    background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
    box-shadow: 0 4px 12px rgba(8,145,178,.28); transition: all .15s; border: 0; cursor: pointer;
}
.btn-main:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(8,145,178,.36); }
.btn-main:active { transform: scale(.97); }
.btn-main:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; filter: grayscale(.6); }

.btn-amber {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px;
    font-size: 13px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
    box-shadow: 0 4px 12px rgba(245,158,11,.3); transition: all .15s; border: 0; cursor: pointer;
}
.btn-amber:hover { transform: translateY(-1px); }

.btn-ghost {
    padding: 10px 16px; border-radius: 12px; font-size: 13px; font-weight: 600; color: #64748B;
    background: #fff; border: 1px solid #E2E8F0; cursor: pointer; transition: all .15s;
}
.btn-ghost:hover { background: #F8FAFC; color: #334155; }

.icon-btn {
    width: 28px; height: 28px; border-radius: 8px; border: 0; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; transition: all .15s;
}
.icon-btn svg { width: 14px; height: 14px; }
.icon-btn.edit { background: var(--brand-50); color: var(--brand-700); }
.icon-btn.edit:hover { background: var(--brand-100); }
.icon-btn.del  { background: #FEF2F2; color: #DC2626; }
.icon-btn.del:hover { background: #FEE2E2; }
.icon-btn.view { background: #EEF2FF; color: #4F46E5; }
.icon-btn.view:hover { background: #E0E7FF; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 700; white-space: nowrap; }

/* ═══════════════════════════════════════════════════════════
   MODAL / TOAST / TAB
   ═══════════════════════════════════════════════════════════ */
.modal-wrap {
    position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
    background: rgba(10,17,32,.5); backdrop-filter: blur(4px);
}
.modal-wrap.open { display: flex; animation: mFade .18s ease; }
.modal-box {
    background: #fff; border-radius: 20px; width: 100%; margin: 0 16px; padding: 26px;
    box-shadow: 0 25px 60px rgba(15,23,42,.3); max-height: 90vh; overflow-y: auto;
    animation: mUp .22s cubic-bezier(.2,.9,.3,1);
}
@keyframes mFade { from{opacity:0} to{opacity:1} }
@keyframes mUp { from{opacity:0;transform:translateY(18px) scale(.97)} to{opacity:1;transform:none} }

#toastHost { position: fixed; right: 20px; bottom: 20px; z-index: 400; display: flex; flex-direction: column; gap: 10px; }
.toast {
    min-width: 250px; max-width: 380px; padding: 12px 16px; border-radius: 14px; background: #0F172A;
    color: #fff; font-size: 12.5px; font-weight: 600; box-shadow: 0 12px 34px rgba(15,23,42,.3);
    display: flex; align-items: center; gap: 10px; animation: tIn .25s cubic-bezier(.2,.9,.3,1);
}
.toast.out { animation: tOut .25s forwards; }
.toast.ok   { background: linear-gradient(135deg,#059669,#047857); }
.toast.err  { background: linear-gradient(135deg,#DC2626,#B91C1C); }
.toast.info { background: linear-gradient(135deg,var(--brand-600),var(--brand-800)); }
.toast.warn { background: linear-gradient(135deg,#D97706,#B45309); }
@keyframes tIn { from{opacity:0;transform:translateX(40px)} to{opacity:1;transform:none} }
@keyframes tOut { to{opacity:0;transform:translateX(40px)} }

.tab-btn {
    padding: 8px 16px; border-radius: 10px; font-size: 12.5px; font-weight: 700; color: #64748B;
    background: transparent; border: 0; cursor: pointer; transition: all .15s;
}
.tab-btn:hover { background: #F1F5F9; color: #334155; }
.tab-btn.active { background: var(--brand-600); color: #fff; box-shadow: 0 3px 10px rgba(8,145,178,.3); }

.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 0; }

/* ═══════════════════════════════════════════════════════════
   SÜRÜKLE-BIRAK / KANBAN
   ═══════════════════════════════════════════════════════════ */
.drag-item { cursor: grab; user-select: none; transition: box-shadow .15s, transform .15s, opacity .15s; }
.drag-item:active { cursor: grabbing; }
.drag-item.dragging { opacity: .38; transform: rotate(-1.5deg) scale(.98); }
.drop-zone { transition: background .18s, border-color .18s; }
.drop-zone.drag-over {
    background: var(--brand-soft) !important; border-color: var(--brand-400) !important;
    box-shadow: inset 0 0 0 2px rgba(34,211,238,.35);
}
.drag-handle { display: flex; flex-direction: column; gap: 2px; padding: 2px 4px; cursor: grab; flex-shrink: 0; }
.drag-handle span { display: block; width: 12px; height: 2px; border-radius: 2px; background: #CBD5E1; }
.drag-item:hover .drag-handle span { background: var(--brand-400); }

.kanban-col { min-height: 220px; border-radius: 16px; border: 1.5px dashed #E2E8F0; background: rgba(248,250,252,.6); padding: 10px; }
.kanban-card { background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; padding: 11px 12px; margin-bottom: 9px; box-shadow: 0 1px 3px rgba(15,23,42,.06); transition: box-shadow .15s, transform .15s; }
.kanban-card:hover { box-shadow: 0 6px 18px rgba(15,23,42,.1); transform: translateY(-2px); }

/* ═══════════════════════════════════════════════════════════
   PARÇA DURUM SİSTEMİ — 3D ve listelerde ortak dil
   ═══════════════════════════════════════════════════════════ */
.st-chip { display:inline-flex; align-items:center; gap:5px; font-size:10.5px; font-weight:800; padding:3px 9px; border-radius:999px; white-space:nowrap; }
.st-chip .dot { width:6px; height:6px; border-radius:50%; flex-shrink:0; }
.st-hazir { background:#D1FAE5; color:#047857; } .st-hazir .dot { background: var(--st-hazir); }
.st-yolda { background:#FEF3C7; color:#B45309; } .st-yolda .dot { background: var(--st-yolda); }
.st-eksik { background:#FEE2E2; color:#B91C1C; } .st-eksik .dot { background: var(--st-eksik); animation: pulse-dot 1.1s infinite; }
.st-plan  { background:#F1F5F9; color:#64748B; } .st-plan  .dot { background: var(--st-plan); }

.bom-row { border-left: 3px solid transparent; transition: background .15s, border-color .15s, transform .15s; cursor: pointer; }
.bom-row:hover { background: #F8FAFC; transform: translateX(2px); }
.bom-row.sel { background: var(--brand-50) !important; border-left-color: var(--brand-500) !important; }
.bom-row.d-hazir { border-left-color: rgba(16,185,129,.35); }
.bom-row.d-yolda { border-left-color: rgba(245,158,11,.45); }
.bom-row.d-eksik { border-left-color: rgba(239,68,68,.6); background: rgba(254,242,242,.5); }
.bom-row.d-plan  { border-left-color: rgba(148,163,184,.35); }

/* ═══════════════════════════════════════════════════════════
   3D SAHNE
   ═══════════════════════════════════════════════════════════ */
.stage3d {
    position: relative; border-radius: 20px; overflow: hidden;
    background:
        radial-gradient(circle at 50% 0%, rgba(8,145,178,.18), transparent 55%),
        linear-gradient(180deg, #0C1526 0%, #0A1120 55%, #060B15 100%);
    border: 1px solid rgba(255,255,255,.07);
}
.stage3d canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.stage3d canvas:active { cursor: grabbing; }
.stage3d-grid {
    position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image:
        linear-gradient(rgba(34,211,238,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34,211,238,.055) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at 50% 55%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(circle at 50% 55%, #000 20%, transparent 78%);
}
.stage3d-scan {
    position: absolute; left: 0; right: 0; height: 130px; pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(34,211,238,.09), transparent);
    animation: scanMove 5.5s ease-in-out infinite;
}
@keyframes scanMove { 0%,100%{ transform: translateY(-140px);} 50%{ transform: translateY(520px);} }

.hud-pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
    font-size: 11px; font-weight: 800; letter-spacing: .01em;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.11); color: #E2E8F0;
    backdrop-filter: blur(8px);
}
.hud-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 7px 12px; border-radius: 10px; font-size: 11.5px; font-weight: 700;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: #CBD5E1;
    cursor: pointer; transition: all .16s; backdrop-filter: blur(8px);
}
.hud-btn:hover { background: rgba(255,255,255,.14); color: #fff; }
.hud-btn.on {
    background: linear-gradient(135deg, rgba(239,68,68,.9), rgba(185,28,28,.9));
    border-color: rgba(248,113,113,.5); color: #fff; box-shadow: 0 4px 16px rgba(239,68,68,.35);
}
.hud-range { -webkit-appearance: none; appearance: none; height: 4px; border-radius: 99px; background: rgba(255,255,255,.16); outline: none; }
.hud-range::-webkit-slider-thumb {
    -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%;
    background: var(--brand-400); cursor: pointer; box-shadow: 0 0 0 4px rgba(34,211,238,.22);
}
.hud-range::-moz-range-thumb {
    width: 15px; height: 15px; border: 0; border-radius: 50%;
    background: var(--brand-400); cursor: pointer; box-shadow: 0 0 0 4px rgba(34,211,238,.22);
}

/* ═══════════════════════════════════════════════════════════
   SEVKİYAT KİLİDİ
   ═══════════════════════════════════════════════════════════ */
.lock-banner {
    border-radius: 18px; padding: 18px 22px; position: relative; overflow: hidden;
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.lock-banner.locked {
    background: linear-gradient(135deg, #7F1D1D 0%, #B91C1C 50%, #991B1B 100%);
    box-shadow: 0 12px 38px -10px rgba(185,28,28,.55);
}
.lock-banner.open {
    background: linear-gradient(135deg, #065F46 0%, #059669 50%, #047857 100%);
    box-shadow: 0 12px 38px -10px rgba(5,150,105,.5);
}
.lock-banner::after {
    content:''; position:absolute; inset:0; pointer-events:none;
    background: repeating-linear-gradient(45deg, rgba(255,255,255,.07) 0 12px, transparent 12px 24px);
}
@keyframes hazardSlide { from{background-position:0 0;} to{background-position:56px 0;} }
.hazard-strip {
    height: 7px;
    background: repeating-linear-gradient(45deg,#FBBF24 0 14px,#0A1120 14px 28px);
    animation: hazardSlide 1.1s linear infinite;
}

.scan-card { transition: all .2s cubic-bezier(.16,1,.3,1); border: 1.5px solid #E2E8F0; border-radius: 14px; }
.scan-card.done { border-color: rgba(16,185,129,.5); background: rgba(236,253,245,.7); }
.scan-card.miss { border-color: rgba(239,68,68,.5); background: rgba(254,242,242,.7); }
.scan-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px -8px rgba(15,23,42,.18); }

.qr-box { background:#fff; padding:8px; border-radius:10px; border:1px solid #E2E8F0; line-height:0; }
.qr-box img, .qr-box canvas { image-rendering: pixelated; display:block; }

/* ═══════════════════════════════════════════════════════════
   ZAMAN ÇİZELGESİ / İZLENEBİLİRLİK
   ═══════════════════════════════════════════════════════════ */
.trace-node { position: relative; padding-left: 32px; padding-bottom: 20px; }
.trace-node::before {
    content: ''; position: absolute; left: 10px; top: 24px; bottom: 0; width: 2px;
    background: linear-gradient(180deg, var(--brand-400), #E2E8F0);
}
.trace-node:last-child::before { display: none; }
.trace-dot {
    position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 10px;
    background: var(--brand-50); border: 2px solid var(--brand-400);
}

/* Sipariş aşama şeridi */
.stage-strip { display:flex; align-items:center; gap:0; overflow-x:auto; padding-bottom:2px; }
.stage-pill {
    position: relative; flex: 1 0 auto; min-width: 108px; text-align: center;
    padding: 9px 14px 9px 22px; font-size: 11px; font-weight: 700; color: #94A3B8;
    background: #F1F5F9; clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 50%, calc(100% - 11px) 100%, 0 100%, 11px 50%);
    margin-right: -8px;
}
.stage-pill.done { background: #D1FAE5; color: #047857; }
.stage-pill.now  { background: linear-gradient(135deg,var(--brand-600),var(--brand-800)); color: #fff; box-shadow: 0 4px 14px rgba(8,145,178,.3); z-index: 2; }

/* AI */
.ai-cursor { display:inline-block; width:2px; height:13px; vertical-align:-2px; background:var(--brand-600); margin-left:2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.ai-body strong { color:#0F172A; font-weight:700; }
.ai-body em { color: var(--brand-700); font-style: normal; font-weight: 600; }
.ai-msg { animation: fadeUp .45s cubic-bezier(.16,1,.3,1) both; }
.ai-avatar { background: conic-gradient(from 180deg, var(--brand-600), #7C3AED, var(--amber-500), var(--brand-600)); animation: spinSlow 5s linear infinite; }

.hero-glow::after {
    content:''; position:absolute; left:-60px; bottom:-120px; width:320px; height:320px;
    background: radial-gradient(circle, rgba(245,158,11,.16), transparent 70%); pointer-events:none;
}
