/* POS / KDS / Garson / CFD ortak: cihaz kapısı, diyaloglar, tuş takımları */
html, body { height: 100%; }
.gate { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(1200px 600px at 20% -10%, color-mix(in srgb, var(--brand) 14%, transparent), transparent), var(--bg); }
.gate-card { width: min(380px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--sh-2); text-align: center; }
.gate-card.wide { width: min(820px, 100%); text-align: left; }
.gate-card h2 { font-size: 20px; margin: 14px 0 6px; }
.gate-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.gate-body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
@media (max-width: 720px) { .gate-body { grid-template-columns: 1fr; } }
.gate-alt { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.code-boxes { display: flex; gap: 8px; justify-content: center; margin: 18px 0; }
.code-boxes span { width: 44px; height: 54px; border: 2px solid var(--line-2); border-radius: 12px; display: grid; place-items: center; font-size: 24px; font-weight: 800; }
.code-boxes span.on { border-color: var(--brand); }
.staff-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; align-content: start; max-height: 60vh; overflow: auto; }
.staff { display: flex; align-items: center; gap: 10px; padding: 10px; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; text-align: left; min-height: 64px; }
.staff.on { border-color: var(--brand); background: var(--brand-50); }
.staff .sn { display: flex; flex-direction: column; line-height: 1.2; } .staff small { color: var(--muted); }
.avatar { width: 40px; height: 40px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; font-size: 14px; }
.pin-side h3 { text-align: center; font-size: 17px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line-2); background: var(--surface); padding: 6px 12px; border-radius: 99px; cursor: pointer; font-weight: 600; font-size: 13px; }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.choice-list { display: flex; flex-direction: column; gap: 8px; }
.moneypad .mp-display { font-size: 34px; font-weight: 800; text-align: right; padding: 10px 14px; background: var(--surface-2); border-radius: var(--r-lg); margin-bottom: 10px; }
.moneypad .mp-display span { font-size: 20px; color: var(--muted); }
.mp-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 6px; margin-bottom: 8px; }
.pressing { position: relative; overflow: hidden; }
.pressing::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.35); transform-origin: left; animation: lp var(--lp-ms, 600ms) linear forwards; }
@keyframes lp { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.conn { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; }
.conn.on { background: var(--success-50); color: var(--success); }
.conn.sync { background: var(--warning-50); color: var(--warning); }
.conn.off { background: var(--danger-50); color: var(--danger); }
.ic { flex: none; }

/* dil seçici (panel / admin kenar menüsü) */
.lang-pick { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; color: var(--muted); font-size: 13px; }
.lang-pick select { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; padding: 4px 0; }
.lang-pick:hover { background: var(--surface-2, rgba(0,0,0,.04)); }
.gate-lang { margin: 14px auto 0; max-width: 200px; justify-content: center; }

/* ---------------------------------------------------------------- öğretici tur */
.tour { position: fixed; inset: 0; z-index: 3000; }
.tour-block { position: absolute; inset: 0; }
.tour-dim { position: absolute; inset: 0; background: rgba(12, 14, 18, .55); }
.tour-hole { position: absolute; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(12, 14, 18, .55), 0 0 0 3px var(--brand); transition: all .25s ease; pointer-events: none; }
.tour-pop { position: absolute; width: min(360px, calc(100vw - 24px)); background: var(--surface); color: var(--ink); border-radius: 14px; padding: 16px 18px 14px; box-shadow: 0 20px 50px rgba(0,0,0,.28); outline: none; transition: top .2s ease, left .2s ease; }
.tour-pop h3 { margin: 4px 0 6px; font-size: 17px; }
.tour-pop p { margin: 0 0 14px; color: var(--ink-2); line-height: 1.5; font-size: 14.5px; }
.tour-meta { display: flex; align-items: center; justify-content: space-between; }
.tour-count { font-size: 12px; font-weight: 700; color: var(--brand); letter-spacing: .04em; }
.tour-x { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.tour-x:hover { background: var(--surface-2); }
.tour-actions { display: flex; gap: 8px; align-items: center; }
@media (prefers-reduced-motion: reduce) { .tour-hole, .tour-pop { transition: none; } }

/* ---------------------------------------------------------------- yardım paneli */
.help-wrap { position: fixed; inset: 0; z-index: 2900; background: rgba(12,14,18,.25); display: flex; justify-content: flex-end; }
.help-wrap.center { justify-content: center; align-items: center; background: rgba(12,14,18,.45); }
.help-panel { width: min(400px, 100vw); height: 100%; overflow: auto; background: var(--surface); color: var(--ink); box-shadow: -12px 0 40px rgba(0,0,0,.18); padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; animation: helpIn .18s ease; }
@keyframes helpIn { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.help-h { display: flex; align-items: center; gap: 10px; }
.help-h h3 { margin: 0; flex: 1; font-size: 18px; }
.help-badge { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); font-weight: 800; }
.help-text { margin: 0; line-height: 1.55; color: var(--ink-2); }
.help-sec { display: flex; flex-direction: column; gap: 8px; }
.help-lbl { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.help-tour { justify-content: space-between !important; }
.help-keys { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: 13.5px; }
.help-keys > div { display: flex; gap: 8px; align-items: center; }
.help-keys .kbd { min-width: 52px; text-align: center; }
.help-keys.big { font-size: 15px; gap: 10px 22px; }
.help-foot { margin-top: auto; }
.help-btn .ic { color: var(--brand); }
.kbd-card { background: var(--surface); color: var(--ink); border-radius: 16px; padding: 22px 26px; width: min(560px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.kbd-card h3 { margin: 0 0 14px; }

/* ---------------------------------------------------------------- bilgi ipucu (ⓘ) */
.tip { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 5px; border-radius: 50%; background: var(--surface-3); color: var(--ink-2); font-size: 11px; font-weight: 800; font-style: normal; cursor: help; position: relative; vertical-align: 1px; }
.tip::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); width: max-content; max-width: 280px; background: var(--ink); color: var(--surface); padding: 8px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 500; line-height: 1.4; white-space: normal; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 50; text-transform: none; letter-spacing: 0; }
.tip:hover::after, .tip:focus::after { opacity: 1; }

/* Kurye haritası */
.cm-box { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.cm-map { position: absolute; inset: 0; }
.cm-fail { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); padding: 16px; text-align: center; }
.cm-pin-wrap { background: none; border: 0; }
.cm-pin { width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #16a34a; border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.3); display: grid; place-items: center; }
.cm-pin.busy { background: #FF5A1F; }
.cm-pin span { transform: rotate(45deg); color: #fff; font-weight: 800; font-size: 14px; }
.cm-lbl { position: absolute; top: 36px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: #fff; color: #111; font: 600 11px/1.4 system-ui, sans-serif; padding: 1px 6px; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.cr-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); gap: 12px; }
@media (max-width: 860px) { .cr-grid { grid-template-columns: 1fr; } }
.cr-item { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: var(--surface); }
.cr-item .dot { width: 9px; height: 9px; border-radius: 50%; background: #16a34a; display: inline-block; margin-right: 6px; }
.cr-item .dot.busy { background: #FF5A1F; } .cr-item .dot.off { background: #9ca3af; }
.badge-suggest { background: rgba(22,163,74,.12); color: #15803d; }
