/* ===== PLAYGROUND — Sinematik Restoran Simulasyonu ===== */

.pg-wrap { display:flex; flex-direction:column; gap:12px; height:100%; min-height:calc(100vh - 100px); }

/* Header */
.pg-header { display:flex; align-items:center; justify-content:space-between; padding:14px 20px; background:rgba(255,255,255,0.03); border-radius:14px; border:1px solid rgba(255,255,255,0.06); backdrop-filter:blur(12px); }
.pg-header-left { display:flex; align-items:center; gap:14px; }
.pg-title-icon { width:42px; height:42px; border-radius:12px; background:linear-gradient(135deg,#6366f1,#8b5cf6); display:flex; align-items:center; justify-content:center; font-size:18px; color:#fff; box-shadow:0 4px 15px rgba(99,102,241,0.3); }
.pg-title { font-size:18px; font-weight:800; color:var(--text-primary); margin:0; line-height:1.2; }
.pg-title-sub { font-size:11px; font-weight:500; color:var(--text-muted); margin-left:8px; }
.pg-subtitle { font-size:11px; color:var(--text-muted); margin:2px 0 0; }
.pg-header-right { display:flex; align-items:center; gap:8px; }
.pg-phase-badge { padding:5px 12px; border-radius:20px; font-size:11px; font-weight:600; background:rgba(99,102,241,0.12); color:#818cf8; display:flex; align-items:center; gap:5px; }
.pg-phase-badge i { font-size:9px; }

/* Live Metrics Strip */
.pg-live-strip { display:flex; gap:8px; padding:10px 12px; background:rgba(255,255,255,0.02); border-radius:12px; border:1px solid rgba(255,255,255,0.05); overflow-x:auto; flex-shrink:0; position:relative; }
.pg-live-strip::before { content:''; position:absolute; inset:-1px; border-radius:12px; background:linear-gradient(90deg,rgba(99,102,241,0.2),rgba(139,92,246,0.1),rgba(34,197,94,0.1),rgba(249,115,22,0.1)); z-index:-1; opacity:0.5; }
.pg-metric { display:flex; align-items:center; gap:8px; flex:1; min-width:120px; padding:6px 10px; background:rgba(255,255,255,0.02); border-radius:8px; border:1px solid rgba(255,255,255,0.04); transition:all 0.3s; }
.pg-metric:hover { background:rgba(255,255,255,0.05); }
.pg-metric-icon { width:30px; height:30px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:12px; flex-shrink:0; }
.pg-metric-data { display:flex; flex-direction:column; min-width:0; }
.pg-metric-val { font-size:13px; font-weight:800; color:var(--text-primary); font-family:'JetBrains Mono',monospace; line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pg-metric-lbl { font-size:9px; color:var(--text-muted); text-transform:uppercase; letter-spacing:0.5px; }

/* Buttons */
.pg-btn { padding:8px 14px; border-radius:10px; font-size:12px; font-weight:600; cursor:pointer; border:none; display:flex; align-items:center; gap:6px; transition:all 0.2s; font-family:inherit; }
.pg-btn-reset { background:rgba(239,68,68,0.1); color:#ef4444; }
.pg-btn-reset:hover { background:rgba(239,68,68,0.2); }
.pg-btn-start { background:linear-gradient(135deg,#6366f1,#8b5cf6); color:#fff; box-shadow:0 4px 12px rgba(99,102,241,0.3); width:100%; justify-content:center; padding:11px; font-size:13px; border-radius:10px; }
.pg-btn-start:hover { transform:translateY(-1px); box-shadow:0 6px 20px rgba(99,102,241,0.4); }
.pg-btn-disabled { opacity:0.4; pointer-events:none; }
.pg-btn-auto { background:rgba(255,255,255,0.06); color:var(--text-secondary); border:1px solid rgba(255,255,255,0.08); width:100%; justify-content:center; padding:9px; border-radius:10px; }
.pg-btn-auto:hover { background:rgba(255,255,255,0.1); }
.pg-btn-pause { background:rgba(245,158,11,0.15); color:#f59e0b; width:100%; justify-content:center; padding:11px; font-size:13px; border-radius:10px; }

/* Steps Bar */
.pg-steps-bar { display:flex; align-items:center; justify-content:center; gap:0; padding:8px 14px; background:rgba(255,255,255,0.02); border-radius:10px; border:1px solid rgba(255,255,255,0.04); overflow-x:auto; flex-shrink:0; }
.pg-step-dot { width:24px; height:24px; border-radius:50%; background:rgba(255,255,255,0.06); display:flex; align-items:center; justify-content:center; font-size:8px; font-weight:700; color:var(--text-muted); transition:all 0.4s; flex-shrink:0; font-family:'JetBrains Mono',monospace; }
.pg-step-dot.done { background:rgba(34,197,94,0.2); color:#22c55e; }
.pg-step-dot.active { background:linear-gradient(135deg,#6366f1,#8b5cf6); color:#fff; transform:scale(1.15); box-shadow:0 0 12px rgba(99,102,241,0.4); }
.pg-step-line { width:10px; height:2px; background:rgba(255,255,255,0.06); flex-shrink:0; }

/* Body Layout */
.pg-body { display:grid; grid-template-columns:1fr 280px; gap:12px; flex:1; min-height:0; }
.pg-scene-col { display:flex; flex-direction:column; gap:10px; min-height:0; }
.pg-side-col { display:flex; flex-direction:column; gap:8px; min-height:0; }

/* Scene */
.pg-scene { position:relative; flex:1; min-height:420px; border-radius:16px; background:linear-gradient(135deg, #0c0c18 0%, #151528 50%, #121a30 100%); border:1px solid rgba(255,255,255,0.08); overflow:hidden; box-shadow:inset 0 0 80px rgba(0,0,0,0.4), 0 4px 24px rgba(0,0,0,0.2); }
.pg-scene-bg { position:absolute; inset:0; }

/* SVG Flow Paths */
.pg-flow-svg { position:absolute; inset:0; width:100%; height:100%; z-index:1; pointer-events:none; }
.pg-flow-path { fill:none; stroke:rgba(99,102,241,0.12); stroke-width:2; stroke-dasharray:8 6; }
.pg-flow-path.pg-flow-active { stroke:rgba(99,102,241,0.6); stroke-width:3; stroke-dasharray:12 6; animation:pg-flow-dash 0.8s linear infinite; filter:drop-shadow(0 0 6px rgba(99,102,241,0.4)); }
@keyframes pg-flow-dash { to { stroke-dashoffset:-18; } }

/* Zones */
.pg-zone { position:absolute; border-radius:14px; border:1px dashed rgba(255,255,255,0.06); display:flex; align-items:flex-start; justify-content:flex-start; padding:10px 12px; }
.pg-zone-label { font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:2px; opacity:0.5; display:flex; align-items:center; gap:6px; }
.pg-zone-label i { font-size:12px; }
.pg-zone-salon { left:4%; top:8%; width:62%; height:80%; background:rgba(99,102,241,0.02); }
.pg-zone-salon .pg-zone-label { color:#818cf8; }
.pg-zone-kitchen { right:2%; top:3%; width:24%; height:36%; background:rgba(239,68,68,0.04); border-color:rgba(239,68,68,0.12); }
.pg-zone-kitchen .pg-zone-label { color:#ef4444; }
.pg-zone-kasa { right:2%; top:43%; width:24%; height:24%; background:rgba(34,197,94,0.04); border-color:rgba(34,197,94,0.12); }
.pg-zone-kasa .pg-zone-label { color:#22c55e; }
.pg-zone-muhasebe { right:2%; top:71%; width:24%; height:25%; background:rgba(245,158,11,0.04); border-color:rgba(245,158,11,0.12); }
.pg-zone-muhasebe .pg-zone-label { color:#f59e0b; }
.pg-zone-entrance { left:4%; bottom:2%; width:16%; height:11%; background:rgba(255,255,255,0.02); }
.pg-zone-entrance .pg-zone-label { color:#64748b; }

/* Tables */
.pg-table { position:absolute; transform:translate(-50%,-50%); z-index:2; transition:all 0.3s; }
.pg-table-shape { width:60px; height:60px; border-radius:12px; background:rgba(255,255,255,0.05); border:2px solid rgba(255,255,255,0.1); display:flex; align-items:center; justify-content:center; transition:all 0.3s; }
.pg-table-num { font-size:20px; font-weight:900; color:rgba(255,255,255,0.25); font-family:'JetBrains Mono',monospace; }
.pg-table-active .pg-table-shape { background:rgba(99,102,241,0.15); border-color:rgba(99,102,241,0.5); box-shadow:0 0 24px rgba(99,102,241,0.25); }
.pg-table-active .pg-table-num { color:#a5b4fc; }
.pg-table-seats { text-align:center; margin-top:4px; font-size:9px; font-weight:600; color:rgba(255,255,255,0.2); letter-spacing:0.5px; }
.pg-table-active .pg-table-seats { color:rgba(129,140,248,0.5); }

/* Role Avatars in scene */
.pg-role-avatar { position:absolute; transform:translate(-50%,-50%); z-index:10; display:flex; flex-direction:column; align-items:center; gap:4px; transition:left 1.5s ease, top 1.5s ease; }
.pg-role-avatar i { width:44px; height:44px; border-radius:50%; background:var(--role-color); display:flex; align-items:center; justify-content:center; font-size:17px; color:#fff; box-shadow:0 4px 16px rgba(0,0,0,0.4), 0 0 0 3px rgba(255,255,255,0.12); position:relative; z-index:2; }
.pg-avatar-ring { position:absolute; width:54px; height:54px; border-radius:50%; border:2px solid var(--role-color); opacity:0.3; animation:pg-ring 2s infinite; top:50%; left:50%; transform:translate(-50%,-50%); z-index:1; }
@keyframes pg-ring { 0%,100%{ transform:translate(-50%,-50%) scale(1); opacity:0.3; } 50%{ transform:translate(-50%,-50%) scale(1.3); opacity:0; } }
.pg-avatar-label { font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:1px; color:#fff; background:var(--role-color); padding:2px 10px; border-radius:6px; white-space:nowrap; box-shadow:0 2px 8px rgba(0,0,0,0.3); }

/* Customers */
.pg-customer { position:absolute; z-index:8; display:flex; flex-direction:column; align-items:center; gap:3px; transition:left 1.5s ease, top 1.5s ease, opacity 0.5s; }
.pg-customer i { width:32px; height:32px; border-radius:50%; background:var(--cust-color); display:flex; align-items:center; justify-content:center; font-size:13px; color:#fff; box-shadow:0 3px 10px rgba(0,0,0,0.3); }
.pg-customer span { font-size:9px; font-weight:700; color:rgba(255,255,255,0.7); white-space:nowrap; background:rgba(0,0,0,0.6); padding:2px 8px; border-radius:4px; }

/* Scene Toast Notifications */
.pg-scene-toasts { position:absolute; top:10px; left:50%; transform:translateX(-50%); z-index:40; display:flex; flex-direction:column; gap:6px; align-items:center; pointer-events:none; }
.pg-scene-toast { display:flex; align-items:center; gap:8px; padding:8px 16px; background:rgba(0,0,0,0.85); border:1px solid var(--toast-color); border-radius:10px; font-size:12px; font-weight:700; color:#fff; backdrop-filter:blur(8px); opacity:0; transform:translateY(-10px); transition:all 0.3s ease; box-shadow:0 4px 20px rgba(0,0,0,0.4); white-space:nowrap; }
.pg-scene-toast i { color:var(--toast-color); font-size:14px; }
.pg-scene-toast.show { opacity:1; transform:translateY(0); }

/* Stock Deduction Animation */
.pg-stock-deduct { position:absolute; z-index:35; display:flex; align-items:center; gap:8px; padding:8px 14px; background:rgba(239,68,68,0.12); border:1px solid rgba(239,68,68,0.3); border-radius:10px; font-size:11px; font-weight:600; color:#fff; backdrop-filter:blur(6px); opacity:0; transform:translateX(20px); transition:all 0.4s ease; }
.pg-stock-deduct.show { opacity:1; transform:translateX(0); }
.pg-stock-deduct i { color:#ef4444; font-size:14px; }
.pg-sd-name { color:#fca5a5; font-weight:700; }
.pg-sd-amount { color:#ef4444; font-family:'JetBrains Mono',monospace; font-weight:800; }
.pg-sd-remain { color:#64748b; font-size:10px; margin-left:4px; }

/* Bubbles */
.pg-bubble { position:absolute; bottom:calc(100% + 8px); left:50%; transform:translateX(-50%) translateY(10px); background:rgba(0,0,0,0.9); color:#fff; font-size:12px; font-weight:700; padding:8px 16px; border-radius:10px; white-space:nowrap; opacity:0; transition:all 0.3s; z-index:50; box-shadow:0 4px 16px rgba(0,0,0,0.4); pointer-events:none; border:1px solid rgba(255,255,255,0.15); backdrop-filter:blur(8px); }
.pg-bubble::after { content:''; position:absolute; top:100%; left:50%; transform:translateX(-50%); border:5px solid transparent; border-top-color:rgba(0,0,0,0.9); }
.pg-bubble.show { opacity:1; transform:translateX(-50%) translateY(0); }

/* Order Pop Items */
.pg-order-pop { position:absolute; z-index:20; background:rgba(99,102,241,0.15); border:1px solid rgba(99,102,241,0.3); color:#fff; padding:8px 14px; border-radius:10px; display:flex; align-items:center; gap:10px; opacity:0; transform:translateY(10px); transition:all 0.3s; box-shadow:0 4px 16px rgba(0,0,0,0.3); font-size:12px; backdrop-filter:blur(8px); }
.pg-order-pop.show { opacity:1; transform:translateY(0); }
.pg-op-icon { font-size:18px; }
.pg-op-name { font-weight:700; color:#e0e7ff; }
.pg-op-price { font-family:'JetBrains Mono',monospace; font-weight:800; color:#a5b4fc; }

/* Flying Ticket */
.pg-flying-ticket { position:absolute; z-index:25; background:linear-gradient(135deg,#6366f1,#8b5cf6); color:#fff; padding:8px 14px; border-radius:8px; font-size:11px; font-weight:700; display:flex; align-items:center; gap:6px; box-shadow:0 4px 15px rgba(99,102,241,0.4); }

/* Cook Items */
.pg-cook-item { position:absolute; z-index:20; background:rgba(239,68,68,0.15); border:1px solid rgba(239,68,68,0.3); color:#fff; padding:10px 16px; border-radius:10px; font-size:13px; font-weight:700; display:flex; align-items:center; gap:8px; opacity:0; transform:translateX(20px); transition:all 0.4s; backdrop-filter:blur(8px); box-shadow:0 4px 16px rgba(0,0,0,0.3); }
.pg-cook-item.show { opacity:1; transform:translateX(0); }
.pg-cook-fire i { color:#ef4444; animation:pg-firebeat 0.6s infinite alternate; font-size:16px; }
@keyframes pg-firebeat { to { transform:scale(1.2); } }
.pg-cook-check { opacity:0; transition:all 0.3s; color:#22c55e; font-size:16px; }
.pg-cook-check.done { opacity:1; }

/* Payment Terminal */
.pg-pay-terminal { position:absolute; z-index:25; background:rgba(0,0,0,0.8); border:1px solid rgba(34,197,94,0.3); padding:16px; border-radius:12px; min-width:160px; opacity:0; transform:scale(0.9); transition:all 0.3s; }
.pg-pay-terminal.show { opacity:1; transform:scale(1); }
.pg-pt-header { font-size:10px; font-weight:700; color:#22c55e; text-transform:uppercase; letter-spacing:1px; margin-bottom:8px; display:flex; align-items:center; gap:6px; }
.pg-pt-amount { font-size:24px; font-weight:800; color:#fff; font-family:'JetBrains Mono',monospace; text-align:center; margin-bottom:10px; }
.pg-pt-status { font-size:10px; text-align:center; color:#94a3b8; display:flex; align-items:center; justify-content:center; gap:4px; padding:6px; border-radius:6px; background:rgba(255,255,255,0.05); }
.pg-pt-status.processing { color:#f59e0b; }
.pg-pt-status.approved { color:#22c55e; background:rgba(34,197,94,0.1); }

/* Fiscal Receipt */
.pg-fiscal-receipt { position:absolute; z-index:25; background:#fff; color:#1a1a2e; padding:14px; border-radius:4px; min-width:140px; font-size:10px; font-family:'JetBrains Mono',monospace; opacity:0; transform:translateY(20px); transition:all 0.4s; box-shadow:0 8px 25px rgba(0,0,0,0.3); }
.pg-fiscal-receipt.show { opacity:1; transform:translateY(0); }
.pg-fr-head { text-align:center; font-weight:800; font-size:12px; margin-bottom:6px; color:#7c3aed; }
.pg-fr-line { text-align:center; margin-bottom:3px; color:#444; }
.pg-fr-stamp { text-align:center; margin-top:8px; color:#ef4444; font-weight:700; font-size:11px; display:flex; align-items:center; justify-content:center; gap:4px; }

/* Accounting Card */
.pg-accounting-card { position:absolute; z-index:25; background:rgba(245,158,11,0.08); border:1px solid rgba(245,158,11,0.2); padding:14px; border-radius:10px; min-width:200px; opacity:0; transform:translateY(10px); transition:all 0.4s; }
.pg-accounting-card.show { opacity:1; transform:translateY(0); }
.pg-ac-head { font-size:11px; font-weight:700; color:#f59e0b; margin-bottom:8px; display:flex; align-items:center; gap:6px; }
.pg-ac-row { display:flex; justify-content:space-between; font-size:10px; padding:3px 0; border-bottom:1px solid rgba(255,255,255,0.05); font-family:'JetBrains Mono',monospace; color:var(--text-secondary); }
.pg-ac-b { color:#22c55e; font-weight:700; }
.pg-ac-a { color:#3b82f6; font-weight:700; }

/* Finale */
.pg-finale { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; background:rgba(0,0,0,0.7); backdrop-filter:blur(8px); z-index:50; opacity:0; transition:all 0.5s; border-radius:16px; }
.pg-finale.show { opacity:1; }
.pg-fin-icon { width:64px; height:64px; border-radius:50%; background:linear-gradient(135deg,#22c55e,#10b981); display:flex; align-items:center; justify-content:center; font-size:28px; color:#fff; margin-bottom:16px; box-shadow:0 0 30px rgba(34,197,94,0.4); animation:pg-fin-pulse 2s infinite; }
@keyframes pg-fin-pulse { 0%,100%{ box-shadow:0 0 30px rgba(34,197,94,0.4); } 50%{ box-shadow:0 0 50px rgba(34,197,94,0.6); } }
.pg-fin-title { font-size:22px; font-weight:800; color:#fff; margin-bottom:8px; }
.pg-fin-desc { font-size:12px; color:#94a3b8; text-align:center; line-height:1.6; margin-bottom:20px; }
.pg-fin-stats { display:flex; gap:24px; }
.pg-fin-stats div { text-align:center; }
.pg-fin-stats strong { display:block; font-size:18px; color:#fff; font-weight:800; }
.pg-fin-stats span { font-size:10px; color:#94a3b8; text-transform:uppercase; letter-spacing:0.5px; }

/* Roles Panel */
.pg-roles-panel { background:rgba(255,255,255,0.03); border-radius:10px; border:1px solid rgba(255,255,255,0.06); overflow:hidden; }
.pg-panel-header { padding:8px 12px; font-size:11px; font-weight:700; color:var(--text-secondary); display:flex; align-items:center; gap:6px; border-bottom:1px solid rgba(255,255,255,0.04); text-transform:uppercase; letter-spacing:0.5px; }
.pg-panel-badge { margin-left:auto; min-width:18px; height:18px; border-radius:9px; background:rgba(239,68,68,0.15); color:#ef4444; font-size:9px; font-weight:700; display:flex; align-items:center; justify-content:center; padding:0 5px; }
.pg-role-card { display:flex; align-items:center; gap:8px; padding:8px 12px; cursor:pointer; transition:all 0.2s; border-bottom:1px solid rgba(255,255,255,0.03); }
.pg-role-card:hover { background:rgba(255,255,255,0.04); }
.pg-role-card:last-child { border-bottom:none; }
.pg-role-icon { width:28px; height:28px; border-radius:7px; background:rgba(255,255,255,0.06); display:flex; align-items:center; justify-content:center; color:var(--role-color); font-size:12px; transition:all 0.2s; }
.pg-role-placed .pg-role-icon { background:var(--role-color); color:#fff; }
.pg-role-info { flex:1; }
.pg-role-name { font-size:11px; font-weight:700; color:var(--text-primary); }
.pg-role-status { font-size:9px; color:var(--text-muted); display:flex; align-items:center; gap:4px; margin-top:1px; }
.pg-role-placed .pg-role-status { color:#22c55e; }
.pg-role-check { width:18px; height:18px; border-radius:50%; background:rgba(34,197,94,0.15); color:#22c55e; display:flex; align-items:center; justify-content:center; font-size:8px; }

/* Controls */
.pg-controls { display:flex; flex-direction:column; gap:6px; }

/* Live Stock Panel */
.pg-live-panel { background:rgba(255,255,255,0.03); border-radius:10px; border:1px solid rgba(255,255,255,0.06); overflow:hidden; }
.pg-live-stock-list { padding:6px 10px; max-height:160px; overflow-y:auto; }
.pg-stock-row { display:flex; align-items:center; gap:6px; padding:3px 0; font-size:10px; }
.pg-stock-name { width:60px; color:var(--text-secondary); font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; flex-shrink:0; }
.pg-stock-bar { flex:1; height:4px; border-radius:2px; background:rgba(255,255,255,0.06); overflow:hidden; }
.pg-stock-fill { height:100%; border-radius:2px; transition:width 0.6s ease, background 0.3s; }
.pg-stock-val { width:32px; text-align:right; font-family:'JetBrains Mono',monospace; font-size:9px; font-weight:700; flex-shrink:0; }

/* Log Panel */
.pg-log-panel { background:rgba(0,0,0,0.4); border-radius:10px; border:1px solid rgba(255,255,255,0.08); overflow:hidden; flex:1; min-height:0; display:flex; flex-direction:column; }
.pg-log-list { flex:1; overflow-y:auto; padding:8px; font-family:'JetBrains Mono',monospace; font-size:11px; min-height:100px; max-height:220px; }
.pg-log-list::-webkit-scrollbar { width:4px; }
.pg-log-list::-webkit-scrollbar-track { background:transparent; }
.pg-log-list::-webkit-scrollbar-thumb { background:rgba(255,255,255,0.1); border-radius:2px; }
.pg-log-line { padding:5px 8px; border-radius:6px; display:flex; gap:8px; align-items:flex-start; margin-bottom:3px; line-height:1.5; transition:background 0.2s; }
.pg-log-line:hover { background:rgba(255,255,255,0.03); }
.pg-log-ts { color:#64748b; flex-shrink:0; font-size:10px; margin-top:1px; min-width:55px; }
.pg-log-msg { color:#cbd5e1; font-size:11px; }
.pg-log-event { background:rgba(99,102,241,0.06); border-left:2px solid #6366f1; }
.pg-log-event .pg-log-msg { color:#a5b4fc; font-weight:700; }
.pg-log-success .pg-log-msg { color:#4ade80; font-weight:600; }
.pg-log-warning .pg-log-msg { color:#fbbf24; }
.pg-log-error .pg-log-msg { color:#f87171; }
.pg-log-code { background:rgba(6,182,212,0.06); border-left:2px solid rgba(6,182,212,0.3); }
.pg-log-code .pg-log-msg { color:#22d3ee; font-size:10px; }
.pg-log-order .pg-log-msg { color:#c4b5fd; font-weight:600; }
.pg-log-chat { background:rgba(236,72,153,0.06); border-left:2px solid rgba(236,72,153,0.3); }
.pg-log-chat .pg-log-msg { color:#f9a8d4; font-style:italic; font-weight:600; }

/* Step Info */
.pg-step-info { min-height:60px; }
.pg-step-placeholder { text-align:center; padding:16px; color:var(--text-muted); font-size:12px; display:flex; align-items:center; justify-content:center; gap:8px; background:rgba(255,255,255,0.02); border-radius:10px; }
.pg-step-card { display:flex; align-items:center; gap:14px; padding:12px 16px; background:rgba(255,255,255,0.03); border-radius:12px; border:1px solid rgba(255,255,255,0.06); border-left:3px solid var(--step-color); animation:pg-step-in 0.3s ease; }
@keyframes pg-step-in { from { opacity:0; transform:translateX(-10px); } to { opacity:1; transform:translateX(0); } }
.pg-step-icon { width:40px; height:40px; border-radius:10px; background:var(--step-color); display:flex; align-items:center; justify-content:center; color:#fff; font-size:16px; flex-shrink:0; }
.pg-step-num { font-size:9px; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:1px; }
.pg-step-title { font-size:14px; font-weight:800; color:var(--text-primary); margin:2px 0; }
.pg-step-desc { font-size:11px; color:var(--text-secondary); }

/* Animation Layer */
.pg-anim-layer { position:absolute; inset:0; z-index:30; pointer-events:none; }

/* Responsive — Tablet */
@media (max-width:1024px) {
    .pg-body { grid-template-columns:minmax(0,1fr) 240px; }
    .pg-live-strip { flex-wrap:wrap; }
    .pg-metric { min-width:calc(33% - 6px); flex:none; }
}

/* Responsive — Mobile */
@media (max-width:768px) {
    .pg-wrap { gap:8px; min-height:auto; height:auto; overflow-x:hidden; }

    /* Header */
    .pg-header { flex-direction:column; gap:8px; padding:10px 14px; align-items:flex-start; }
    .pg-header-left { gap:10px; }
    .pg-title-icon { width:34px; height:34px; font-size:14px; border-radius:9px; }
    .pg-title { font-size:15px; }
    .pg-subtitle { font-size:10px; }
    .pg-header-right { width:100%; justify-content:space-between; }
    .pg-phase-badge { font-size:10px; padding:4px 10px; }
    .pg-btn-reset { font-size:11px; padding:6px 10px; }

    /* Live Metrics — horizontal scroll */
    .pg-live-strip { flex-wrap:nowrap; overflow-x:auto; -webkit-overflow-scrolling:touch; gap:6px; padding:8px 10px; }
    .pg-metric { min-width:110px; flex:none; padding:5px 8px; }
    .pg-metric-icon { width:26px; height:26px; font-size:11px; border-radius:6px; }
    .pg-metric-val { font-size:11px; }
    .pg-metric-lbl { font-size:8px; }

    /* Steps Bar — scrollable */
    .pg-steps-bar { padding:6px 10px; overflow-x:auto; -webkit-overflow-scrolling:touch; justify-content:flex-start; }
    .pg-step-dot { width:20px; height:20px; font-size:7px; }
    .pg-step-line { width:6px; }

    /* Body — single column */
    .pg-body { grid-template-columns:minmax(0,1fr); gap:8px; }

    /* Scene — smaller */
    .pg-scene { min-height:260px; max-height:55vh; border-radius:12px; }
    .pg-zone-label { font-size:8px; letter-spacing:1px; }
    .pg-zone-label i { font-size:9px; }
    .pg-zone { padding:6px 8px; border-radius:10px; }
    .pg-table-shape { width:40px; height:40px; border-radius:8px; }
    .pg-table-num { font-size:14px; }
    .pg-table-seats { font-size:7px; margin-top:2px; }
    .pg-role-avatar i { width:32px; height:32px; font-size:13px; }
    .pg-avatar-ring { width:40px; height:40px; }
    .pg-avatar-label { font-size:7px; padding:1px 6px; border-radius:4px; letter-spacing:0.5px; }
    .pg-customer i { width:24px; height:24px; font-size:10px; }
    .pg-customer span { font-size:7px; padding:1px 5px; }
    .pg-scene-toast { font-size:10px; padding:6px 12px; gap:6px; }
    .pg-scene-toast i { font-size:11px; }

    /* Step Info */
    .pg-step-info { min-height:auto; }
    .pg-step-card { padding:10px 12px; gap:10px; border-radius:10px; }
    .pg-step-icon { width:32px; height:32px; font-size:13px; border-radius:8px; }
    .pg-step-title { font-size:12px; }
    .pg-step-desc { font-size:10px; }
    .pg-step-num { font-size:8px; }
    .pg-step-placeholder { font-size:11px; padding:12px; }

    /* Side Column */
    .pg-side-col { gap:6px; }

    /* Roles Panel — horizontal cards */
    .pg-roles-panel { overflow:hidden; }
    .pg-panel-header { padding:6px 10px; font-size:10px; }
    .pg-role-card { padding:6px 10px; gap:6px; }
    .pg-role-icon { width:24px; height:24px; font-size:10px; border-radius:6px; }
    .pg-role-name { font-size:10px; }
    .pg-role-status { font-size:8px; }
    .pg-role-check { width:16px; height:16px; font-size:7px; }

    /* Controls */
    .pg-btn-start, .pg-btn-pause { padding:9px; font-size:12px; }

    /* Live Stock */
    .pg-live-stock-list { max-height:100px; padding:4px 8px; }
    .pg-stock-row { font-size:9px; }
    .pg-stock-name { width:50px; font-size:9px; }
    .pg-stock-val { width:28px; font-size:8px; }

    /* Log Panel */
    .pg-log-list { max-height:120px; min-height:60px; padding:6px; font-size:10px; }
    .pg-log-line { padding:4px 6px; gap:6px; }
    .pg-log-ts { font-size:8px; min-width:46px; }
    .pg-log-msg { font-size:9px; }

    /* Overlay animations — scale down */
    .pg-stock-deduct { font-size:9px; padding:6px 10px; gap:6px; border-radius:8px; }
    .pg-sd-amount { font-size:9px; }
    .pg-sd-remain { font-size:8px; }
    .pg-order-pop { font-size:10px; padding:6px 10px; gap:6px; border-radius:8px; }
    .pg-op-icon { font-size:14px; }
    .pg-flying-ticket { font-size:9px; padding:6px 10px; border-radius:6px; }
    .pg-cook-item { font-size:10px; padding:8px 12px; gap:6px; border-radius:8px; }
    .pg-cook-fire i { font-size:13px; }
    .pg-cook-check { font-size:13px; }
    .pg-pay-terminal { min-width:130px; padding:12px; border-radius:10px; }
    .pg-pt-amount { font-size:18px; }
    .pg-pt-header { font-size:9px; }
    .pg-pt-status { font-size:9px; }
    .pg-fiscal-receipt { min-width:110px; padding:10px; font-size:9px; }
    .pg-fr-head { font-size:10px; }
    .pg-accounting-card { min-width:150px; padding:10px; border-radius:8px; }
    .pg-ac-head { font-size:10px; }
    .pg-ac-row { font-size:9px; }

    /* Finale */
    .pg-finale { border-radius:12px; padding:20px; }
    .pg-fin-icon { width:48px; height:48px; font-size:20px; margin-bottom:12px; }
    .pg-fin-title { font-size:16px; }
    .pg-fin-desc { font-size:10px; margin-bottom:14px; }
    .pg-fin-stats { gap:16px; flex-wrap:wrap; justify-content:center; }
    .pg-fin-stats strong { font-size:14px; }
    .pg-fin-stats span { font-size:9px; }

    /* Bubble */
    .pg-bubble { font-size:10px; padding:6px 12px; border-radius:8px; }
}

/* Responsive — Small Mobile */
@media (max-width:480px) {
    .pg-scene { min-height:220px; max-height:45vh; }
    .pg-metric { min-width:100px; }
    .pg-table-shape { width:32px; height:32px; }
    .pg-table-num { font-size:12px; }
    .pg-role-avatar i { width:26px; height:26px; font-size:11px; }
    .pg-avatar-ring { width:34px; height:34px; }
    .pg-avatar-label { font-size:6px; padding:1px 4px; }
    .pg-zone-label { font-size:7px; }
    .pg-live-stock-list { max-height:80px; }
    .pg-log-list { max-height:80px; }
}
