/* ==========================================================================
   RoomFollow - animasyonlu urun sahneleri
   Her modul sayfasi bir "sahne" tipi kullanir. Sahneler saf CSS/HTML ile
   cizilir; goruntu dosyasi, harici kutuphane ve JS animasyon dongusu yoktur.
   Animasyonlar sahne gorunume girene kadar duraklatilir (.scene.in).
   ========================================================================== */

/* ---------- Ortak pencere cercevesi ---------- */
.scene {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: 13px;
  --mod: var(--accent-strong);
}
.scene.on-dark {
  background: #171714;
  border-color: var(--dk-border);
  color: var(--dk-fg);
}
.scene * { animation-play-state: paused; }
.scene.in * { animation-play-state: running; }

.scene-bar {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.scene.on-dark .scene-bar { background: #111110; border-bottom-color: var(--dk-border); }
.scene-dots { display: flex; gap: 5px; }
.scene-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border); display: block; }
.scene-dots i:nth-child(1) { background: oklch(0.72 0.16 25 / 0.6); }
.scene-dots i:nth-child(2) { background: oklch(0.80 0.13 80 / 0.6); }
.scene-dots i:nth-child(3) { background: oklch(0.72 0.14 150 / 0.6); }
.scene-title { font-size: 12px; font-weight: 620; color: var(--fg-muted); letter-spacing: -0.005em; }
.scene.on-dark .scene-title { color: var(--dk-muted); }
.scene-pill {
  margin-left: auto; font-size: 10.5px; font-weight: 640; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--primary); background: var(--mod-soft, oklch(0.72 0.145 168 / 0.14));
  padding: 3px 9px; border-radius: 999px;
}
.scene.on-dark .scene-pill { color: var(--accent); background: oklch(0.72 0.145 168 / 0.18); }
.scene-body { padding: 16px; display: grid; gap: 14px; }
.scene-cap {
  font-size: 12.4px; color: var(--fg-faint); text-align: center;
  margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 7px;
}
.scene-cap .live { width: 6px; height: 6px; border-radius: 50%; background: var(--success); animation: pulse-dot 2s infinite; }

/* ================== SAHNE 1: ODA PLANI / ROOM RACK ================== */
.sc-rack { display: grid; gap: 10px; }
.sc-rack-head { display: grid; grid-template-columns: 62px repeat(7, 1fr); gap: 4px; font-size: 10.5px; color: var(--fg-faint); font-weight: 600; }
.sc-rack-head span { text-align: center; }
.sc-rack-row { display: grid; grid-template-columns: 62px repeat(7, 1fr); gap: 4px; align-items: center; }
.sc-rack-room { font-size: 11px; font-weight: 620; color: var(--fg-muted); display: flex; align-items: center; gap: 5px; }
.sc-rack-room i { width: 6px; height: 6px; border-radius: 2px; background: var(--border); }
.sc-cell { height: 26px; border-radius: 5px; background: var(--bg-soft); border: 1px solid var(--border-soft); }
.sc-bar {
  height: 26px; border-radius: 5px; display: flex; align-items: center;
  padding-inline: 7px; font-size: 10.5px; font-weight: 620; color: #fff;
  white-space: nowrap; overflow: hidden;
  transform-origin: left center;
  animation: bar-grow 0.7s var(--ease) both;
}
@keyframes bar-grow { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
.sc-bar.inhouse   { background: oklch(0.52 0.11 168); grid-column: span 3; animation-delay: 0.15s; }
.sc-bar.confirmed { background: oklch(0.56 0.12 250); grid-column: span 2; animation-delay: 0.3s; }
.sc-bar.option    { background: oklch(0.70 0.14 70); grid-column: span 2; color: oklch(0.24 0.05 70); animation-delay: 0.45s; }
.sc-bar.out       { background: oklch(0.66 0.02 175); grid-column: span 2; animation-delay: 0.6s; }
/* Bir satir yukari "surukleniyor" gorunumu. Adim, satir yuksekligine gore
   --row-step ile ayarlanir (sahnede 30px, hero panosunda 26px). */
.sc-bar.moving {
  --row-step: -30px;
  grid-column: span 2; background: oklch(0.44 0.10 168);
  animation: bar-grow 0.7s var(--ease) both 0.5s, drag-move 5.5s var(--ease) infinite 1.4s;
  box-shadow: 0 6px 16px -6px oklch(0.30 0.08 168 / 0.7);
  position: relative; z-index: 2;
}
.app-mock .sc-bar.moving { --row-step: -26px; }
@keyframes drag-move {
  0%, 12%   { transform: translate(0, 0) scale(1); }
  28%, 46%  { transform: translate(0, var(--row-step)) scale(1.04); box-shadow: 0 12px 22px -8px oklch(0.30 0.08 168 / 0.6); }
  62%, 100% { transform: translate(0, 0) scale(1); }
}
.sc-rack-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 10.8px; color: var(--fg-muted); padding-top: 4px; border-top: 1px dashed var(--border); }
.sc-rack-legend span { display: inline-flex; align-items: center; gap: 5px; }
.sc-rack-legend i { width: 9px; height: 9px; border-radius: 3px; display: block; }

/* ================== SAHNE 2: SUREC AKISI ================== */
.sc-flow { display: grid; gap: 0; position: relative; padding-block: 4px; }
.sc-flow-line { position: relative; display: grid; gap: 14px; }
.sc-step {
  display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: 9px;
  border: 1px solid var(--border-soft); background: var(--card);
  opacity: 0; transform: translateX(-10px);
  animation: step-in 0.5s var(--ease) both;
}
.scene.on-dark .sc-step { background: #1c1c19; border-color: var(--dk-border); }
@keyframes step-in { to { opacity: 1; transform: none; } }
.sc-step:nth-child(1) { animation-delay: 0.10s; }
.sc-step:nth-child(2) { animation-delay: 0.30s; }
.sc-step:nth-child(3) { animation-delay: 0.50s; }
.sc-step:nth-child(4) { animation-delay: 0.70s; }
.sc-step:nth-child(5) { animation-delay: 0.90s; }
.sc-step-n {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--mod-soft, oklch(0.72 0.145 168 / 0.14)); color: var(--primary);
  font-size: 12px; font-weight: 700;
}
.scene.on-dark .sc-step-n { color: var(--accent); }
.sc-step b { font-size: 12.6px; font-weight: 620; display: block; letter-spacing: -0.01em; }
.sc-step span { font-size: 11.2px; color: var(--fg-faint); }
.scene.on-dark .sc-step span { color: var(--dk-muted); }
.sc-step-ok {
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--success); color: #fff; font-size: 11px;
  transform: scale(0); animation: pop-in 0.4s var(--ease) both;
}
@keyframes pop-in { 60% { transform: scale(1.18); } to { transform: scale(1); } }
.sc-step:nth-child(1) .sc-step-ok { animation-delay: 0.55s; }
.sc-step:nth-child(2) .sc-step-ok { animation-delay: 0.90s; }
.sc-step:nth-child(3) .sc-step-ok { animation-delay: 1.25s; }
.sc-step:nth-child(4) .sc-step-ok { animation-delay: 1.60s; }
.sc-step:nth-child(5) .sc-step-ok { animation-delay: 1.95s; }
.sc-progress { height: 5px; border-radius: 3px; background: var(--bg-soft); overflow: hidden; }
.sc-progress i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--mod), oklch(0.82 0.13 160)); width: 0; animation: fill-bar 2.6s var(--ease) forwards 0.3s; }
@keyframes fill-bar { to { width: 100%; } }

/* ================== SAHNE 3: FOLYO / DEFTER ================== */
.sc-ledger { display: grid; gap: 0; font-variant-numeric: tabular-nums; }
.sc-led-head, .sc-led-row {
  display: grid; grid-template-columns: 1fr 62px 78px; gap: 10px;
  padding: 8px 10px; align-items: center;
}
.sc-led-head { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--fg-faint); font-weight: 640; border-bottom: 1px solid var(--border); }
.sc-led-row { font-size: 12px; border-bottom: 1px solid var(--border-soft); opacity: 0; animation: led-in 0.45s var(--ease) both; }
@keyframes led-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.sc-led-row:nth-child(2) { animation-delay: 0.20s; }
.sc-led-row:nth-child(3) { animation-delay: 0.42s; }
.sc-led-row:nth-child(4) { animation-delay: 0.64s; }
.sc-led-row:nth-child(5) { animation-delay: 0.86s; }
.sc-led-row:nth-child(6) { animation-delay: 1.08s; }
.sc-led-row b { font-weight: 600; }
.sc-led-row span:nth-child(2) { color: var(--fg-faint); font-size: 11px; text-align: right; }
.sc-led-row span:last-child { text-align: right; font-weight: 640; }
.sc-led-row.credit span:last-child { color: var(--success); }
.sc-led-row.fresh { background: var(--mod-soft, oklch(0.72 0.145 168 / 0.14)); border-radius: 6px; animation: led-in 0.45s var(--ease) both 1.3s, flash 1.8s ease-out 1.5s; }
@keyframes flash { 0% { background: oklch(0.72 0.145 168 / 0.32); } 100% { background: transparent; } }
.sc-led-total {
  display: grid; grid-template-columns: 1fr 78px; gap: 10px;
  padding: 12px 10px 4px; font-size: 13px; font-weight: 700; align-items: center;
  border-top: 2px solid var(--fg); margin-top: 4px;
}
.sc-led-total span:last-child { text-align: right; }
.sc-led-tabs { display: flex; gap: 5px; flex-wrap: wrap; }
.sc-tab {
  font-size: 11px; font-weight: 600; padding: 5px 11px; border-radius: 7px;
  background: var(--bg-soft); color: var(--fg-muted); border: 1px solid var(--border-soft);
}
.sc-tab.on { background: var(--primary); color: var(--primary-fg); border-color: transparent; }

/* ================== SAHNE 4: GRAFIK / RAPOR ================== */
.sc-chart { display: grid; gap: 16px; }
.sc-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sc-kpi { padding: 10px 12px; border-radius: 9px; background: var(--bg-soft); border: 1px solid var(--border-soft); }
.scene.on-dark .sc-kpi { background: #1c1c19; border-color: var(--dk-border); }
.sc-kpi b { display: block; font-size: 17px; font-weight: 720; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.sc-kpi span { font-size: 10.5px; color: var(--fg-faint); }
.scene.on-dark .sc-kpi span { color: var(--dk-muted); }
.sc-kpi em { font-style: normal; font-size: 10.5px; font-weight: 640; color: var(--success); }
.sc-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; align-items: end; height: 128px; padding-top: 6px; }
.sc-bars i {
  display: block; border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--mod), oklch(0.58 0.10 172));
  height: var(--h, 40%); transform-origin: bottom;
  animation: bar-rise 0.8s var(--ease) both;
}
@keyframes bar-rise { from { transform: scaleY(0); opacity: 0.2; } to { transform: scaleY(1); opacity: 1; } }
.sc-bars i:nth-child(1)  { animation-delay: 0.05s; }
.sc-bars i:nth-child(2)  { animation-delay: 0.12s; }
.sc-bars i:nth-child(3)  { animation-delay: 0.19s; }
.sc-bars i:nth-child(4)  { animation-delay: 0.26s; }
.sc-bars i:nth-child(5)  { animation-delay: 0.33s; }
.sc-bars i:nth-child(6)  { animation-delay: 0.40s; }
.sc-bars i:nth-child(7)  { animation-delay: 0.47s; }
.sc-bars i:nth-child(8)  { animation-delay: 0.54s; }
.sc-bars i:nth-child(9)  { animation-delay: 0.61s; }
.sc-bars i:nth-child(10) { animation-delay: 0.68s; }
.sc-bars i:nth-child(11) { animation-delay: 0.75s; }
.sc-bars i:nth-child(12) { animation-delay: 0.82s; background: linear-gradient(180deg, oklch(0.82 0.14 163), var(--mod)); }
.sc-axis { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; font-size: 9.5px; color: var(--fg-faint); text-align: center; }
.sc-spark { height: 3px; border-radius: 2px; background: var(--border); overflow: hidden; }
.sc-spark i { display: block; height: 100%; background: var(--mod); width: 0; animation: fill-bar 1.6s var(--ease) forwards 0.6s; }

/* ================== SAHNE 5: ENTEGRASYON / SENKRON ================== */
.sc-sync { position: relative; min-height: 216px; display: grid; place-items: center; }
.sc-hub {
  width: 84px; height: 84px; border-radius: 22px; display: grid; place-items: center; text-align: center;
  background: var(--primary); color: var(--primary-fg);
  font-size: 11px; font-weight: 700; line-height: 1.25; padding: 8px;
  box-shadow: 0 10px 30px -10px oklch(0.315 0.065 174 / 0.55);
  position: relative; z-index: 3;
}
.sc-hub::after {
  content: ""; position: absolute; inset: -8px; border-radius: 28px;
  border: 1.5px solid var(--mod); opacity: 0;
  animation: ring-out 3s ease-out infinite;
}
@keyframes ring-out {
  0%   { transform: scale(0.85); opacity: 0.75; }
  100% { transform: scale(1.5); opacity: 0; }
}
.sc-node {
  position: absolute; display: inline-flex; align-items: center; gap: 7px;
  background: var(--card); border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 13px; font-size: 11.2px; font-weight: 600; white-space: nowrap;
  box-shadow: var(--shadow-sm); z-index: 2;
  opacity: 0; animation: node-in 0.55s var(--ease) both, float-y 6s ease-in-out infinite;
}
.scene.on-dark .sc-node { background: #1c1c19; border-color: var(--dk-border); }
@keyframes node-in { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
@keyframes float-y { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.sc-node i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); flex: none; animation: pulse-dot 2.2s infinite; }
.sc-node:nth-of-type(1) { top: 6%;  left: 2%;  animation-delay: 0.15s, 0.4s; }
.sc-node:nth-of-type(2) { top: 4%;  right: 3%; animation-delay: 0.30s, 0.9s; }
.sc-node:nth-of-type(3) { top: 44%; left: -1%; animation-delay: 0.45s, 1.4s; }
.sc-node:nth-of-type(4) { top: 42%; right: 0%; animation-delay: 0.60s, 0.7s; }
.sc-node:nth-of-type(5) { bottom: 5%; left: 6%; animation-delay: 0.75s, 1.9s; }
.sc-node:nth-of-type(6) { bottom: 3%; right: 5%; animation-delay: 0.90s, 1.1s; }
.sc-packet {
  position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: var(--mod); box-shadow: 0 0 10px 2px oklch(0.72 0.145 168 / 0.55);
  top: 50%; left: 50%; z-index: 1;
}
.sc-packet:nth-of-type(1) { animation: pk1 2.8s linear infinite 0.6s; }
.sc-packet:nth-of-type(2) { animation: pk2 3.2s linear infinite 1.2s; }
.sc-packet:nth-of-type(3) { animation: pk3 3.0s linear infinite 1.8s; }
.sc-packet:nth-of-type(4) { animation: pk4 3.4s linear infinite 0.2s; }
@keyframes pk1 { 0% { transform: translate(-50%,-50%) scale(0.4); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(-320%, -280%) scale(1); opacity: 0; } }
@keyframes pk2 { 0% { transform: translate(-50%,-50%) scale(0.4); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(280%, -300%) scale(1); opacity: 0; } }
@keyframes pk3 { 0% { transform: translate(-50%,-50%) scale(0.4); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(-340%, 220%) scale(1); opacity: 0; } }
@keyframes pk4 { 0% { transform: translate(-50%,-50%) scale(0.4); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(300%, 240%) scale(1); opacity: 0; } }

/* ================== SAHNE 6: GOREV PANOSU ================== */
.sc-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: start; }
.sc-col { display: grid; gap: 7px; align-content: start; background: var(--bg-soft); border-radius: 10px; padding: 9px; min-height: 172px; }
.scene.on-dark .sc-col { background: #141412; }
.sc-col-h { display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; font-weight: 660; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.scene.on-dark .sc-col-h { color: var(--dk-muted); }
.sc-col-h em { font-style: normal; background: var(--border); color: var(--fg-muted); border-radius: 999px; padding: 1px 7px; font-size: 10px; }
.sc-task {
  background: var(--card); border: 1px solid var(--border-soft); border-radius: 8px;
  padding: 9px 10px; box-shadow: var(--shadow-sm);
  opacity: 0; animation: task-in 0.5s var(--ease) both;
}
.scene.on-dark .sc-task { background: #201f1c; border-color: var(--dk-border); }
@keyframes task-in { from { opacity: 0; transform: translateY(8px) scale(0.96); } to { opacity: 1; transform: none; } }
.sc-task b { display: block; font-size: 11.6px; font-weight: 620; }
.sc-task span { font-size: 10.4px; color: var(--fg-faint); }
.scene.on-dark .sc-task span { color: var(--dk-muted); }
.sc-task .pri { display: inline-block; font-size: 9.5px; font-weight: 660; padding: 1px 6px; border-radius: 4px; margin-top: 5px; }
.pri.hi  { background: oklch(0.58 0.20 25 / 0.14); color: oklch(0.48 0.18 25); }
.pri.mid { background: oklch(0.72 0.15 70 / 0.18); color: oklch(0.46 0.12 70); }
.pri.low { background: oklch(0.62 0.16 150 / 0.14); color: oklch(0.42 0.12 150); }
.sc-col:nth-child(1) .sc-task:nth-of-type(1) { animation-delay: 0.10s; }
.sc-col:nth-child(1) .sc-task:nth-of-type(2) { animation-delay: 0.25s; }
.sc-col:nth-child(2) .sc-task:nth-of-type(1) { animation-delay: 0.40s; }
.sc-col:nth-child(2) .sc-task:nth-of-type(2) { animation-delay: 0.55s; }
.sc-col:nth-child(3) .sc-task:nth-of-type(1) { animation-delay: 0.70s; }
.sc-task.fly { animation: task-in 0.5s var(--ease) both 0.85s, fly-over 5s var(--ease) infinite 1.8s; position: relative; z-index: 3; }
@keyframes fly-over {
  0%, 10%   { transform: translate(0, 0) rotate(0); box-shadow: var(--shadow-sm); }
  30%, 55%  { transform: translate(calc(100% + 20px), -18px) rotate(2.5deg); box-shadow: var(--shadow-lg); }
  75%, 100% { transform: translate(0, 0) rotate(0); box-shadow: var(--shadow-sm); }
}

/* ================== SAHNE 7: TAKVIM / MUSAITLIK ================== */
.sc-cal { display: grid; gap: 8px; }
.sc-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.sc-day {
  aspect-ratio: 1 / 0.82; border-radius: 7px; padding: 5px 6px;
  background: var(--bg-soft); border: 1px solid var(--border-soft);
  display: grid; align-content: space-between;
  opacity: 0; animation: day-in 0.4s var(--ease) both;
}
.scene.on-dark .sc-day { background: #1a1a17; border-color: var(--dk-border); }
@keyframes day-in { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } }
.sc-day b { font-size: 10.5px; font-weight: 640; color: var(--fg-muted); }
.scene.on-dark .sc-day b { color: var(--dk-muted); }
.sc-day em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sc-day .rate { font-size: 9.5px; color: var(--fg-faint); }
.sc-day.full { background: oklch(0.58 0.20 25 / 0.10); border-color: oklch(0.58 0.20 25 / 0.28); }
.sc-day.full em { color: oklch(0.50 0.18 25); }
.sc-day.high { background: oklch(0.72 0.145 168 / 0.13); border-color: oklch(0.72 0.145 168 / 0.30); }
.sc-day.stop { background: oklch(0.66 0.02 175 / 0.16); }
.sc-day.stop em { color: var(--fg-faint); text-decoration: line-through; }
.sc-cal-grid .sc-day:nth-child(7n+1) { animation-delay: 0.05s; }
.sc-cal-grid .sc-day:nth-child(7n+2) { animation-delay: 0.12s; }
.sc-cal-grid .sc-day:nth-child(7n+3) { animation-delay: 0.19s; }
.sc-cal-grid .sc-day:nth-child(7n+4) { animation-delay: 0.26s; }
.sc-cal-grid .sc-day:nth-child(7n+5) { animation-delay: 0.33s; }
.sc-cal-grid .sc-day:nth-child(7n+6) { animation-delay: 0.40s; }
.sc-cal-grid .sc-day:nth-child(7n+7) { animation-delay: 0.47s; }
.sc-cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; font-size: 9.5px; color: var(--fg-faint); text-align: center; font-weight: 620; text-transform: uppercase; letter-spacing: 0.04em; }
.sc-cal-note { display: flex; align-items: center; gap: 7px; font-size: 10.8px; color: var(--fg-muted); background: var(--mod-soft, oklch(0.72 0.145 168 / 0.14)); border-radius: 7px; padding: 7px 10px; animation: led-in 0.5s var(--ease) both 0.9s; }

/* ================== SAHNE 8: POS / ADISYON ================== */
.sc-pos { display: grid; grid-template-columns: 1.15fr 1fr; gap: 12px; }
@media (max-width: 520px) { .sc-pos { grid-template-columns: 1fr; } }
.sc-tables { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; align-content: start; }
.sc-table {
  aspect-ratio: 1; border-radius: 9px; display: grid; place-items: center; gap: 1px;
  background: var(--bg-soft); border: 1px solid var(--border-soft);
  font-size: 10.5px; font-weight: 640; color: var(--fg-muted); text-align: center;
  opacity: 0; animation: day-in 0.42s var(--ease) both;
}
.scene.on-dark .sc-table { background: #1a1a17; border-color: var(--dk-border); }
.sc-table.busy { background: var(--mod-soft, oklch(0.72 0.145 168 / 0.14)); border-color: oklch(0.72 0.145 168 / 0.34); color: var(--primary); }
.scene.on-dark .sc-table.busy { color: var(--accent); }
.sc-table small { font-size: 9px; opacity: 0.7; font-weight: 540; }
.sc-tables .sc-table:nth-child(1) { animation-delay: 0.06s; }
.sc-tables .sc-table:nth-child(2) { animation-delay: 0.13s; }
.sc-tables .sc-table:nth-child(3) { animation-delay: 0.20s; }
.sc-tables .sc-table:nth-child(4) { animation-delay: 0.27s; }
.sc-tables .sc-table:nth-child(5) { animation-delay: 0.34s; }
.sc-tables .sc-table:nth-child(6) { animation-delay: 0.41s; }
.sc-tables .sc-table:nth-child(7) { animation-delay: 0.48s; }
.sc-tables .sc-table:nth-child(8) { animation-delay: 0.55s; }
.sc-tables .sc-table:nth-child(9) { animation-delay: 0.62s; }
.sc-receipt {
  background: var(--card); border: 1px solid var(--border); border-radius: 9px;
  padding: 12px; display: grid; gap: 5px; font-size: 11px;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  box-shadow: var(--shadow-sm);
}
.scene.on-dark .sc-receipt { background: #201f1c; border-color: var(--dk-border); }
.sc-receipt .rc-h { font-weight: 700; font-size: 11.5px; padding-bottom: 6px; border-bottom: 1px dashed var(--border); }
.sc-receipt .rc-l { display: flex; justify-content: space-between; gap: 8px; opacity: 0; animation: led-in 0.4s var(--ease) both; }
.sc-receipt .rc-l:nth-of-type(1) { animation-delay: 0.5s; }
.sc-receipt .rc-l:nth-of-type(2) { animation-delay: 0.75s; }
.sc-receipt .rc-l:nth-of-type(3) { animation-delay: 1.00s; }
.sc-receipt .rc-l:nth-of-type(4) { animation-delay: 1.25s; }
.sc-receipt .rc-t { display: flex; justify-content: space-between; font-weight: 700; padding-top: 7px; border-top: 1px dashed var(--border); margin-top: 3px; opacity: 0; animation: led-in 0.4s var(--ease) both 1.5s; }
.sc-receipt .rc-room {
  margin-top: 5px; text-align: center; font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  background: var(--success); color: #fff; border-radius: 6px; padding: 5px;
  transform: scale(0); animation: pop-in 0.45s var(--ease) both 1.85s;
}

/* ================== SAHNE 9: MISAFIR PROFILI ================== */
.sc-guest { display: grid; gap: 12px; }
.sc-guest-top { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; }
.sc-avatar {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), oklch(0.48 0.09 172));
  color: var(--primary-fg); font-weight: 700; font-size: 15px;
  animation: pop-in 0.5s var(--ease) both 0.1s;
}
.sc-guest-top b { display: block; font-size: 13.5px; font-weight: 660; }
.sc-guest-top span { font-size: 11px; color: var(--fg-faint); }
.scene.on-dark .sc-guest-top span { color: var(--dk-muted); }
.sc-vip {
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  background: linear-gradient(135deg, oklch(0.82 0.15 85), oklch(0.74 0.16 60));
  color: oklch(0.26 0.08 60); padding: 4px 10px; border-radius: 999px;
  transform: scale(0); animation: pop-in 0.45s var(--ease) both 0.5s;
}
.sc-guest-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sc-guest-kpis div { text-align: center; padding: 9px 4px; border-radius: 9px; background: var(--bg-soft); opacity: 0; animation: led-in 0.45s var(--ease) both; }
.scene.on-dark .sc-guest-kpis div { background: #1a1a17; }
.sc-guest-kpis div:nth-child(1) { animation-delay: 0.3s; }
.sc-guest-kpis div:nth-child(2) { animation-delay: 0.45s; }
.sc-guest-kpis div:nth-child(3) { animation-delay: 0.6s; }
.sc-guest-kpis b { display: block; font-size: 15px; font-weight: 720; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.sc-guest-kpis span { font-size: 9.8px; color: var(--fg-faint); }
.sc-prefs { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-pref {
  font-size: 10.6px; font-weight: 580; padding: 4px 10px; border-radius: 999px;
  background: var(--mod-soft, oklch(0.72 0.145 168 / 0.14)); color: var(--primary);
  opacity: 0; animation: node-in 0.4s var(--ease) both;
}
.scene.on-dark .sc-pref { color: var(--accent); }
.sc-prefs .sc-pref:nth-child(1) { animation-delay: 0.70s; }
.sc-prefs .sc-pref:nth-child(2) { animation-delay: 0.80s; }
.sc-prefs .sc-pref:nth-child(3) { animation-delay: 0.90s; }
.sc-prefs .sc-pref:nth-child(4) { animation-delay: 1.00s; }
.sc-prefs .sc-pref:nth-child(5) { animation-delay: 1.10s; }
.sc-timeline { display: grid; gap: 8px; border-left: 2px solid var(--border); padding-left: 14px; margin-left: 6px; }
.sc-tl { position: relative; font-size: 11.2px; opacity: 0; animation: step-in 0.45s var(--ease) both; }
.sc-tl::before { content: ""; position: absolute; left: -19px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--mod); border: 2px solid var(--card); }
.sc-tl b { font-weight: 620; }
.sc-tl span { color: var(--fg-faint); }
.scene.on-dark .sc-tl span { color: var(--dk-muted); }
.sc-timeline .sc-tl:nth-child(1) { animation-delay: 1.1s; }
.sc-timeline .sc-tl:nth-child(2) { animation-delay: 1.25s; }
.sc-timeline .sc-tl:nth-child(3) { animation-delay: 1.40s; }

/* ================== SAHNE 10: DEPO / STOK ================== */
.sc-stock { display: grid; gap: 9px; }
.sc-item { display: grid; grid-template-columns: 1fr 96px 54px; gap: 10px; align-items: center; font-size: 11.6px; opacity: 0; animation: step-in 0.45s var(--ease) both; }
.sc-stock .sc-item:nth-child(1) { animation-delay: 0.10s; }
.sc-stock .sc-item:nth-child(2) { animation-delay: 0.25s; }
.sc-stock .sc-item:nth-child(3) { animation-delay: 0.40s; }
.sc-stock .sc-item:nth-child(4) { animation-delay: 0.55s; }
.sc-stock .sc-item:nth-child(5) { animation-delay: 0.70s; }
.sc-item b { font-weight: 600; }
.sc-item small { display: block; font-size: 9.8px; color: var(--fg-faint); font-weight: 500; }
.sc-gauge { height: 7px; border-radius: 4px; background: var(--bg-soft); overflow: hidden; border: 1px solid var(--border-soft); }
.sc-gauge i { display: block; height: 100%; border-radius: 4px; background: var(--mod); width: 0; animation: gauge 1.1s var(--ease) forwards; }
@keyframes gauge { to { width: var(--w, 60%); } }
.sc-stock .sc-item:nth-child(1) .sc-gauge i { animation-delay: 0.35s; }
.sc-stock .sc-item:nth-child(2) .sc-gauge i { animation-delay: 0.50s; }
.sc-stock .sc-item:nth-child(3) .sc-gauge i { animation-delay: 0.65s; }
.sc-stock .sc-item:nth-child(4) .sc-gauge i { animation-delay: 0.80s; }
.sc-stock .sc-item:nth-child(5) .sc-gauge i { animation-delay: 0.95s; }
.sc-item.low .sc-gauge i { background: var(--danger); }
.sc-item.warn .sc-gauge i { background: var(--warning); }
.sc-item em { font-style: normal; font-size: 10.6px; font-weight: 660; text-align: right; font-variant-numeric: tabular-nums; }
.sc-item.low em { color: var(--danger); }
.sc-alert {
  display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 580;
  background: oklch(0.58 0.20 25 / 0.10); color: oklch(0.46 0.17 25);
  border: 1px solid oklch(0.58 0.20 25 / 0.24); border-radius: 8px; padding: 8px 11px;
  opacity: 0; animation: led-in 0.5s var(--ease) both 1.3s;
}

/* ================== HERO: BUYUK PANO MOCK (acik tema) ================== */
.app-mock {
  position: relative; border-radius: 16px; overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 40px 90px -34px rgba(22, 22, 20, 0.30), 0 12px 34px -18px rgba(22, 22, 20, 0.14);
  animation: mock-in 1s var(--ease) both 0.15s;
}
@keyframes mock-in { from { opacity: 0; transform: perspective(1400px) rotateX(9deg) translateY(28px); } to { opacity: 1; transform: perspective(1400px) rotateX(0) translateY(0); } }
.app-mock-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--bg); }
.app-mock-bar .t { font-size: 11.5px; color: var(--fg-muted); font-weight: 600; }
.app-mock-bar .u { margin-left: auto; display: flex; align-items: center; gap: 7px; font-size: 10.5px; color: var(--fg-muted); }
.app-mock-bar .u i { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-strong), oklch(0.66 0.10 220)); display: block; }
.app-mock-body { display: grid; grid-template-columns: 52px 1fr; min-height: 340px; }
.app-rail {
  background: var(--bg); border-right: 1px solid var(--border);
  display: grid; align-content: start; gap: 6px; padding: 10px 0; justify-items: center;
}
.app-rail i { width: 30px; height: 30px; border-radius: 9px; background: rgba(22, 22, 20, 0.06); display: block; }
.app-rail i.on { background: var(--accent-strong); }
.app-main { padding: 14px; display: grid; gap: 12px; align-content: start; background: var(--bg-2); }
.app-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.app-kpi { background: var(--card); border: 1px solid var(--border-soft); border-radius: 10px; padding: 9px 11px; opacity: 0; animation: led-in 0.55s var(--ease) both; }
.app-kpi:nth-child(1) { animation-delay: 0.55s; }
.app-kpi:nth-child(2) { animation-delay: 0.68s; }
.app-kpi:nth-child(3) { animation-delay: 0.81s; }
.app-kpi:nth-child(4) { animation-delay: 0.94s; }
.app-kpi b { display: block; font-size: 16px; font-weight: 720; letter-spacing: -0.03em; color: var(--fg); font-variant-numeric: tabular-nums; }
.app-kpi span { font-size: 9.8px; color: var(--fg-faint); }
.app-kpi em { font-style: normal; font-size: 9.8px; font-weight: 660; color: var(--accent-deep); }
.app-panels { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px; }
@media (max-width: 760px) {
  .app-panels { grid-template-columns: 1fr; }
  .app-kpis { grid-template-columns: repeat(2, 1fr); }
  .app-mock-body { grid-template-columns: 1fr; min-height: 0; }
  .app-rail { display: none; }              /* dar ekranda kenar rayi gizlenir */
  .app-mock-bar .u span { display: none; }
  .app-main { padding: 11px; }
}
@media (max-width: 480px) {
  .app-mock .sc-rack-head, .app-mock .sc-rack-row { grid-template-columns: 30px repeat(6, 1fr); gap: 3px; }
  .app-mock .sc-rack-room { font-size: 9.5px; gap: 3px; }
  .app-mock .sc-rack-room i { display: none; }
  .app-mock .sc-bar { font-size: 9px; padding-inline: 4px; }
  .app-kpi { padding: 8px 9px; }
  .app-kpi b { font-size: 14px; }
}
.app-panel { background: var(--card); border: 1px solid var(--border-soft); border-radius: 10px; padding: 11px; display: grid; gap: 9px; align-content: start; }
.app-panel h5 { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-faint); font-weight: 640; }
.app-mock .sc-rack-row { grid-template-columns: 44px repeat(6, 1fr); }
.app-mock .sc-rack-head { grid-template-columns: 44px repeat(6, 1fr); }
.app-mock .sc-cell { height: 22px; }
.app-mock .sc-bar { height: 22px; }
.app-feed { display: grid; gap: 7px; }
.app-feed-row {
  display: grid; grid-template-columns: 7px 1fr auto; gap: 9px; align-items: center;
  font-size: 10.8px; color: var(--fg-faint);
  opacity: 0; animation: step-in 0.5s var(--ease) both;
}
.app-feed-row i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-strong); }
.app-feed-row b { color: var(--fg); font-weight: 580; font-size: 11px; }
.app-feed-row span { font-size: 9.6px; opacity: 0.75; font-variant-numeric: tabular-nums; }
.app-feed-row:nth-child(1) { animation-delay: 1.15s; }
.app-feed-row:nth-child(2) { animation-delay: 1.35s; }
.app-feed-row:nth-child(3) { animation-delay: 1.55s; }
.app-feed-row:nth-child(4) { animation-delay: 1.75s; }
.app-feed-row:nth-child(5) { animation-delay: 1.95s; }
.app-feed-row.new i { background: var(--warning); animation: pulse-dot 1.8s infinite; }

/* Hero mock etrafinda yuzen rozetler */
.mock-float {
  position: absolute; z-index: 4;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--card); color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 14px;
  box-shadow: 0 18px 40px -16px rgba(22, 22, 20, 0.28);
  font-size: 12px; font-weight: 600; white-space: nowrap;
  opacity: 0; animation: node-in 0.6s var(--ease) both, float-y 7s ease-in-out infinite;
}
.mock-float b { font-weight: 700; }
.mock-float small { display: block; font-size: 10px; color: var(--fg-faint); font-weight: 500; }
.mock-float .ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.mock-float-1 { top: 52%; left: -54px; animation-delay: 1.5s, 1.9s; }
.mock-float-2 { bottom: 8%;  right: -54px; animation-delay: 1.9s, 2.4s; }
/* Rozetler yalnizca panonun disina tasabilecek kadar genis ekranlarda gorunur;
   dar ekranda icerigin ustune binmesinler. */
@media (max-width: 1320px) { .mock-float { display: none; } }
