:root {
  --bg-primary: #0d0f14;
  --bg-card: #151922;
  --bg-card-hover: #1b202c;
  --bg-card-elevated: #1e2432;
  --bg-input: #1a1f2b;
  --accent: #f59e0b;
  --accent-hover: #fbbf24;
  --accent-glow: rgba(245, 158, 11, 0.28);
  --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border: #232936;
  --border-light: rgba(255, 255, 255, 0.08);
  --success: #10b981;
  --danger: #f43f5e;
  --info: #38bdf8;
  --card-radius: 18px;
  --card-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  padding: 16px;
  direction: rtl;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

button, input, select, textarea {
  touch-action: manipulation;
}

.container {
  width: 100%;
  max-width: 950px;
  min-width: 0;
  margin: 0 auto;
}

/* מערכת החלפת מסכים נקיים */
.screen-view {
  display: none;
}

.screen-view.active {
  display: block;
}

/* מסך נעילה */
#screen-lock {
  min-height: 85vh;
  display: none;
  align-items: center;
  justify-content: center;
}

#screen-lock.active {
  display: flex;
}

.lock-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 28px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.lock-box h2 {
  color: var(--accent);
  margin-bottom: 8px;
  font-size: 1.6rem;
}

.lock-box p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.pin-display {
  direction: ltr;
  letter-spacing: 12px;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 20px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  color: #fff;
}

.keypad {
  direction: ltr;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 10px;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.key-btn {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: #fff;
  font-size: 1.4rem;
  font-weight: bold;
  padding: 14px;
  min-height: 58px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.key-btn:hover {
  background: var(--border);
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.app-title h1 {
  color: var(--accent);
  font-size: 1.6rem;
}

.app-title p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Dashboard Cards בדף הראשי */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  margin-top: 16px;
  width: 100%;
  max-width: 100%;
}

.dash-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  min-width: 0;
  max-width: 100%;
}

.dash-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  background: rgba(229, 169, 60, 0.08);
}

.dash-card .icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.dash-card h3 {
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.dash-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* אלמנטים כלליים וכרטיסיות */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.card h2 {
  color: var(--accent);
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.info-banner {
  background: rgba(229, 169, 60, 0.12);
  border-right: 4px solid var(--accent);
  padding: 12px 14px;
  border-radius: 6px;
  color: #f0f2f5;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

/* סקציות תנורים וטיימרים */
.oven-section {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

.oven-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

.oven-header h3 {
  color: #fff;
  font-size: 1.15rem;
}

.oven-spec {
  color: var(--accent);
  font-size: 0.9rem;
  margin-top: 4px;
}

.timer-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.timer-display {
  font-family: monospace;
  font-size: 1.3rem;
  color: #fff;
  font-weight: bold;
  min-width: 60px;
  text-align: center;
}

.timer-btn {
  background: var(--accent);
  color: #000;
  border: none;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.timer-btn.reset {
  background: var(--border);
  color: #fff;
}

.timer-btn.pause {
  background: #f77f00;
  color: #fff;
}

/* רשימות משימות */
.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  transition: background 0.15s;
  cursor: pointer;
}

.checklist-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.checklist-item input[type="checkbox"] {
  width: 24px;
  height: 24px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.checklist-item label {
  cursor: pointer;
  margin-bottom: 0;
  font-size: 1.02rem;
  line-height: 1.5;
  transition: opacity 0.2s, text-decoration 0.2s;
}

.checklist-item.checked label {
  text-decoration: line-through;
  opacity: 0.55;
}

/* טפסים וטבלאות */
.input-group {
  margin-bottom: 16px;
}

label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

input, select, textarea {
  width: 100%;
  padding: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}

.results-table th, .results-table td {
  padding: 12px 14px;
  text-align: right;
  border-bottom: 1px solid var(--border);
}

.results-table th {
  color: var(--text-muted);
  font-weight: 600;
  background: rgba(255,255,255,0.02);
}

.results-table td.val {
  font-weight: bold;
  color: var(--accent);
  font-size: 1.1rem;
}

/* כפתורים */
.btn-action {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 10px 18px;
  min-height: 44px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}

.btn-action:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  border: none;
}

/* גריד מתכונים */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.recipe-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.recipe-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 6px 16px rgba(229, 169, 60, 0.18);
}

.recipe-card h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.recipe-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* מודאלים (מתחילים מיד מתחת לבר העליון המצומצם בגובה 26px) */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  padding: 32px 12px 16px 12px;
  overflow-y: auto;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  max-width: 650px;
  margin: 4px auto 16px auto;
  padding: 20px 18px;
  position: relative;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}

.close-btn {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 44px;
  height: 44px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.multiplier-buttons {
  display: flex;
  gap: 8px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.mult-btn {
  min-height: 44px;
  padding: 8px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.mult-btn.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.custom-mult-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.modal-actions-footer {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  justify-content: flex-end;
  flex-wrap: wrap;
}

.dynamic-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr auto;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}

.btn-remove {
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 12px;
  cursor: pointer;
}

/* Language switcher button */
.lang-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.lang-toggle-btn:hover {
  background: var(--accent);
  color: #000;
}

/* LTR layout support */
html[dir="ltr"] body {
  direction: ltr;
  text-align: left;
}

html[dir="ltr"] .results-table th,
html[dir="ltr"] .results-table td {
  text-align: left;
}

html[dir="ltr"] .info-banner {
  border-right: none;
  border-left: 4px solid var(--accent);
}

html[dir="ltr"] .close-btn {
  left: auto;
  right: 14px;
}

/* ===== שדרוגי עיצוב ותצוגה מתקדמים ===== */

/* אנימציית דופק לטיימר פועל */
@keyframes timerPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(229, 169, 60, 0.4);
    border-color: var(--accent);
  }
  50% {
    box-shadow: 0 0 16px 4px rgba(229, 169, 60, 0.6);
    border-color: #ffd166;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(229, 169, 60, 0.4);
    border-color: var(--accent);
  }
}

/* אנימציית התראה לסיום אפייה */
@keyframes timerAlarm {
  0%, 100% {
    background-color: var(--bg-card);
    border-color: var(--danger);
    transform: scale(1);
  }
  50% {
    background-color: rgba(230, 57, 70, 0.35);
    border-color: #ff4d6d;
    transform: scale(1.03);
  }
}

.timer-box.running,
.pro-timer-console.running {
  animation: timerPulse 2s infinite ease-in-out;
  border-color: var(--accent) !important;
}

.timer-box.finished,
.pro-timer-console.finished {
  animation: timerAlarm 0.8s infinite ease-in-out;
  border-color: var(--danger) !important;
}

.timer-box.finished .timer-display,
.pro-timer-console.finished .pro-timer-display {
  color: #ff4d6d !important;
}

/* תגיות בידול לתנורים */
.oven-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.oven-badge.left-oven {
  background: rgba(247, 127, 0, 0.15);
  color: #f77f00;
  border: 1px solid rgba(247, 127, 0, 0.4);
}

.oven-badge.right-oven {
  background: rgba(229, 169, 60, 0.15);
  color: #e5a93c;
  border: 1px solid rgba(229, 169, 60, 0.4);
}

/* לוח סיכום משקלי מלוש (KPI Grid) */
.mixer-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.mixer-kpi-card {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}

.mixer-kpi-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.mixer-kpi-card .kpi-label {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 8px;
  font-weight: 500;
}

.mixer-kpi-card .kpi-val {
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 800;
  font-family: system-ui, -apple-system, sans-serif;
}

.mixer-kpi-card.highlight {
  border-color: rgba(56, 176, 0, 0.4);
  background: rgba(56, 176, 0, 0.08);
}

.mixer-kpi-card.highlight .kpi-val {
  color: var(--success);
}

/* כפתור איפוס משימות יום */
.reset-checklist-btn {
  background: transparent;
  border: 1px dashed var(--border);
  color: var(--text-muted);
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  transition: all 0.2s;
}

.reset-checklist-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* שעוני אפייה מקצועיים */
.pro-oven-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: border-color 0.2s;
}

.pro-oven-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.pro-oven-spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(229, 169, 60, 0.1);
  color: var(--accent);
  border: 1px solid rgba(229, 169, 60, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* קונסולת טיימר מקצועית */
.pro-timer-console {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #111317;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.pro-timer-display {
  font-family: 'SF Mono', 'JetBrains Mono', 'Roboto Mono', monospace;
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
  min-width: 105px;
  text-align: center;
  direction: ltr;
}

.pro-timer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pro-btn-start {
  background: var(--accent);
  color: #000;
  border: none;
  font-weight: 800;
  font-size: 1rem;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.pro-btn-start:hover {
  background: var(--accent-hover);
  transform: scale(1.03);
}

.pro-btn-start.pause-mode {
  background: #f77f00;
  color: #fff;
}

.pro-btn-reset {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
}

.pro-btn-reset:hover {
  color: #fff;
  border-color: #555;
}

.pro-btn-quick-add {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.pro-btn-quick-add:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

/* שלבי עבודה ודגשים מעוצבים ככרטיסיות נקיות */
.steps-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.step-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(229, 169, 60, 0.3);
}

.step-item.completed {
  background: rgba(56, 176, 0, 0.08);
  border-color: rgba(56, 176, 0, 0.3);
}

.step-item.completed .step-text {
  text-decoration: line-through;
  opacity: 0.6;
}

.step-checkbox-box {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}

.step-item.completed .step-checkbox-box {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.step-text {
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--text-main);
}

/* ===== מערכת שלבים ממוקדת לפתיחת בוקר (Staged Wizard) ===== */
.wizard-stepper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.wizard-step-tab {
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.wizard-step-tab:hover {
  border-color: rgba(229, 169, 60, 0.5);
  transform: translateY(-2px);
}

.wizard-step-tab.active {
  background: rgba(229, 169, 60, 0.12);
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(229, 169, 60, 0.25);
}

.wizard-step-num {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
}

.wizard-step-tab.active .wizard-step-num {
  color: var(--accent);
}

.wizard-step-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  white-space: normal;
  line-height: 1.3;
}

/* מסכי השלבים (Stages) */
.wizard-stage-view {
  display: none;
  animation: stageFadeIn 0.25s ease-out;
}

.wizard-stage-view.active {
  display: block;
}

@keyframes stageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.stage-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.stage-badge-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(229, 169, 60, 0.15);
  color: var(--accent);
  border: 1px solid rgba(229, 169, 60, 0.4);
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.stage-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.stage-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* החלטת מחמצת */
.sourdough-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.sourdough-choice-btn {
  background: var(--bg-input);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: right;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

html[dir="ltr"] .sourdough-choice-btn {
  text-align: left;
}

.sourdough-choice-btn:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.sourdough-choice-btn.selected {
  border-color: var(--accent);
  background: rgba(229, 169, 60, 0.14);
  box-shadow: 0 0 20px rgba(229, 169, 60, 0.3);
}

.sourdough-choice-btn .choice-content {
  flex: 1;
}

.sourdough-choice-btn .choice-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.sourdough-choice-btn .choice-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* לוח תוכנית מלאה למחמצת */
.plan-detail-box {
  display: none;
  background: #14171d;
  border: 1px solid var(--accent);
  border-radius: 16px;
  padding: 26px;
  margin-top: 20px;
  animation: stageFadeIn 0.3s ease;
}

.plan-detail-box.active {
  display: block;
}

.weight-pill-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0 24px 0;
}

.weight-pill {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.weight-pill strong {
  color: var(--accent);
  font-size: 1.2rem;
}

/* סרגל ניווט תחתון בין שלבים */
.wizard-nav-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  gap: 14px;
  flex-wrap: wrap;
}

.btn-wizard-next {
  background: var(--accent);
  color: #000;
  border: none;
  font-weight: 800;
  font-size: 1.1rem;
  min-height: 48px;
  padding: 14px 28px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(229, 169, 60, 0.3);
}

.btn-wizard-next:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-wizard-prev {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 1rem;
  min-height: 48px;
  padding: 14px 22px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-wizard-prev:hover {
  color: #fff;
  border-color: #555;
}

/* שעון ותאריך בכותרת */
.header-datetime-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(229, 169, 60, 0.1);
  border: 1px solid rgba(229, 169, 60, 0.35);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.92rem;
  font-weight: 600;
  margin-right: auto;
}

html[dir="ltr"] .header-datetime-badge {
  margin-right: 0;
  margin-left: auto;
}

.header-datetime-badge .clock-time {
  font-family: 'SF Mono', 'Roboto Mono', monospace;
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 800;
}

/* באנר יעד אפייה יומי אוטומטי */
.daily-bread-target-banner {
  background: linear-gradient(135deg, rgba(229, 169, 60, 0.15), rgba(247, 127, 0, 0.08));
  border: 1px solid rgba(229, 169, 60, 0.45);
  border-radius: 14px;
  padding: 14px 20px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.daily-bread-target-banner .bread-target-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.daily-bread-target-banner .bread-target-title {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 2px;
  font-weight: 600;
}

.daily-bread-target-banner .bread-target-quantities {
  font-size: 1.15rem;
  color: #fff;
  font-weight: 700;
}

.daily-bread-target-banner .bread-target-quantities strong {
  color: var(--accent);
}

/* הדגשת יעד בתוך סבבי האפייה */
.highlight-day-target {
  background: rgba(56, 176, 0, 0.12);
  border: 1px solid rgba(56, 176, 0, 0.35);
  color: #bbf7d0;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  font-weight: 600;
}

.highlight-day-target strong {
  color: #4ade80;
}

.fermentolyse-timer-wrapper {
  background: #0d0f13;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 768px) {
  .wizard-stepper {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }
}

@media (max-width: 600px) {
  .pro-timer-console {
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 14px 10px;
    gap: 12px;
  }

  .pro-timer-display {
    font-size: 2.4rem;
    min-width: unset;
    margin-bottom: 2px;
    text-align: center;
  }

  .pro-timer-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
  }

  .pro-btn-start {
    flex: 1 1 120px;
    justify-content: center;
    padding: 12px 16px;
    font-size: 1.05rem;
  }

  .pro-btn-quick-add {
    flex: 0 0 auto;
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .pro-btn-reset {
    flex: 0 0 auto;
    padding: 10px 14px;
  }

  .stage-hero-card {
    padding: 20px 16px;
  }

  .sourdough-choice-btn {
    padding: 16px 14px;
  }

  .sourdough-choice-btn .choice-title {
    font-size: 1.1rem;
  }

  .sourdough-choice-btn .choice-desc {
    font-size: 0.85rem;
  }

  .weight-pill {
    width: 100%;
    justify-content: space-between;
  }

  .btn-wizard-next, .btn-wizard-prev {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .wizard-nav-footer {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .fermentolyse-timer-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .dynamic-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== עמוד שער ראשי (Welcome Screen) ===== */
#screen-welcome {
  min-height: 85vh;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px 10px;
}

#screen-welcome.active {
  display: flex;
}

.welcome-container {
  width: 100%;
  max-width: 740px;
  margin: 0 auto;
}

.welcome-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 30px;
  text-align: center;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  position: relative;
}

.welcome-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(229, 169, 60, 0.14);
  color: var(--accent);
  border: 1px solid rgba(229, 169, 60, 0.35);
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.welcome-title {
  color: #fff;
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.welcome-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
  line-height: 1.5;
}

.role-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.role-card {
  background: var(--bg-input);
  border: 2px solid var(--border);
  border-radius: 18px;
  padding: 34px 24px;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

html[dir="ltr"] .role-card {
  text-align: center;
}

.role-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.role-card.confectioner-card:hover {
  border-color: var(--accent);
  background: rgba(229, 169, 60, 0.08);
}

.role-card.admin-card:hover {
  border-color: #f77f00;
  background: rgba(247, 127, 0, 0.08);
}

.role-card .role-icon {
  font-size: 3.4rem;
  margin-bottom: 4px;
}

.role-card h2 {
  font-size: 1.55rem;
  color: #fff;
  margin: 0;
  font-weight: 800;
}

.role-enter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  margin-top: 6px;
}

.role-enter-btn.admin-btn {
  color: #f77f00;
}

.role-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
}

/* ===== מסך נעילת מנהל מערכת (Admin Lock Box) ===== */
#screen-admin-lock {
  min-height: 85vh;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px 10px;
}

#screen-admin-lock.active {
  display: flex;
}

.admin-lock-box {
  background: linear-gradient(165deg, #1d212b 0%, #13151b 100%);
  border: 2px solid rgba(229, 169, 60, 0.45);
  border-radius: 20px;
  padding: 38px 30px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65), 0 0 25px rgba(229, 169, 60, 0.15);
}

.admin-shield-icon {
  font-size: 3.2rem;
  margin-bottom: 10px;
  filter: drop-shadow(0 4px 10px rgba(229, 169, 60, 0.3));
}

.admin-pin-display {
  border-color: rgba(229, 169, 60, 0.5) !important;
  color: var(--accent) !important;
  background: #111317 !important;
}

.admin-key-btn {
  border-color: rgba(255, 255, 255, 0.1) !important;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.admin-key-btn:hover {
  border-color: var(--accent) !important;
  background: rgba(229, 169, 60, 0.15) !important;
  color: var(--accent) !important;
}

/* ===== פאנל מנהל מערכת (Admin Dashboard) ===== */
.admin-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(247, 127, 0, 0.15);
  color: #f77f00;
  border: 1px solid rgba(247, 127, 0, 0.4);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.admin-kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.admin-kpi-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.admin-kpi-icon {
  font-size: 2rem;
  margin-bottom: 6px;
}

.admin-kpi-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  font-family: system-ui, sans-serif;
}

.admin-kpi-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* תגיות סוג פעולה ביומן */
.log-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
}

.log-badge.login {
  background: rgba(56, 176, 0, 0.15);
  color: #38b000;
  border: 1px solid rgba(56, 176, 0, 0.35);
}

.log-badge.task {
  background: rgba(229, 169, 60, 0.15);
  color: var(--accent);
  border: 1px solid rgba(229, 169, 60, 0.35);
}

.log-badge.recipe {
  background: rgba(0, 180, 216, 0.15);
  color: #00b4d8;
  border: 1px solid rgba(0, 180, 216, 0.35);
}

.log-badge.reset {
  background: rgba(230, 57, 70, 0.15);
  color: #e63946;
  border: 1px solid rgba(230, 57, 70, 0.35);
}

@media (max-width: 600px) {
  .welcome-box {
    padding: 24px 16px;
  }
  .welcome-title {
    font-size: 1.65rem;
  }
  .role-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== שדרוג קטגוריות ניהול, אירועים והזמנות מיוחדות ===== */
.dash-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #000;
  font-weight: 800;
  font-size: 0.85rem;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(229, 169, 60, 0.4);
}

html[dir="ltr"] .dash-card-badge {
  left: auto;
  right: 12px;
}

.admin-categories-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.admin-cat-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 14px;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.98rem;
  font-weight: 700;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.admin-cat-btn:hover {
  border-color: rgba(229, 169, 60, 0.55);
  transform: translateY(-2px);
}

.admin-cat-btn.active {
  background: rgba(229, 169, 60, 0.14);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 6px 18px rgba(229, 169, 60, 0.25);
}

.admin-cat-btn .cat-icon {
  font-size: 1.35rem;
}

.cat-count-pill {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
}

.admin-cat-btn.active .cat-count-pill {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.admin-cat-view {
  display: none;
  animation: stageFadeIn 0.22s ease-out;
}

.admin-cat-view.active {
  display: block;
}

.admin-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

/* כפתור פרסום רשימה לדף קונדיטורים */
.btn-publish-toggle {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 10px 16px;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-publish-toggle.published {
  background: rgba(56, 176, 0, 0.14);
  border-color: rgba(56, 176, 0, 0.5);
  color: #4ade80;
}

.btn-publish-toggle:hover {
  border-color: var(--accent);
}

/* תגיות סטטוס הכנה */
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  text-align: center;
  line-height: 1.35;
  max-width: 100%;
  box-sizing: border-box;
}

.status-pill.pending {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.status-pill.in_progress {
  background: rgba(229, 169, 60, 0.16);
  color: var(--accent);
  border: 1px solid rgba(229, 169, 60, 0.45);
}

.status-pill.completed {
  background: rgba(56, 176, 0, 0.16);
  color: #4ade80;
  border: 1px solid rgba(56, 176, 0, 0.45);
}

/* כרטיסי ביצוע אירועים והזמנות בדף הקונדיטורים */
.staff-orders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px;
  width: 100%;
  max-width: 100%;
}

.staff-order-card {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: border-color 0.2s;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.staff-order-card.in_progress {
  border-color: var(--accent);
  background: rgba(229, 169, 60, 0.05);
}

.staff-order-card.completed {
  border-color: rgba(56, 176, 0, 0.45);
  background: rgba(56, 176, 0, 0.05);
}

.staff-order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.staff-order-type-tag {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  white-space: normal;
  line-height: 1.3;
}

.staff-order-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-top: 6px;
  line-height: 1.35;
  word-break: break-word;
}

.staff-order-meta {
  font-size: 0.86rem;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.staff-order-items-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-main);
  white-space: pre-line;
  word-break: break-word;
  max-width: 100%;
}

.staff-order-notes {
  font-size: 0.86rem;
  color: #ffd166;
  line-height: 1.4;
  word-break: break-word;
}

.staff-order-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
  width: 100%;
}

.btn-staff-status {
  flex: 1 1 120px;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  gap: 6px;
  transition: all 0.15s;
}

.btn-staff-status:hover {
  border-color: var(--accent);
}

.btn-staff-status.active-prep {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.btn-staff-status.active-done {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}

.log-badge.order {
  background: rgba(155, 93, 229, 0.18);
  color: #c77dff;
  border: 1px solid rgba(155, 93, 229, 0.4);
}

/* ===== מערכת התחברות Google, משתמשים אישיים והרשאות ===== */
.welcome-google-section {
  margin: 4px auto 18px auto;
  max-width: 420px;
}

.btn-google-signin {
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #ffffff;
  color: #1f1f1f;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.btn-google-signin:hover {
  background: #f5f6f8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.btn-google-signin.compact {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 0.92rem;
}

.google-g-icon {
  flex-shrink: 0;
}

.login-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--bg-input);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 14px;
}

.login-mode-tab {
  min-height: 40px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.login-mode-tab.active {
  background: var(--accent);
  color: #000;
}

.login-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 14px 0;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.login-divider span {
  padding: 0 10px;
}

.google-modal-logo {
  width: 56px;
  height: 56px;
  background: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.google-accounts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 190px;
  overflow-y: auto;
}

.google-account-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
}

.google-account-chip:hover {
  border-color: var(--accent);
  background: rgba(229, 169, 60, 0.08);
}

.google-account-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  font-weight: 800;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.active-user-pill {
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(56, 176, 0, 0.12);
  border: 1px solid rgba(56, 176, 0, 0.4);
  color: #e2fbe8;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}

.active-user-pill.visible {
  display: inline-flex;
}

.user-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.module-perm-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 0.9rem;
  min-height: 44px;
}

.module-perm-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.status-pill.approved {
  background: rgba(56, 176, 0, 0.16);
  color: #4ade80;
  border: 1px solid rgba(56, 176, 0, 0.45);
}

.status-pill.blocked {
  background: rgba(230, 57, 70, 0.16);
  color: #ff6b6b;
  border: 1px solid rgba(230, 57, 70, 0.45);
}

.dash-card.locked-module {
  opacity: 0.48;
  border-style: dashed;
}

/* ===== שדרוג כניסת אורח, מונה ממתינים לאישור, ודרגות/הרשאות (v2.8) ===== */
.welcome-container {
  max-width: 960px;
}

.role-cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.role-card.guest-card:hover {
  border-color: #4da8da;
  background: rgba(77, 168, 218, 0.08);
}

.role-enter-btn.guest-btn {
  color: #4da8da;
}

#screen-guest-lock {
  min-height: 85vh;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px 10px;
}

#screen-guest-lock.active {
  display: flex;
}

.guest-lock-box {
  border-color: rgba(77, 168, 218, 0.45);
}

.guest-badge-tag {
  display: inline-block;
  background: rgba(77, 168, 218, 0.16);
  color: #4da8da;
  border: 1px solid rgba(77, 168, 218, 0.45);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.pending-alert-pill {
  background: #e63946 !important;
  color: #fff !important;
  font-weight: 800 !important;
  box-shadow: 0 0 10px rgba(230, 57, 70, 0.6);
  animation: pulsePendingBadge 1.6s infinite;
}

@keyframes pulsePendingBadge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
}

.rank-badge.owner {
  background: linear-gradient(135deg, rgba(229, 169, 60, 0.28), rgba(247, 127, 0, 0.25));
  color: #ffd166;
  border: 1px solid #ffd166;
}

.rank-badge.admin {
  background: rgba(247, 127, 0, 0.16);
  color: #ff9e00;
  border: 1px solid rgba(247, 127, 0, 0.45);
}

.rank-badge.senior {
  background: rgba(168, 85, 247, 0.16);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.45);
}

.rank-badge.staff {
  background: rgba(77, 168, 218, 0.16);
  color: #90e0ef;
  border: 1px solid rgba(77, 168, 218, 0.45);
}

.exposure-tag {
  display: inline-block;
  font-size: 0.76rem;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  margin: 2px;
  color: #e2e8f0;
}

.perm-tag {
  display: inline-block;
  font-size: 0.76rem;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(42, 157, 143, 0.14);
  border: 1px solid rgba(42, 157, 143, 0.4);
  margin: 2px;
  color: #5eead4;
}

/* ===== מחשבון מתכון חלה - כפתורי בחירה מהירה (1-40 ק"ג) ===== */
.challah-preset-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.challah-preset-btn {
  min-height: 44px;
  min-width: 72px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.18s ease;
  touch-action: manipulation;
}

.challah-preset-btn:hover {
  border-color: var(--accent);
  background: rgba(229, 169, 60, 0.12);
  transform: translateY(-1px);
}

.challah-preset-btn.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(229, 169, 60, 0.35);
}

/* ===== שיפור ממשק נייד (Mobile-First): סרגל משתמש עליון דק וצר במיוחד (Slim Header Bar v3.2) ===== */
/* ===== פאנל משתמש עליון קבוע בפינה עם חיווי שעון מסתובב (Fixed Top Corner Profile with Rotating Timer Glow) ===== */
.global-connected-user-bar {
  position: fixed;
  top: 12px;
  right: 14px;
  left: auto;
  width: auto;
  height: auto;
  min-height: auto;
  max-height: none;
  z-index: 9600;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  user-select: none;
  -webkit-user-select: none;
  direction: rtl;
}

html[dir="ltr"] .global-connected-user-bar {
  left: 14px;
  right: auto;
  direction: ltr;
}

.fixed-profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 6px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  touch-action: manipulation;
}

.fixed-profile-trigger:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: #f59e0b;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65), 0 0 20px rgba(245, 158, 11, 0.25);
}

.fixed-profile-trigger:active {
  transform: scale(0.97);
}

/* עטיפת האווטאר המרכזית עם מקום לחוגת הטיימר המסתובבת */
.corner-avatar-wrapper {
  position: relative;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-avatar-circle.corner-avatar {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  background: rgba(30, 41, 59, 0.9) !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: all 0.25s ease;
  overflow: hidden;
}

.user-avatar-circle.corner-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  display: block;
}

.user-avatar-circle.corner-avatar .avatar-placeholder-char {
  font-size: 1.45rem !important;
}

/* חוגת טיימר מעוצבת שמסתובבת בעדינות (Rotating Timer Dial Glow) */
/* מופיעה ומסתובבת אך ורק כשיש פעילות / טיימר פעיל ברקע! */
.corner-timer-rotating-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  padding: 3px;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    rgba(56, 176, 0, 0.1) 30%,
    rgba(74, 222, 128, 0.6) 65%,
    #22c55e 92%,
    #4ade80 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: cornerTimerSpin 4s linear infinite;
  filter: drop-shadow(0 0 6px rgba(74, 222, 128, 0.7));
  transition: all 0.3s ease;
}

@keyframes cornerTimerSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* חיווי טיימר קריטי (<=25% מהזמן) - סיבוב מהיר יותר ואדום-רובי זוהר */
.corner-timer-rotating-ring.timer-critical {
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    rgba(239, 68, 68, 0.15) 30%,
    rgba(244, 63, 94, 0.7) 65%,
    #ef4444 92%,
    #f43f5e 100%
  );
  animation: cornerTimerSpin 2s linear infinite;
  filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.85));
}

/* תגית דיגיטלית של הטיימר ליד האווטאר */
.corner-timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(74, 222, 128, 0.45);
  color: #4ade80;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  font-family: 'Fira Code', monospace, sans-serif;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.corner-timer-badge.timer-badge-red {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.6);
  color: #fca5a5;
  animation: pulseTimerBadgeRed 1.2s infinite alternate;
}

@keyframes pulseTimerBadgeRed {
  0% { opacity: 0.85; transform: scale(0.98); }
  100% { opacity: 1; transform: scale(1.02); filter: brightness(1.2); }
}

.corner-user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: right;
}

html[dir="ltr"] .corner-user-meta {
  text-align: left;
}

.corner-user-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f8fafc;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.corner-user-role {
  font-size: 0.7rem;
  font-weight: 600;
  color: #fbbf24;
}

.corner-dropdown-caret {
  font-size: 0.75rem;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

body.has-connected-user-bar {
  padding-top: 0;
}

/* Mobile Screens Optimization (<=480px) */
@media (max-width: 480px) {
  .global-connected-user-bar {
    top: 8px;
    right: 10px;
  }
  html[dir="ltr"] .global-connected-user-bar {
    left: 10px;
    right: auto;
  }
  .fixed-profile-trigger {
    padding: 4px 8px 4px 4px;
    gap: 7px;
  }
  .corner-avatar-wrapper {
    width: 42px;
    height: 42px;
  }
  .user-avatar-circle.corner-avatar {
    width: 38px !important;
    height: 38px !important;
  }
  .corner-user-meta {
    max-width: 85px;
  }
  .corner-user-name {
    font-size: 0.82rem;
    max-width: 85px;
  }
  .corner-user-role {
    font-size: 0.65rem;
  }
}

/* ===== עטיפת שדה סיסמה + אייקון עיניים (Eye Icon) להצגה/הסתרה ===== */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-input-wrapper input {
  width: 100%;
  padding-right: 42px !important;
}

.password-eye-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0;
  line-height: 1;
  transition: all 0.15s ease;
  z-index: 3;
}

.password-eye-btn:hover {
  background: rgba(229, 169, 60, 0.22);
  border-color: var(--accent);
  color: #fff;
}

.password-eye-btn.is-showing {
  background: rgba(229, 169, 60, 0.28);
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(229, 169, 60, 0.35);
}

/* כפתור קישור "שכחתי סיסמה" */
.forgot-pass-link-btn {
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 2px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.forgot-pass-link-btn:hover {
  color: #ffd166;
}

/* תגית מנהל משני (כפוף למנהל-על) */
.rank-badge.sub_admin {
  background: rgba(255, 158, 0, 0.16);
  color: #ffb703;
  border: 1px solid rgba(255, 158, 0, 0.5);
}

/* תצוגת סיסמה בטבלה למנהל-על בלבד */
.super-admin-pass-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 8px;
  direction: ltr;
}

.table-pass-eye-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 2px 6px;
  line-height: 1.1;
}

.table-pass-eye-btn:hover {
  border-color: var(--accent);
  background: rgba(229, 169, 60, 0.22);
}

/* תגיות תפקידים חדשות */
.rank-badge.confectioner_female {
  background: rgba(236, 72, 153, 0.16);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.45);
}

.rank-badge.shift_worker {
  background: rgba(14, 165, 233, 0.16);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.45);
}

.rank-badge.general_management {
  background: rgba(255, 158, 0, 0.16);
  color: #ffb703;
  border: 1px solid rgba(255, 158, 0, 0.5);
}

/* כרטיסיות מדדים של ניהול המיילים */
.admin-email-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.admin-email-kpi-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.admin-email-kpi-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(229, 169, 60, 0.3);
}

.admin-email-kpi-icon {
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
}

.admin-email-kpi-info {
  display: flex;
  flex-direction: column;
}

.admin-email-kpi-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.admin-email-kpi-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* סרגל סינון וחיפוש מיילים */
.admin-users-filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

.admin-users-search-wrap {
  flex: 1 1 220px;
  position: relative;
}

.admin-users-search-input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: #fff;
  font-size: 0.88rem;
  box-sizing: border-box;
}

.admin-users-search-input:focus {
  border-color: var(--accent);
  outline: none;
}

.admin-users-filter-select {
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: #fff;
  font-size: 0.85rem;
}

/* הודעה ראשונה של משתמש ממתין */
.pending-first-msg-pill {
  display: inline-block;
  max-width: 220px;
  background: rgba(229, 169, 60, 0.12);
  border: 1px solid rgba(229, 169, 60, 0.35);
  color: #ffd166;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.pending-role-dropdown {
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--bg-input);
  border: 1px solid rgba(229, 169, 60, 0.4);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
}

/* ===== לוח שנה אינטראקטיבי לניהול וצפייה באירועים (v3.0) ===== */
.events-calendar-wrapper {
  background: linear-gradient(145deg, rgba(24, 27, 34, 0.96), rgba(16, 18, 24, 0.98));
  border: 1px solid rgba(229, 169, 60, 0.35);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.cal-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cal-month-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cal-nav-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cal-nav-btn {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cal-nav-btn:hover {
  border-color: var(--accent);
  background: rgba(229, 169, 60, 0.18);
}

.cal-weekdays-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 6px;
}

.cal-weekday-cell {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-muted);
  padding: 6px 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}

.cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.cal-day-cell {
  min-height: 92px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
}

.cal-day-cell:hover {
  border-color: rgba(229, 169, 60, 0.6);
  background: rgba(229, 169, 60, 0.07);
  transform: translateY(-1px);
}

.cal-day-cell.empty-cell {
  background: rgba(255, 255, 255, 0.01);
  border-color: transparent;
  cursor: default;
  min-height: 60px;
}

.cal-day-cell.empty-cell:hover {
  transform: none;
}

.cal-day-cell.is-today {
  border-color: #38b000;
  background: rgba(56, 176, 0, 0.09);
}

.cal-day-cell.is-tomorrow {
  border-color: #f77f00;
  background: rgba(247, 127, 0, 0.09);
}

.cal-day-cell.is-selected {
  border: 2px solid var(--accent);
  box-shadow: 0 0 14px rgba(229, 169, 60, 0.35);
  background: rgba(229, 169, 60, 0.13);
}

.cal-day-cell.has-events {
  border-color: rgba(229, 169, 60, 0.45);
}

.cal-day-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}

.cal-day-number {
  font-size: 0.9rem;
  font-weight: 800;
  color: #e2e8f0;
  line-height: 1;
}

.cal-day-tag {
  font-size: 0.65rem;
  padding: 1px 5px;
  border-radius: 6px;
  font-weight: 800;
}

.cal-day-tag.today-tag {
  background: rgba(56, 176, 0, 0.25);
  color: #80ed99;
}

.cal-day-tag.tomorrow-tag {
  background: rgba(247, 127, 0, 0.28);
  color: #ffd166;
}

.cal-quick-add-btn {
  background: rgba(229, 169, 60, 0.2);
  color: var(--accent);
  border: 1px solid rgba(229, 169, 60, 0.4);
  border-radius: 6px;
  width: 20px;
  height: 20px;
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.cal-quick-add-btn:hover {
  background: var(--accent);
  color: #111;
}

.cal-events-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cal-event-chip {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(229, 169, 60, 0.22);
  border-right: 3px solid var(--accent);
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-event-chip.confirmed-prep {
  background: rgba(56, 176, 0, 0.22);
  border-right-color: #38b000;
  color: #b7efc5;
}

.cal-selected-day-panel {
  margin-top: 16px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(229, 169, 60, 0.35);
  border-radius: 12px;
  padding: 14px 16px;
}

.what-needed-box {
  background: rgba(247, 127, 0, 0.12);
  border: 1px solid rgba(247, 127, 0, 0.4);
  border-right: 4px solid #f77f00;
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 8px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #ffe8cc;
  white-space: pre-line;
  word-break: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.day-before-push-banner {
  background: linear-gradient(135deg, rgba(247, 127, 0, 0.22), rgba(230, 57, 70, 0.18));
  border: 2px solid #f77f00;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 8px 24px rgba(247, 127, 0, 0.25);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .cal-day-cell {
    min-height: 70px;
    padding: 4px;
  }
  .cal-event-chip {
    font-size: 0.65rem;
    padding: 1px 4px;
  }
}

/* ===== ניהול הרשאות פרטני (Granular Permissions Interactive Chips) ===== */
.granular-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  width: 100%;
  max-width: 100%;
}

.granular-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.73rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  transition: all 0.15s ease;
  user-select: none;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  line-height: 1.3;
  box-sizing: border-box;
}

.granular-chip:hover:not(.readonly) {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.granular-chip.allowed {
  background: rgba(56, 176, 0, 0.16);
  border-color: rgba(56, 176, 0, 0.5);
  color: #9ef01a;
}

.granular-chip.blocked {
  background: rgba(230, 57, 70, 0.13);
  border-color: rgba(230, 57, 70, 0.38);
  color: #fca5a5;
  opacity: 0.82;
}

.granular-chip.admin-panel-chip.allowed {
  background: rgba(255, 183, 3, 0.2);
  border-color: #ffb703;
  color: #ffd166;
}

.granular-chip.readonly {
  cursor: default;
  opacity: 0.9;
}

.quick-row-preset-select {
  margin-top: 6px;
  width: 100%;
  max-width: 185px;
  padding: 4px 6px;
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.4);
  color: #e2e8f0;
  border: 1px solid rgba(229, 169, 60, 0.4);
  border-radius: 7px;
  cursor: pointer;
}

/* ===== יישור קפדני למובייל — מניעת חריגה מהקווים (Zero Overflow Mobile Rules) ===== */
.stage-badge-header,
.oven-badge,
.pro-oven-spec-pill,
.admin-badge-tag,
.guest-badge-tag {
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  text-align: center;
  justify-content: center;
  line-height: 1.35;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 10px;
  }

  header .app-title {
    text-align: right;
  }

  header .app-title h1 {
    font-size: 1.3rem;
    line-height: 1.25;
  }

  .header-datetime-badge {
    margin: 0;
    width: 100%;
    justify-content: center;
    font-size: 0.8rem;
    padding: 5px 10px;
    flex-wrap: wrap;
    box-sizing: border-box;
  }

  .card {
    padding: 14px 12px;
    margin-bottom: 14px;
  }

  .modal {
    padding: 30px 8px 14px 8px;
  }

  .modal-content {
    padding: 16px 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .close-btn {
    top: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }

  .staff-orders-grid,
  .dashboard-grid,
  .role-cards-grid,
  .sourdough-choice-grid,
  .mixer-kpi-grid,
  .admin-kpi-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ===== מודול נוכחות עובדים ואזור אישי (v3.4) ===== */
.attendance-clock-console {
  background: linear-gradient(145deg, rgba(16, 20, 29, 0.96), rgba(11, 14, 21, 0.98));
  border: 1px solid rgba(56, 176, 0, 0.35);
  border-radius: 16px;
  padding: 18px 16px;
  text-align: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.attendance-digital-timer {
  font-family: 'Courier New', Courier, monospace;
  font-size: 2.3rem;
  font-weight: 900;
  color: #4ade80;
  letter-spacing: 2px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 12px;
  padding: 10px 18px;
  display: inline-block;
  margin-bottom: 6px;
  text-shadow: 0 0 12px rgba(74, 222, 128, 0.45);
  direction: ltr;
  max-width: 100%;
  box-sizing: border-box;
}

.attendance-digital-timer.is-active-shift {
  color: #80ed99;
  border-color: #38b000;
  box-shadow: 0 0 18px rgba(56, 176, 0, 0.35);
}

.attendance-clock-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 12px;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.btn-attendance-clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 14px;
  border-radius: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  width: 100%;
  box-sizing: border-box;
}

.btn-attendance-clock .clock-btn-icon {
  font-size: 1.65rem;
  line-height: 1;
}

.btn-attendance-clock .clock-btn-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

.btn-attendance-clock .clock-btn-sub {
  font-size: 0.78rem;
  opacity: 0.88;
}

.btn-attendance-clock.clock-in {
  background: linear-gradient(135deg, rgba(56, 176, 0, 0.28), rgba(42, 157, 143, 0.24));
  border-color: #38b000;
  color: #e2fbe8;
  box-shadow: 0 6px 18px rgba(56, 176, 0, 0.25);
}

.btn-attendance-clock.clock-in:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(56, 176, 0, 0.42), rgba(42, 157, 143, 0.38));
  transform: translateY(-2px);
}

.btn-attendance-clock.clock-out {
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.28), rgba(247, 127, 0, 0.22));
  border-color: #e63946;
  color: #ffe3e3;
  box-shadow: 0 6px 18px rgba(230, 57, 70, 0.25);
}

.btn-attendance-clock.clock-out:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.42), rgba(247, 127, 0, 0.35));
  transform: translateY(-2px);
}

.btn-attendance-clock:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

@media (max-width: 600px) {
  .attendance-digital-timer {
    font-size: 1.75rem;
    padding: 8px 14px;
  }
  .attendance-clock-buttons-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   מודול פרופיל משתמש, חיווי טיימר זוהר (ירוק/אדום), טיימרים משותפים ודוחות קריסה
   ========================================================================== */

#userProfileBarTrigger {
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

#userProfileBarTrigger:hover {
  background: rgba(255, 255, 255, 0.08);
}

.slim-dropdown-caret {
  font-size: 0.55rem;
  color: #94a3b8;
  margin-right: 2px;
  transition: transform 0.2s ease;
}

/* עיגול פרופיל משתמש ותמונה */
.user-avatar-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
  user-select: none;
}

.user-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.user-avatar-circle .avatar-placeholder-char {
  font-size: 0.75rem;
  line-height: 1;
}

.user-avatar-circle.dd-avatar-large {
  width: 52px;
  height: 52px;
  border-width: 2.5px;
}

.user-avatar-circle.dd-avatar-large .avatar-placeholder-char {
  font-size: 1.8rem;
}

/* חיווי ויזואלי סביב עיגול הפרופיל: עיגול זוהר (טיימרים פעילים) */
/* ירוק ברוב זמן הריצה (>25%) */
.user-avatar-circle.timer-glow-green {
  border-color: #38b000 !important;
  box-shadow: 0 0 0 2px rgba(56, 176, 0, 0.9), 0 0 10px rgba(56, 176, 0, 0.65);
  animation: pulseTimerGreen 1.8s infinite ease-in-out;
}

@keyframes pulseTimerGreen {
  0% {
    box-shadow: 0 0 0 2px rgba(56, 176, 0, 0.9), 0 0 8px rgba(56, 176, 0, 0.6);
  }
  50% {
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 1), 0 0 16px rgba(56, 176, 0, 0.85);
  }
  100% {
    box-shadow: 0 0 0 2px rgba(56, 176, 0, 0.9), 0 0 8px rgba(56, 176, 0, 0.6);
  }
}

/* הופך לאדום באופן אוטומטי ברבע האחרון (25%) */
.user-avatar-circle.timer-glow-red {
  border-color: #ef476f !important;
  box-shadow: 0 0 0 2.5px rgba(239, 71, 111, 0.95), 0 0 14px rgba(239, 71, 111, 0.8);
  animation: pulseTimerRed 0.9s infinite ease-in-out;
}

@keyframes pulseTimerRed {
  0% {
    box-shadow: 0 0 0 2.5px rgba(239, 71, 111, 0.95), 0 0 10px rgba(239, 71, 111, 0.7);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(255, 77, 109, 1), 0 0 22px rgba(239, 71, 111, 1);
    transform: scale(1.08);
  }
  100% {
    box-shadow: 0 0 0 2.5px rgba(239, 71, 111, 0.95), 0 0 10px rgba(239, 71, 111, 0.7);
    transform: scale(1);
  }
}

/* תגית טיימר עליונה דקה */
.top-bar-timer-badge {
  background: rgba(56, 176, 0, 0.18);
  color: #4ade80;
  border: 1px solid rgba(56, 176, 0, 0.4);
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: monospace;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  line-height: 1.2;
}

.top-bar-timer-badge.timer-badge-red {
  background: rgba(239, 71, 111, 0.25);
  color: #ef476f;
  border-color: rgba(239, 71, 111, 0.6);
  animation: pulseTimerRedBadge 1s infinite alternate;
}

@keyframes pulseTimerRedBadge {
  0% { opacity: 0.85; }
  100% { opacity: 1; filter: brightness(1.25); }
}

/* תפריט נפתח - Quick Profile Dropdown Menu */
.user-profile-dropdown {
  position: fixed;
  top: 68px;
  right: 14px;
  left: auto;
  z-index: 99999;
  width: min(350px, calc(100vw - 24px));
  animation: dropDownSlideIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

html[dir="ltr"] .user-profile-dropdown {
  left: 14px;
  right: auto;
}

@media (max-width: 480px) {
  .user-profile-dropdown {
    top: 58px;
    right: 10px;
    left: auto;
    width: calc(100vw - 20px);
  }
  html[dir="ltr"] .user-profile-dropdown {
    left: 10px;
    right: auto;
  }
}

@keyframes dropDownSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.user-profile-dropdown-card {
  background: rgba(18, 22, 34, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 16px;
  color: #f8fafc;
}

.user-profile-dd-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.user-profile-dd-details {
  flex: 1;
  min-width: 0;
}

.user-profile-dd-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-profile-dd-email {
  font-size: 0.78rem;
  color: #94a3b8;
  direction: ltr;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-profile-dd-role {
  font-size: 0.78rem;
  color: #e5a93c;
  margin-top: 2px;
}

.user-profile-dd-status-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
}

.user-profile-dd-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-profile-dd-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #e2e8f0;
  text-align: right;
  cursor: pointer;
  transition: all 0.15s ease;
}

.user-profile-dd-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(-2px);
}

.user-profile-dd-item .dd-item-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

.user-profile-dd-item .dd-item-text {
  flex: 1;
  min-width: 0;
}

.user-profile-dd-item .dd-item-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #f8fafc;
}

.user-profile-dd-item .dd-item-sub {
  font-size: 0.74rem;
  color: #94a3b8;
  margin-top: 1px;
}

.user-profile-dd-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 0;
}

.user-profile-dd-item.user-profile-dd-logout:hover {
  background: rgba(239, 71, 111, 0.15);
  border-color: rgba(239, 71, 111, 0.3);
}

.user-profile-dd-item.user-profile-dd-logout:hover .dd-item-title {
  color: #fca5a5;
}

/* טיימרים משותפים - כרטיסי תצוגה */
.shared-timer-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.shared-timer-card.timer-critical {
  border-color: rgba(239, 71, 111, 0.55);
  background: rgba(239, 71, 111, 0.05);
}

.shared-timer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.shared-timer-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

.shared-timer-station {
  font-size: 0.78rem;
  color: #94a3b8;
}

.shared-timer-countdown {
  font-family: monospace;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.shared-timer-countdown.time-normal {
  color: #4ade80;
}

.shared-timer-countdown.time-alert {
  color: #ef476f;
  animation: pulseTimerCountdown 1s infinite alternate;
}

@keyframes pulseTimerCountdown {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

.shared-timer-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin: 8px 0;
}

.shared-timer-progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease, background 0.5s ease;
}

.shared-timer-progress-fill.fill-green {
  background: linear-gradient(90deg, #2a9d8f, #38b000);
}

.shared-timer-progress-fill.fill-red {
  background: linear-gradient(90deg, #f77f00, #ef476f);
}

.shared-timer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.shared-timer-assignee-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.shared-timer-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}


/* ==========================================================
   SMART 2-DOOR LANDING PORTAL & MODERN BAKERY UI POLISH
   ========================================================== */

/* שדרוג רקע כללי ואווירה מקצועית */
body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(245, 158, 11, 0.035) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(16, 185, 129, 0.025) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

/* מסגרת מסך נחיתה חכם */
.smart-landing-box {
  max-width: 920px !important;
  width: 100% !important;
  background: rgba(21, 25, 34, 0.92) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 24px !important;
  padding: 32px 32px 36px !important;
  box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
  margin: 0 auto;
}

.welcome-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.welcome-hero-header {
  text-align: center;
  margin-bottom: 32px;
}

.welcome-brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 22px;
  font-size: 2.3rem;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.2);
  animation: gentlePulse 3s infinite alternate;
}

@keyframes gentlePulse {
  0% { transform: scale(1); box-shadow: 0 8px 24px rgba(245, 158, 11, 0.2); }
  100% { transform: scale(1.04); box-shadow: 0 12px 30px rgba(245, 158, 11, 0.35); }
}

.welcome-hero-header .welcome-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.welcome-hero-header .welcome-subtitle {
  color: var(--text-muted);
  font-size: 1.02rem;
  font-weight: 500;
}

/* רשת 2 אפשרויות הכניסה */
.smart-landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  align-items: stretch;
}

.smart-landing-card {
  background: linear-gradient(180deg, #181d27 0%, #13161f 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.smart-landing-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}

.primary-login-card {
  border-top: 3px solid var(--accent);
}

.guest-welcome-card {
  border-top: 3px solid var(--success);
  background: linear-gradient(180deg, #152220 0%, #12181a 100%);
}

.guest-welcome-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 14px 34px rgba(16, 185, 129, 0.15);
}

.landing-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.landing-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.guest-icon-glow {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.35);
}

.landing-card-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}

.landing-card-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* שדות טופס כניסה ישיר */
.landing-form .input-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.landing-form input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.landing-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  outline: none;
}

.btn-primary-login {
  background: var(--accent-gradient) !important;
  color: #0b0d12 !important;
  font-weight: 800 !important;
  border: none !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35) !important;
  transition: transform 0.2s, filter 0.2s, box-shadow 0.2s !important;
}

.btn-primary-login:hover {
  transform: translateY(-1px) !important;
  filter: brightness(1.06) !important;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.5) !important;
}

/* רשימת הטבות אורח */
.guest-perks-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 10px 0 24px 0;
}

.guest-perk-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.guest-perk-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.guest-perk-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.guest-perk-text strong {
  font-size: 0.92rem;
  color: #f1f5f9;
}

.guest-perk-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.btn-guest-launch {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 1.05rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.18) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.45) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2) !important;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s !important;
}

.btn-guest-launch:hover {
  transform: translateY(-1px) !important;
  background: rgba(16, 185, 129, 0.28) !important;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35) !important;
}

/* שדרוג סרגל המשתמש העליון (Slim Global Bar) */
.global-connected-user-bar {
  background: rgba(15, 18, 24, 0.88) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
  padding: 6px 14px !important;
}

.slim-bar-user-info {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 999px !important;
  padding: 4px 12px 4px 6px !important;
  transition: all 0.2s ease !important;
}

.slim-bar-user-info:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
}

/* תפריט נפתח יוקרתי */
.user-profile-dropdown {
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.7));
}

.user-profile-dropdown-card {
  background: #151922 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
  overflow: hidden;
}

.user-profile-dd-item {
  border-radius: 12px !important;
  margin: 2px 6px !important;
  transition: background 0.18s ease, transform 0.18s ease !important;
}

.user-profile-dd-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  transform: translateX(-2px) !important;
}

/* שדרוג כללי של כרטיסי דשבורד */
.dash-card {
  background: linear-gradient(180deg, #181d27 0%, #131620 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.22s, box-shadow 0.22s !important;
}

.dash-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5) !important;
}

/* כפתורי פעולה יוקרתיים */
.btn-action {
  border-radius: 11px !important;
  font-weight: 600 !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-action:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35) !important;
}

/* התאמות מובייל רספונסיביות */
@media (max-width: 768px) {
  .smart-landing-box {
    padding: 22px 18px 26px !important;
    border-radius: 20px !important;
  }
  
  .welcome-hero-header .welcome-title {
    font-size: 1.65rem !important;
  }
  
  .smart-landing-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* ===== סגנונות מערכת אפיות משותפות ודוח X יומי (v4.2) ===== */
.shared-hub-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.shared-hub-tab-btn {
  flex: 1;
  padding: 10px 14px !important;
  font-size: 0.92rem !important;
  border-radius: 10px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.shared-hub-tab-btn.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(217, 119, 6, 0.45)) !important;
  color: #fff !important;
  border: 1px solid var(--accent) !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25) !important;
}

.shared-baking-card {
  border-left: 4px solid var(--accent);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(15, 20, 28, 0.95)) !important;
  transition: all 0.25s ease;
}

[dir="rtl"] .shared-baking-card {
  border-left: 1px solid var(--border);
  border-right: 4px solid var(--accent);
}

.shared-baking-card.timer-critical {
  border-color: #ef476f !important;
  box-shadow: 0 0 16px rgba(239, 71, 111, 0.35) !important;
  animation: criticalPulse 1.8s infinite;
}

.xreport-kpi-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}

.xreport-kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.4);
}

.xreport-kpi-card.highlight-guest {
  background: rgba(77, 168, 218, 0.08);
  border-color: rgba(77, 168, 218, 0.35);
}

@keyframes criticalPulse {
  0% { box-shadow: 0 0 8px rgba(239, 71, 111, 0.2); }
  50% { box-shadow: 0 0 20px rgba(239, 71, 111, 0.45); }
  100% { box-shadow: 0 0 8px rgba(239, 71, 111, 0.2); }
}

@media print {
  body * {
    visibility: hidden;
  }
  #dailyXReportModal, #dailyXReportModal * {
    visibility: visible;
  }
  #dailyXReportModal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    background: #fff !important;
    color: #000 !important;
  }
  #dailyXReportModal .modal-content {
    border: none !important;
    box-shadow: none !important;
    background: #fff !important;
    color: #000 !important;
    max-width: 100% !important;
  }
  #dailyXReportModal .close-btn,
  #dailyXReportModal .xreport-toolbar {
    display: none !important;
  }
  #dailyXReportModal table,
  #dailyXReportModal th,
  #dailyXReportModal td {
    color: #000 !important;
    border-color: #ccc !important;
  }
}

/* ===== שדרוג עיצוב יוקרתי, חם וחי (Artisan Patisserie Luxury UI) ===== */

/* 1. רקע אמביינט חם ודינמי */
body {
  background-color: #0b0e14 !important;
  background-image: 
    radial-gradient(circle at 12% 18%, rgba(245, 158, 11, 0.09) 0%, transparent 42%),
    radial-gradient(circle at 88% 78%, rgba(217, 119, 6, 0.08) 0%, transparent 46%),
    radial-gradient(circle at 50% -5%, rgba(255, 183, 3, 0.06) 0%, transparent 52%),
    radial-gradient(circle at 50% 105%, rgba(15, 23, 42, 0.85) 0%, transparent 60%) !important;
  background-attachment: fixed !important;
  min-height: 100vh !important;
}

/* 2. מעבר חלק וזורם בעת החלפת מסכים */
.screen-view.active {
  display: block !important;
  animation: screenReveal 0.32s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

@keyframes screenReveal {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 3. כרטיסי דשבורד מלוטשים וחיים */
.dash-card {
  background: linear-gradient(155deg, rgba(28, 34, 48, 0.88) 0%, rgba(17, 21, 30, 0.96) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 20px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 24px -2px rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  padding: 24px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  cursor: pointer !important;
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.dash-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.75), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dash-card:hover {
  transform: translateY(-6px) scale(1.018) !important;
  border-color: rgba(245, 158, 11, 0.5) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 20px 42px -6px rgba(0, 0, 0, 0.68), 0 0 28px rgba(245, 158, 11, 0.2) !important;
}

.dash-card:hover::before {
  opacity: 1;
}

.dash-card:active {
  transform: translateY(-2px) scale(0.99) !important;
}

.dash-card .icon {
  font-size: 2.7rem !important;
  margin-bottom: 12px !important;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.45)) !important;
}

.dash-card:hover .icon {
  transform: scale(1.18) rotate(-4deg) !important;
}

.dash-card h3 {
  font-size: 1.18rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin-bottom: 4px !important;
}

/* 4. שדרוג כרטיסים כלליים ומודאלים */
.card {
  background: linear-gradient(145deg, rgba(26, 32, 44, 0.88), rgba(15, 19, 27, 0.96)) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 12px 34px -4px rgba(0, 0, 0, 0.55) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.card:hover {
  border-color: rgba(245, 158, 11, 0.24) !important;
}

.modal-content {
  background: linear-gradient(165deg, rgba(26, 32, 46, 0.98), rgba(13, 16, 24, 0.99)) !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 25px 60px -10px rgba(0, 0, 0, 0.85), 0 0 35px rgba(245, 158, 11, 0.12) !important;
  backdrop-filter: blur(20px) !important;
  border-radius: 22px !important;
}

/* 5. כפתורי פעולה יוקרתיים וטאקטיליים */
.btn-action {
  position: relative;
  overflow: hidden;
  border-radius: 12px !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-action:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45) !important;
}

.btn-action:active {
  transform: scale(0.96) !important;
}

.btn-action::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255,255,255,0.09), transparent);
  transform: rotate(30deg);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.btn-action:hover::after {
  transform: rotate(30deg) translate(25%, 25%);
}

/* 6. צ'קליסטים אינטראקטיביים עם פידבק ויזואלי מספק */
.checklist-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 13px 15px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.025) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  margin-bottom: 9px !important;
  transition: all 0.22s ease !important;
}

.checklist-item:hover {
  background: rgba(255, 255, 255, 0.055) !important;
  border-color: rgba(245, 158, 11, 0.25) !important;
}

.checklist-item input[type="checkbox"] {
  width: 22px !important;
  height: 22px !important;
  accent-color: #10b981 !important;
  cursor: pointer !important;
  transition: transform 0.16s ease !important;
}

.checklist-item input[type="checkbox"]:active {
  transform: scale(0.85) !important;
}

.checklist-item:has(input[type="checkbox"]:checked) {
  background: rgba(16, 185, 129, 0.08) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
}

.checklist-item:has(input[type="checkbox"]:checked) label {
  color: #a7f3d0 !important;
  text-decoration: line-through rgba(16, 185, 129, 0.5) !important;
}

/* 7. שעון חי עם נקודת דופק חיה */
.live-clock-container {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(15, 23, 42, 0.88)) !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
  backdrop-filter: blur(10px) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.live-clock-container::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseGreenGlow 2s infinite;
  margin-inline-end: 4px;
}

@keyframes pulseGreenGlow {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* 8. מסגרת חתימה יוקרתית במסך סגירת יום */
.closing-sig-wrapper {
  position: relative;
  background: radial-gradient(circle at center, #141a24 0%, #090c12 100%) !important;
  border: 2px solid rgba(245, 158, 11, 0.45) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.85), 0 0 20px rgba(245, 158, 11, 0.15) !important;
  overflow: hidden;
  touch-action: none;
}

/* 9. כפתור Google Sheets זוהר ואלגנטי */
.btn-sheets-launch {
  background: linear-gradient(135deg, #0f9d58, #34a853) !important;
  color: #fff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 18px rgba(15, 157, 88, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  transition: all 0.22s ease !important;
}

.btn-sheets-launch:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 8px 28px rgba(15, 157, 88, 0.58) !important;
}

/* 10. שדרוג שלבי וויזארד הבוקר */
.wizard-step-tab {
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  border-radius: 12px !important;
}

.wizard-step-tab:hover {
  transform: translateY(-2px) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.wizard-step-tab.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(217, 119, 6, 0.45)) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.25) !important;
}

/* ===== 11. שדרוג ויזואלי ארטיזנלי כולל — חיים, עומק ואינטראקטיביות (v4.4) ===== */

/* סרגלי גלילה מעוצבים יוקרתיים (Artisan Custom Scrollbars) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(11, 14, 20, 0.75);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.45), rgba(217, 119, 6, 0.3));
  border-radius: 6px;
  border: 2px solid rgba(11, 14, 20, 0.75);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.8), rgba(217, 119, 6, 0.6));
}

/* כותרות ראשיות עם הבלטה יוקרתית וגווני זהב אפייה */
.app-title h1 {
  background: linear-gradient(135deg, #ffffff 0%, #fef3c7 45%, #f59e0b 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  display: inline-block !important;
  letter-spacing: -0.02em !important;
  filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.25));
}

/* שדרוג שעון זמן אמת עליון - קונסולה טכנית יוקרתית */
.live-clock-container {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: linear-gradient(135deg, rgba(20, 25, 36, 0.85), rgba(12, 16, 24, 0.95)) !important;
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
  border-radius: 30px !important;
  padding: 6px 14px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

.live-clock-container .clock-time {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace !important;
  font-weight: 800 !important;
  color: #fbbf24 !important;
  letter-spacing: 0.05em !important;
}

/* כרטיס אפיות וטיימרים משותפים בדשבורד */
.card-shared-timers-dash {
  border-color: rgba(245, 158, 11, 0.35) !important;
  background: linear-gradient(155deg, rgba(38, 30, 18, 0.88) 0%, rgba(18, 22, 32, 0.96) 100%) !important;
  position: relative !important;
}

.card-shared-timers-dash::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ef476f, #f59e0b, #10b981) !important;
  opacity: 0.8 !important;
}

.card-shared-timers-dash:hover {
  border-color: rgba(245, 158, 11, 0.7) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 20px 42px -6px rgba(0, 0, 0, 0.75), 0 0 32px rgba(245, 158, 11, 0.3) !important;
}

/* אפקטי הבהוב ופולס חיים לטיימרים פעילים */
@keyframes pulseGlowRing {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@keyframes pulseCriticalRing {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 71, 111, 0.7);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(239, 71, 111, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 71, 111, 0);
  }
}

.pulse-active {
  animation: pulseGlowRing 2s infinite cubic-bezier(0.4, 0, 0.6, 1) !important;
}

.pulse-critical {
  animation: pulseCriticalRing 1.2s infinite cubic-bezier(0.4, 0, 0.6, 1) !important;
}

/* שדרוג שורות טבלה עם תאורת ריחוף עדינה */
.results-table tbody tr {
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.results-table tbody tr:hover {
  background-color: rgba(245, 158, 11, 0.05) !important;
}

/* מיקוד שדות קלט עם הילת זהב חמימה */
input:focus, select:focus, textarea:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25), inset 0 1px 3px rgba(0, 0, 0, 0.4) !important;
  outline: none !important;
}



/* ===== 12. שדרוגי טיפוגרפיה, סרגל ניווט עליון וצ'קליסט סגירה (v4.6) ===== */

/* גופן ראשי Rubik מעוגל ונעים */
* {
  font-family: 'Rubik', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

body {
  font-family: 'Rubik', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* סרגל ניווט עליון יוקרתי ומאוחד לכל המסכים */
header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 16px !important;
  margin-bottom: 24px !important;
  padding: 16px 22px !important;
  background: linear-gradient(135deg, rgba(22, 28, 42, 0.76), rgba(13, 17, 26, 0.92)) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  flex-wrap: wrap !important;
}

header .app-title {
  flex: 1 1 auto !important;
  min-width: 250px !important;
}

header .app-title h1 {
  margin: 0 !important;
  font-size: 1.55rem !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, #ffffff 0%, #fef3c7 45%, #f59e0b 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  display: inline-block !important;
  letter-spacing: -0.02em !important;
  filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.25)) !important;
}

header .app-title p {
  margin: 4px 0 0 0 !important;
  font-size: 0.88rem !important;
  color: #94a3b8 !important;
}

.header-actions-cluster {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

@media (max-width: 768px) {
  header {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 14px 16px !important;
    gap: 12px !important;
  }
}

/* שדרוג יישור ואינטראקטיביות שורות צ'קליסט */
.checklist-item {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  padding: 14px 18px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.028) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  margin-bottom: 10px !important;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
  user-select: none !important;
  width: 100% !important;
}

.checklist-item:hover {
  background: rgba(245, 158, 11, 0.065) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
  transform: translateX(-4px) !important;
}

html[dir="ltr"] .checklist-item:hover {
  transform: translateX(4px) !important;
}

.checklist-item input[type="checkbox"] {
  width: 22px !important;
  height: 22px !important;
  accent-color: #10b981 !important;
  cursor: pointer !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

.checklist-item label {
  flex: 1 1 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 1.02rem !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  color: #f1f5f9 !important;
  text-align: right !important;
  cursor: pointer !important;
}

html[dir="ltr"] .checklist-item label {
  text-align: left !important;
}

.checklist-item:has(input[type="checkbox"]:checked) {
  background: rgba(16, 185, 129, 0.09) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
}

.checklist-item:has(input[type="checkbox"]:checked) label {
  color: #a7f3d0 !important;
  text-decoration: line-through rgba(16, 185, 129, 0.6) !important;
}

/* תג סטטוס שורת צ'קליסט */
.chk-status-pill {
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--text-muted) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  white-space: nowrap !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0 !important;
}

.chk-status-pill.done {
  background: rgba(16, 185, 129, 0.18) !important;
  color: #34d399 !important;
  border-color: rgba(16, 185, 129, 0.5) !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25) !important;
}


/* ===== 13. קונסולת משקל וגלגלת אינטראקטיבית (v4.7) ===== */
.weight-control-console {
  background: linear-gradient(145deg, rgba(28, 34, 48, 0.92) 0%, rgba(15, 19, 28, 0.98) 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
  border-radius: 20px !important;
  padding: 20px 22px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 14px 36px -4px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 158, 11, 0.08) !important;
  margin-bottom: 22px !important;
  transition: all 0.25s ease !important;
}

.weight-control-console:hover {
  border-color: rgba(245, 158, 11, 0.55) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 18px 42px -4px rgba(0, 0, 0, 0.65), 0 0 32px rgba(245, 158, 11, 0.15) !important;
}

.weight-console-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-bottom: 16px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.weight-console-badge {
  font-size: 0.78rem !important;
  color: #94a3b8 !important;
  background: rgba(255, 255, 255, 0.04) !important;
  padding: 4px 10px !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* סרגל קפסולות מהיר ומעוצב */
.weight-chips-track {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-bottom: 18px !important;
}

.weight-chip-pill {
  min-height: 38px !important;
  padding: 6px 14px !important;
  border-radius: 24px !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  background: rgba(255, 255, 255, 0.035) !important;
  color: #e2e8f0 !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  user-select: none !important;
  touch-action: manipulation !important;
}

.weight-chip-pill:hover {
  transform: translateY(-2px) !important;
  background: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
  color: #fff !important;
}

.weight-chip-pill.active {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #000 !important;
  border-color: #fbbf24 !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.45) !important;
  transform: scale(1.05) !important;
}

/* שורת הגלגלת וה-Steppers המרכזית */
.weight-dial-row {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  margin-bottom: 18px !important;
  flex-wrap: wrap !important;
}

.dial-steppers-group {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.dial-step-btn {
  width: 52px !important;
  height: 52px !important;
  border-radius: 16px !important;
  background: linear-gradient(145deg, rgba(35, 42, 58, 0.8), rgba(20, 25, 36, 0.95)) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #f59e0b !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
  touch-action: manipulation !important;
  user-select: none !important;
}

.dial-step-btn.sub {
  width: 44px !important;
  height: 44px !important;
  border-radius: 13px !important;
  opacity: 0.9 !important;
}

.dial-step-btn:hover {
  transform: translateY(-2px) scale(1.05) !important;
  border-color: rgba(245, 158, 11, 0.6) !important;
  background: linear-gradient(145deg, rgba(45, 54, 75, 0.9), rgba(25, 32, 48, 1)) !important;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.25) !important;
}

.dial-step-btn:active {
  transform: scale(0.92) !important;
}

.dial-step-btn .step-sym {
  font-size: 1.4rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.dial-step-btn .step-lbl {
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  opacity: 0.8 !important;
  margin-top: 1px !important;
}

/* התצוגה הדיגיטלית המרכזית */
.dial-digital-display {
  background: linear-gradient(135deg, rgba(12, 16, 24, 0.95), rgba(8, 10, 16, 0.98)) !important;
  border: 2px solid rgba(245, 158, 11, 0.4) !important;
  border-radius: 18px !important;
  padding: 10px 24px !important;
  text-align: center !important;
  min-width: 170px !important;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.8), 0 4px 20px rgba(245, 158, 11, 0.15) !important;
}

.dial-display-pre {
  display: block !important;
  font-size: 0.78rem !important;
  color: var(--text-muted) !important;
  margin-bottom: 2px !important;
  font-weight: 600 !important;
}

.dial-display-number-wrap {
  display: flex !important;
  align-items: baseline !important;
  justify-content: center !important;
  gap: 6px !important;
}

.dial-digital-input {
  background: transparent !important;
  border: none !important;
  color: #fbbf24 !important;
  font-size: 2.3rem !important;
  font-weight: 800 !important;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", monospace !important;
  width: 110px !important;
  text-align: center !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}

.dial-digital-unit {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: var(--accent) !important;
}

/* סליידר גלגלת מוזהב */
.weight-slider-container {
  width: 100% !important;
  max-width: 650px !important;
  margin: 0 auto !important;
  position: relative !important;
  direction: ltr !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

.weight-jog-slider {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 100% !important;
  height: 48px !important;
  background: transparent !important;
  outline: none !important;
  cursor: pointer !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  touch-action: none !important;
  direction: ltr !important;
}

/* WebKit Track */
.weight-jog-slider::-webkit-slider-runnable-track {
  width: 100% !important;
  height: 10px !important;
  border-radius: 6px !important;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.35) 0%, rgba(217, 119, 6, 0.85) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5) !important;
  cursor: pointer !important;
}

/* WebKit Thumb */
.weight-jog-slider::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle at 35% 35%, #fef08a 0%, #f59e0b 60%, #b45309 100%) !important;
  cursor: grab !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.9), 0 3px 8px rgba(0,0,0,0.6) !important;
  border: 2.5px solid #ffffff !important;
  margin-top: -11px !important;
  transition: transform 0.12s ease, box-shadow 0.12s ease !important;
  touch-action: none !important;
}

.weight-jog-slider::-webkit-slider-thumb:hover {
  transform: scale(1.18) !important;
  box-shadow: 0 0 22px rgba(245, 158, 11, 1), 0 4px 10px rgba(0,0,0,0.7) !important;
}

.weight-jog-slider::-webkit-slider-thumb:active,
.weight-jog-slider:active::-webkit-slider-thumb {
  cursor: grabbing !important;
  transform: scale(1.12) !important;
  box-shadow: 0 0 26px rgba(245, 158, 11, 1), 0 2px 6px rgba(0,0,0,0.8) !important;
}

/* Firefox Track */
.weight-jog-slider::-moz-range-track {
  width: 100% !important;
  height: 10px !important;
  border-radius: 6px !important;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.35) 0%, rgba(217, 119, 6, 0.85) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5) !important;
  cursor: pointer !important;
}

/* Firefox Thumb */
.weight-jog-slider::-moz-range-thumb {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle at 35% 35%, #fef08a 0%, #f59e0b 60%, #b45309 100%) !important;
  cursor: grab !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.9), 0 3px 8px rgba(0,0,0,0.6) !important;
  border: 2.5px solid #ffffff !important;
  transition: transform 0.12s ease, box-shadow 0.12s ease !important;
  touch-action: none !important;
}

.weight-jog-slider::-moz-range-thumb:hover {
  transform: scale(1.18) !important;
  box-shadow: 0 0 22px rgba(245, 158, 11, 1), 0 4px 10px rgba(0,0,0,0.7) !important;
}

.weight-jog-slider::-moz-range-thumb:active,
.weight-jog-slider:active::-moz-range-thumb {
  cursor: grabbing !important;
  transform: scale(1.12) !important;
}

.slider-ticks-row {
  display: flex !important;
  justify-content: space-between !important;
  font-size: 0.75rem !important;
  color: #94a3b8 !important;
  font-family: monospace !important;
  padding: 0 6px !important;
  pointer-events: none !important;
  direction: ltr !important;
  margin-top: -6px !important;
  user-select: none !important;
}

/* Stepper קטן לשדות משנה (חלות, משקל חלה, קרח) */
.input-group-stepper {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
}

.input-group-stepper label {
  font-size: 0.86rem !important;
  margin-bottom: 8px !important;
}

.stepper-input-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.stepper-input-wrap input {
  flex: 1 !important;
  text-align: center !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  padding: 8px 10px !important;
  direction: ltr !important;
}

.btn-micro-step {
  width: 40px !important;
  height: 40px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--accent) !important;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.15s ease !important;
  user-select: none !important;
  touch-action: manipulation !important;
}

.btn-micro-step:hover {
  background: rgba(245, 158, 11, 0.18) !important;
  border-color: rgba(245, 158, 11, 0.5) !important;
  transform: scale(1.06) !important;
}

.btn-micro-step:active {
  transform: scale(0.92) !important;
}

@keyframes bounceEmoji {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-8px) scale(1.08); }
}

/* ===== 9. צ'אט משמרת קבוצתי (Shift Group Chat) ויזואליות עשירה ויוקרתית ===== */
.shift-chat-floating-pill {
  display: none !important;
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 9990;
  width: 58px;
  height: 58px;
  min-width: 58px;
  min-height: 58px;
  padding: 0;
  border-radius: 50% !important;
  background: linear-gradient(145deg, #2a1a08 0%, #1a0f03 100%);
  border: 2px solid rgba(245, 158, 11, 0.7);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65), 0 0 18px rgba(245, 158, 11, 0.35);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-user-select: none;
}

html[dir="ltr"] .shift-chat-floating-pill {
  left: auto;
  right: 22px;
}

.shift-chat-floating-pill:hover {
  transform: translateY(-3px) scale(1.06);
  border-color: #f59e0b;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.75), 0 0 26px rgba(245, 158, 11, 0.6);
}

.shift-chat-floating-pill:active {
  transform: scale(0.94);
}

.chat-fab-tiramisu-inner {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.chat-tiramisu-pill-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Floating Unread Badge in corner */
.chat-floating-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid #0b0d12;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
}

/* Up to 6 messages: pleasant green badge */
.chat-floating-badge.badge-normal {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.5) !important;
}

/* Above 6 messages: bold cute red badge with glow */
.chat-floating-badge.badge-urgent {
  background: linear-gradient(135deg, #ef476f 0%, #e11d48 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(239, 71, 111, 0.8), 0 2px 8px rgba(0,0,0,0.5) !important;
  animation: urgentBadgePulse 1.6s infinite alternate ease-in-out !important;
}

@keyframes urgentBadgePulse {
  0% { transform: scale(1); box-shadow: 0 0 10px rgba(239, 71, 111, 0.6); }
  100% { transform: scale(1.15); box-shadow: 0 0 20px rgba(239, 71, 111, 1), 0 0 6px #fff; }
}

.shift-chat-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9998;
  animation: fadeIn 0.2s ease-out;
}

.shift-chat-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 450px;
  max-width: 95vw;
  background: rgba(13, 18, 30, 0.86);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-right: 1.5px solid rgba(245, 158, 11, 0.35);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  box-shadow: 20px 0 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(245, 158, 11, 0.15);
  transform: translateX(-105%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

html[dir="ltr"] .shift-chat-drawer {
  left: auto;
  right: 0;
  border-right: none;
  border-left: 1.5px solid rgba(245, 158, 11, 0.35);
  transform: translateX(105%);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(245, 158, 11, 0.15);
}

.shift-chat-drawer.open {
  transform: translateX(0);
}

.chat-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.chat-header-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-header-avatar-stack {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.35));
  border: 1px solid rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.chat-drawer-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  color: #fbbf24;
}

.chat-drawer-sub {
  margin: 2px 0 0 0;
  font-size: 0.78rem;
  color: #94a3b8;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-icon-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #e2e8f0;
  font-size: 1.05rem;
  transition: all 0.18s ease;
}

.chat-icon-btn:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-1px);
}

.chat-icon-btn.chat-close-btn:hover {
  background: rgba(239, 71, 111, 0.2);
  border-color: rgba(239, 71, 111, 0.5);
  color: #ef476f;
}

.chat-admin-panel {
  background: rgba(245, 158, 11, 0.07);
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
  padding: 12px 16px;
}

.chat-admin-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: #fbbf24;
}

.chat-admin-tag {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
}

.chat-admin-controls-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.chat-admin-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #e2e8f0;
  cursor: pointer;
}

.chat-status-banner {
  padding: 8px 14px;
  font-size: 0.82rem;
  text-align: center;
  font-weight: 700;
  border-bottom: 1px solid;
}

.chat-status-banner.warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}

.chat-status-banner.error {
  background: rgba(239, 71, 111, 0.15);
  color: #ef476f;
  border-color: rgba(239, 71, 111, 0.3);
}

.chat-messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
  background: radial-gradient(circle at 50% 15%, rgba(245, 158, 11, 0.05) 0%, transparent 70%),
              rgba(10, 15, 28, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.chat-message-row {
  display: flex;
  gap: 10px;
  max-width: 85%;
  width: fit-content;
  position: relative;
}

.chat-message-row.own {
  align-self: flex-start;
  flex-direction: row;
}

html[dir="rtl"] .chat-message-row.own {
  align-self: flex-start;
}

.chat-message-row.other {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-msg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  background: rgba(30, 41, 59, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  overflow: hidden;
}

.chat-msg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-msg-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  width: fit-content;
}

.chat-message-row.own .chat-msg-content {
  align-items: flex-start;
}

.chat-message-row.other .chat-msg-content {
  align-items: flex-start;
}

.chat-msg-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
  font-size: 0.74rem;
  width: fit-content;
  max-width: 100%;
}

.chat-msg-sender {
  font-weight: 700;
  color: #e2e8f0;
}

.chat-role-chip {
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

.chat-role-chip.owner {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.chat-msg-time {
  color: #64748b;
  font-size: 0.7rem;
  font-family: monospace;
}

.chat-bubble {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  padding: 9px 15px;
  border-radius: 18px;
  font-size: 0.93rem;
  line-height: 1.48;
  word-break: break-word;
  overflow-wrap: break-word;
  position: relative;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.chat-bubble:hover {
  transform: translateY(-1px);
}

.chat-message-row.own .chat-bubble {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.78) 0%, rgba(180, 83, 9, 0.85) 100%);
  border: 1px solid rgba(254, 240, 138, 0.38);
  color: #ffffff;
  border-top-right-radius: 4px;
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.28), 0 2px 8px rgba(0, 0, 0, 0.35);
}

html[dir="ltr"] .chat-message-row.own .chat-bubble {
  border-top-right-radius: 18px;
  border-top-left-radius: 4px;
}

.chat-message-row.other .chat-bubble {
  background: rgba(30, 41, 59, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  border-top-left-radius: 4px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

html[dir="ltr"] .chat-message-row.other .chat-bubble {
  border-top-left-radius: 18px;
  border-top-right-radius: 4px;
}

.chat-reply-quote-preview {
  background: rgba(0, 0, 0, 0.35);
  border-right: 3px solid #f59e0b;
  border-radius: 6px;
  padding: 4px 8px;
  margin-bottom: 6px;
  font-size: 0.78rem;
  color: #cbd5e1;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
}

html[dir="ltr"] .chat-reply-quote-preview {
  border-right: none;
  border-left: 3px solid #f59e0b;
}

.chat-msg-actions-hover {
  display: flex;
  gap: 4px;
  margin-top: 4px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.chat-msg-actions-hover:hover {
  opacity: 1;
}

.chat-mini-action-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s;
}

.chat-mini-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fbbf24;
}

.chat-reply-active-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(245, 158, 11, 0.12);
  border-top: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 0.82rem;
}

.chat-cancel-reply-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px 6px;
  font-size: 0.9rem;
}

.chat-cancel-reply-btn:hover {
  color: #ef476f;
}

.chat-quick-emojis-bar {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(17, 24, 39, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  overflow-x: auto;
}

.emoji-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 3px 8px;
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.emoji-chip:hover {
  transform: scale(1.22);
  background: rgba(245, 158, 11, 0.2);
}

.chat-input-wrapper {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  align-items: flex-end;
}

.chat-textarea {
  flex: 1;
  background: rgba(30, 41, 59, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 10px 14px;
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  resize: none;
  outline: none;
  max-height: 100px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-textarea:focus {
  background: rgba(30, 41, 59, 0.82);
  border-color: #f59e0b;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
}

.chat-textarea:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

.chat-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: none;
  color: #111827;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.chat-send-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.chat-send-btn:active {
  transform: translateY(1px) scale(0.95);
}

.card-shift-chat-dash {
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.12) 0%, rgba(20, 26, 38, 0.95) 100%) !important;
  border-color: rgba(99, 102, 241, 0.35) !important;
}

.card-shift-chat-dash:hover {
  border-color: #818cf8 !important;
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.25) !important;
}

/* ========================================================
   BRANDING & ARTISANAL LOGOS (App Emblem + Tiramisu Shift Chat)
   ======================================================== */

/* Central App Icon & Title Lockup */
.app-central-logo-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 24px;
}

.app-main-logo-frame {
  width: 104px;
  height: 104px;
  border-radius: 28px;
  padding: 4px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.45) 0%, rgba(217, 119, 6, 0.2) 50%, rgba(15, 23, 42, 0.9) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.65), 0 0 30px rgba(245, 158, 11, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  animation: logoGentleFloat 4s ease-in-out infinite alternate;
}

.app-main-logo-frame:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.75), 0 0 36px rgba(245, 158, 11, 0.45);
}

@keyframes logoGentleFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}

.app-main-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  display: block;
}

.app-main-logo-text {
  text-align: center;
  margin-top: 14px;
}

.app-main-logo-text .welcome-title {
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.brand-subtitle-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #94a3b8;
}

.brand-leaf-icon {
  font-size: 0.9rem;
  opacity: 0.75;
  color: #f59e0b;
}

/* Header Brand Lockup */
.brand-header-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 12px rgba(245, 158, 11, 0.18);
  object-fit: cover;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.header-brand-logo-img:hover {
  transform: scale(1.08);
}

/* Auth Screens Brand Header */
.auth-box-logo-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 16px;
}

.auth-box-logo-img {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 16px rgba(245, 158, 11, 0.22);
  object-fit: cover;
  margin-bottom: 10px;
}

/* Tiramisu Shift Chat Theme */
.chat-header-tiramisu-frame {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid rgba(245, 158, 11, 0.55);
  background: #0f172a;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), 0 0 12px rgba(245, 158, 11, 0.22);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-header-tiramisu-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chat-tiramisu-pill-img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
  vertical-align: middle;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.dash-card-tiramisu-img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dash-card:hover .dash-card-tiramisu-img {
  transform: scale(1.1) rotate(-3deg);
}

.dd-tiramisu-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
  vertical-align: middle;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Tiramisu Icon Alongside Chat Messages */
.chat-tiramisu-mini-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  vertical-align: middle;
  margin-inline-start: 4px;
  flex-shrink: 0;
  background: #0f172a;
}

.chat-tiramisu-mini-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Chat Empty State with Tiramisu */
.chat-empty-tiramisu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 38px 18px;
}

.chat-empty-tiramisu-img {
  width: 90px;
  height: 90px;
  border-radius: 20px;
  border: 2px solid rgba(245, 158, 11, 0.45);
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.2);
  margin-bottom: 14px;
  animation: logoGentleFloat 3.5s ease-in-out infinite alternate;
}

/* Chat Feed Background Watermark */
.chat-messages-container {
  position: relative;
}

.chat-messages-container::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  background-image: url('assets/tiramisu-slice.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.04;
  pointer-events: none;
  filter: grayscale(20%);
}

/* ========================================================
   CHAT FAB DRAG-TO-DISMISS & MUTUALLY EXCLUSIVE FIXED BUTTON
   ======================================================== */

/* Cute Drop Trash Zone ("איקס חמוד ונעים") */
.chat-fab-drop-zone {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 50px);
  z-index: 9998;
  display: none !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
  user-select: none;
  -webkit-user-select: none;
}

.chat-fab-drop-zone.visible {
  display: flex !important;
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.drop-zone-bubble {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(239, 71, 111, 0.16);
  border: 2px dashed rgba(239, 71, 111, 0.6);
  box-shadow: 0 8px 24px rgba(239, 71, 111, 0.25), 0 0 16px rgba(239, 71, 111, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.drop-zone-icon {
  font-size: 1.55rem;
  color: #ef476f;
  font-weight: 900;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 2px 6px rgba(239, 71, 111, 0.3));
}

.drop-zone-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fecdd3;
  background: rgba(15, 23, 42, 0.92);
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid rgba(239, 71, 111, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  letter-spacing: 0.2px;
  white-space: nowrap;
  transition: all 0.25s ease;
}

/* Hover/Snap State when FAB is over the X */
.chat-fab-drop-zone.snap-hover .drop-zone-bubble {
  background: linear-gradient(135deg, #ef476f 0%, #e11d48 100%);
  border: 2.5px solid #ffffff;
  transform: scale(1.22);
  box-shadow: 0 14px 40px rgba(239, 71, 111, 0.7), 0 0 25px rgba(239, 71, 111, 0.6);
}

.chat-fab-drop-zone.snap-hover .drop-zone-icon {
  color: #ffffff;
  transform: rotate(90deg) scale(1.15);
}

.chat-fab-drop-zone.snap-hover .drop-zone-text {
  background: #e11d48;
  color: #ffffff;
  border-color: #ffffff;
  transform: scale(1.05);
}

/* Trash absorbed effect */
@keyframes trashAbsorbed {
  0% { transform: translate(-50%, 0) scale(1.22); }
  45% { transform: translate(-50%, 6px) scale(0.85); }
  100% { transform: translate(-50%, 0) scale(1); }
}

.chat-fab-drop-zone.trash-absorbed {
  animation: trashAbsorbed 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

/* FAB dragging styles */
.shift-chat-floating-pill.is-dragging {
  cursor: grabbing !important;
  user-select: none !important;
  z-index: 10000 !important;
  transition: none !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(245, 158, 11, 0.5) !important;
  opacity: 0.92;
}

.shift-chat-floating-pill.snap-target {
  transform: scale(0.82) !important;
  border: 2px dashed #ef476f !important;
  opacity: 0.65 !important;
}

@keyframes fabPoofOut {
  0% { transform: scale(0.9) rotate(0deg); opacity: 0.9; }
  50% { transform: scale(1.2) rotate(15deg); opacity: 0.6; }
  100% { transform: scale(0) rotate(-45deg); opacity: 0; }
}

.shift-chat-floating-pill.fab-poof-out {
  animation: fabPoofOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

/* Fixed Navigation Bar Chat Button (Icon Only - Absolutely No Text) */
.global-bar-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-fixed-chat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(245, 158, 11, 0.16);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  padding: 2px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), 0 0 10px rgba(245, 158, 11, 0.2);
  flex-shrink: 0;
}

.nav-fixed-chat-btn:hover {
  background: rgba(245, 158, 11, 0.3);
  border-color: #fbbf24;
  transform: translateY(-1px) scale(1.08);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45);
}

.nav-fixed-chat-btn:active {
  transform: translateY(1px) scale(0.95);
}

.nav-fixed-chat-icon {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  object-fit: cover;
  display: block;
}

.nav-fixed-chat-btn .chat-unread-badge {
  position: absolute;
  top: -6px;
  left: -6px;
  font-size: 0.65rem;
  padding: 1px 5px;
  min-width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-width: 1.5px;
}

html[dir="ltr"] .nav-fixed-chat-btn .chat-unread-badge {
  left: auto;
  right: -6px;
}

/* Switch Toggle Styling */
.switch-toggle input:checked + .switch-slider {
  background-color: #f59e0b !important;
  border-color: #f59e0b !important;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .25s ease;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.switch-toggle input:checked + .switch-slider:before {
  transform: translateX(18px);
}

/* Cute Global Toast */
.cute-global-toast {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15, 23, 42, 0.95);
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 0 20px rgba(245, 158, 11, 0.3);
  z-index: 10005;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 90vw;
  text-align: center;
}

.cute-global-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Recipe Sharing & Collaborative Guest+ Mode
   ========================================================================== */
.btn-share-recipe {
  background: linear-gradient(135deg, #7c3aed, #4f46e5) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 8px 16px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(167, 139, 250, 0.4) !important;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35) !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.btn-share-recipe:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5) !important;
}

.guest-plus-banner {
  background: linear-gradient(135deg, rgba(76, 29, 149, 0.35), rgba(30, 27, 75, 0.65));
  border: 1.5px solid rgba(167, 139, 250, 0.55);
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.25);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  animation: guestBannerPulse 4s infinite alternate ease-in-out;
}

@keyframes guestBannerPulse {
  0% { border-color: rgba(167, 139, 250, 0.4); box-shadow: 0 4px 18px rgba(124, 58, 237, 0.2); }
  100% { border-color: rgba(196, 181, 253, 0.8); box-shadow: 0 6px 28px rgba(124, 58, 237, 0.45); }
}

/* ==========================================================================
   Shift Chat: Media, Files & Super-Admin Gold Glow Announcements
   ========================================================================== */
.chat-tools-actions-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
}

.chat-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-user-select: none;
  margin: 0;
}

.chat-tool-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.25);
}

.chat-tool-btn:active {
  transform: scale(0.94);
}

/* Super Admin Gold Mode Button */
.chat-gold-btn {
  background: rgba(245, 158, 11, 0.15);
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.chat-gold-btn:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.45);
}

.chat-gold-btn.active {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #1a0f02 !important;
  border-color: #fef08a !important;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.8), 0 0 4px #ffffff !important;
  animation: goldBtnGlow 1.5s infinite alternate;
}

@keyframes goldBtnGlow {
  0% { box-shadow: 0 0 10px rgba(245, 158, 11, 0.5); }
  100% { box-shadow: 0 0 22px rgba(245, 158, 11, 0.95), 0 0 6px #fff; }
}

/* Active Gold Banner above input */
.chat-gold-active-banner {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.2), rgba(180, 83, 9, 0.35));
  border: 1.5px solid #f59e0b;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  padding: 8px 12px;
  margin: 4px 10px;
  color: #fef08a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: goldBannerPulse 2.5s infinite alternate;
}

@keyframes goldBannerPulse {
  0% { box-shadow: 0 0 12px rgba(245, 158, 11, 0.25); }
  100% { box-shadow: 0 0 22px rgba(245, 158, 11, 0.6); }
}

.chat-gold-cancel-mini {
  background: transparent;
  border: none;
  color: #fef08a;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}
.chat-gold-cancel-mini:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Attachment Preview Bar */
.chat-attachment-preview-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin: 4px 10px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.chat-attachment-thumb {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.chat-attachment-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-attachment-thumb span {
  font-size: 1.4rem;
}

.chat-attachment-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.chat-attachment-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-attachment-size {
  font-size: 0.72rem;
  color: #94a3b8;
}

.chat-attachment-remove-btn {
  background: transparent;
  border: none;
  color: #ef476f;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}

.chat-attachment-remove-btn:hover {
  background: rgba(239, 71, 111, 0.15);
}

/* Chat In-Bubble Media & Files */
.chat-msg-media-wrap {
  margin-top: 8px;
  max-width: 280px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}

.chat-msg-media-wrap:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.chat-msg-media-img {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: cover;
}

.chat-msg-file-card {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px 14px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  max-width: 320px;
}

.chat-msg-file-card:hover {
  background: rgba(0, 0, 0, 0.55);
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-1px);
}

.chat-msg-file-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.chat-msg-file-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.chat-msg-file-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-msg-file-details {
  font-size: 0.72rem;
  color: #94a3b8;
}

.chat-msg-file-action {
  font-size: 1.1rem;
  color: #f59e0b;
  flex-shrink: 0;
}

/* Super Admin Gold Message Bubble (Gold Border Glow) */
.chat-bubble.gold-announcement,
.chat-msg.gold-announcement {
  background: linear-gradient(145deg, rgba(38, 24, 7, 0.95), rgba(58, 36, 12, 0.9)) !important;
  border: 2px solid #f59e0b !important;
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.45), inset 0 0 14px rgba(245, 158, 11, 0.12) !important;
  animation: goldBubbleGlow 3s infinite alternate ease-in-out !important;
  position: relative;
}

@keyframes goldBubbleGlow {
  0% {
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.35), inset 0 0 10px rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
  }
  100% {
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.7), inset 0 0 20px rgba(245, 158, 11, 0.25);
    border-color: #fde047;
  }
}

.gold-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1a0f02;
  font-weight: 800;
  font-size: 0.68rem;
  padding: 1px 7px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

/* App-wide Super-Admin Gold Push Banner */
.super-admin-gold-push-banner {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10040;
  width: 92%;
  max-width: 520px;
  background: linear-gradient(135deg, #1c1103, #2e1a06);
  border: 2px solid #f59e0b;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.85), 0 0 32px rgba(245, 158, 11, 0.65);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  animation: slideDownGold 0.4s cubic-bezier(0.16, 1, 0.3, 1), goldPushGlow 2.5s infinite alternate;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@keyframes slideDownGold {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes goldPushGlow {
  0% { box-shadow: 0 16px 45px rgba(0, 0, 0, 0.85), 0 0 22px rgba(245, 158, 11, 0.45); }
  100% { box-shadow: 0 18px 55px rgba(0, 0, 0, 0.9), 0 0 42px rgba(245, 158, 11, 0.85); }
}

.gold-push-crown {
  font-size: 2.2rem;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.7));
}

.gold-push-body {
  flex: 1;
  min-width: 0;
}

.gold-push-tag {
  background: #f59e0b;
  color: #1a0f02;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.gold-push-close {
  background: transparent;
  border: none;
  color: #fde047;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
  flex-shrink: 0;
}

.gold-push-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Lightbox Modal */
.chat-lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10060;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.25s ease-out;
}

.chat-lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 2rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.2s;
  z-index: 10065;
}

.chat-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

.chat-lightbox-content {
  max-width: 92vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.chat-lightbox-caption {
  margin-top: 14px;
  color: #e2e8f0;
  font-size: 0.92rem;
  text-align: center;
  max-width: 80vw;
}

/* ==========================================================================
   WhatsApp-Style Floating Date Dividers
   ========================================================================== */
.chat-date-divider-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 14px 0 8px 0;
  position: sticky;
  top: 4px;
  z-index: 6;
  pointer-events: none;
}

.chat-date-divider-pill {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.3px;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
}

/* ==========================================================================
   Super-Admin Shift Chat Audit Archive & Deletion Tracking
   ========================================================================== */
.chat-archive-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 10px 0 14px 0;
}

.chat-archive-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-archive-stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.chat-archive-stat-label {
  font-size: 0.78rem;
  color: #94a3b8;
}

.chat-archive-table th, .chat-archive-table td {
  padding: 10px 12px;
  font-size: 0.84rem;
  vertical-align: middle;
}

.chat-badge-deleted {
  background: rgba(239, 71, 111, 0.18);
  border: 1px solid rgba(239, 71, 111, 0.45);
  color: #ef476f;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.chat-badge-active {
  background: rgba(6, 214, 160, 0.18);
  border: 1px solid rgba(6, 214, 160, 0.45);
  color: #06d6a0;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}







/* ========================================================
   DEDICATED EMOJI BAR & EXPANDABLE GLASSMORPHIC PICKER PANEL
   ======================================================== */
.chat-emoji-toggle-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  scrollbar-width: none;
}

.chat-emoji-toggle-bar::-webkit-scrollbar {
  display: none;
}

.chat-emoji-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.14);
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.chat-emoji-toggle-btn:hover {
  background: rgba(245, 158, 11, 0.24);
  border-color: #f59e0b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.chat-emoji-toggle-btn.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(217, 119, 6, 0.5));
  border-color: #fde047;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.4);
}

.chat-emoji-toggle-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.chat-emoji-toggle-arrow {
  font-size: 0.65rem;
  opacity: 0.85;
  transition: transform 0.2s ease;
}

.chat-emoji-picker-panel {
  background: rgba(17, 24, 39, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1.5px solid rgba(245, 158, 11, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 14px;
  transition: max-height 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, padding 0.25s ease;
  box-shadow: inset 0 4px 14px rgba(0, 0, 0, 0.4);
}

.chat-emoji-picker-panel.open {
  max-height: 250px;
  opacity: 1;
  pointer-events: auto;
  padding: 12px 14px;
  overflow-y: auto;
}

.chat-emoji-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.chat-emoji-categories {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}

.chat-emoji-categories::-webkit-scrollbar {
  display: none;
}

.emoji-cat-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.emoji-cat-btn:hover {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.emoji-cat-btn.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(217, 119, 6, 0.4));
  border-color: #f59e0b;
  color: #fde047;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.chat-emoji-panel-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.chat-emoji-panel-close-btn:hover {
  background: rgba(239, 71, 111, 0.2);
  border-color: rgba(239, 71, 111, 0.5);
  color: #ef476f;
  transform: scale(1.1);
}

.chat-emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
  gap: 6px;
  max-height: 170px;
  overflow-y: auto;
  padding: 4px 2px;
}

.panel-emoji-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  height: 38px;
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), background 0.18s, border-color 0.18s;
  user-select: none;
  -webkit-user-select: none;
}

.panel-emoji-btn:hover {
  transform: scale(1.28);
  background: rgba(245, 158, 11, 0.25);
  border-color: rgba(245, 158, 11, 0.5);
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.panel-emoji-btn:active {
  transform: scale(1.05);
}


/* ========================================================
   FIXED "BOUREKA GVINAH" BUTTON & VERTICAL QUICK MENU
   ======================================================== */
.chat-boureka-quick-container {
  position: relative;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 14px;
}

.chat-boureka-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.boureka-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(217, 119, 6, 0.35) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.55);
  border-radius: 999px;
  color: #fef08a;
  padding: 6px 16px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
  user-select: none;
}

.boureka-quick-btn:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.35) 0%, rgba(217, 119, 6, 0.5) 100%);
  border-color: #fbbf24;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
}

.boureka-quick-btn.active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #1a0f02;
  border-color: #fde047;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.6);
}

.boureka-btn-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.boureka-btn-title {
  letter-spacing: 0.2px;
}

.boureka-btn-chevron {
  font-size: 0.7rem;
  opacity: 0.9;
  transition: transform 0.2s ease;
}

/* Vertical Pop-up Menu (Opening UPWARDS) */
.boureka-vertical-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 14px;
  min-width: 250px;
  max-width: 90vw;
  background: rgba(17, 24, 39, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  border-radius: 18px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 24px rgba(245, 158, 11, 0.25);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: bourekaMenuPop 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

html[dir="ltr"] .boureka-vertical-menu {
  right: auto;
  left: 14px;
}

@keyframes bourekaMenuPop {
  0% { opacity: 0; transform: translateY(12px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.boureka-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #f8fafc;
  cursor: pointer;
  text-align: right;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

html[dir="ltr"] .boureka-menu-item {
  text-align: left;
}

.boureka-menu-item:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateX(-3px);
  color: #fef08a;
}

html[dir="ltr"] .boureka-menu-item:hover {
  transform: translateX(3px);
}

.boureka-menu-item:active {
  transform: scale(0.97);
}

.boureka-item-emoji {
  font-size: 1.45rem;
  line-height: 1;
  flex-shrink: 0;
}

.boureka-item-text {
  flex: 1;
  font-size: 0.92rem;
  font-weight: 700;
}

.boureka-item-pill {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.chat-kb-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.chat-kb-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.chat-kb-toggle-btn.active {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

/* ========================================================
   CUSTOM IN-APP KEYBOARD (Clean Minimalist Luxury Glassmorphism)
   ======================================================== */
.chat-custom-keyboard {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(22, 28, 40, 0.98) 0%, rgba(13, 17, 26, 0.99) 100%);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 10px 8px 18px 8px;
  gap: 8px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition: all 0.25s ease;
}

.custom-kb-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.custom-kb-mode-pills {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.35);
  padding: 3px 5px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.kb-mode-pill {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1.2;
}

.kb-mode-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
}

.kb-mode-pill.active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: #fbbf24;
  color: #1a0f02;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
}

.kb-mini-action {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #fca5a5;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.kb-mini-action:hover {
  background: rgba(239, 68, 68, 0.26);
  border-color: #ef4444;
  color: #ffffff;
}

.custom-kb-layer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.custom-kb-row {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
}

/* Explicit Layer Directionality */
#kbLayerHebrew {
  direction: rtl !important;
}
#kbLayerHebrew .custom-kb-row {
  direction: rtl !important;
}

#kbLayerEnglish {
  direction: ltr !important;
}
#kbLayerEnglish .custom-kb-row {
  direction: ltr !important;
}

#kbLayerSymbols.dir-rtl {
  direction: rtl !important;
}
#kbLayerSymbols.dir-rtl .custom-kb-row {
  direction: rtl !important;
}

#kbLayerSymbols.dir-ltr {
  direction: ltr !important;
}
#kbLayerSymbols.dir-ltr .custom-kb-row {
  direction: ltr !important;
}

/* iOS-Style Keyboard Key - Generous Size, Comfort & Clear Contrast */
.kb-key {
  flex: 1;
  min-width: 32px;
  height: 48px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #ffffff;
  font-size: 1.28rem;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 1px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.08s cubic-bezier(0.16, 1, 0.3, 1), background 0.1s ease, border-color 0.1s ease, box-shadow 0.1s ease;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.kb-key:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fef08a;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.45);
}

/* Smooth iOS-Style Key Press Interaction */
.kb-key:active {
  transform: scale(0.93) translateY(2px) !important;
  background: rgba(245, 158, 11, 0.45) !important;
  border-color: #fbbf24 !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.55), inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
}

.kb-emoji-key {
  font-size: 1.45rem;
}

.kb-key-fn {
  flex: 1.2;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(30, 41, 59, 0.75);
  border-color: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

.kb-key-fn:hover {
  background: rgba(51, 65, 85, 0.9);
  color: #f8fafc;
}

.kb-key-fn.active {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1a0f02;
  border-color: #fbbf24;
}

.kb-key-space {
  flex: 4;
  font-size: 0.9rem;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.8px;
  background: rgba(255, 255, 255, 0.12);
}

.kb-key-space:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.kb-key-backspace {
  flex: 1.35;
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-size: 1.25rem;
}

.kb-key-backspace:hover {
  background: rgba(239, 68, 68, 0.35);
  border-color: #ef4444;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.45);
}

/* Distinct Action Key - iOS-Style Return / Enter (Newline key) */
.kb-key-enter {
  flex: 1.45;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
  color: #f1f5f9;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.kb-key-enter:hover {
  background: rgba(255, 255, 255, 0.26);
  border-color: #f59e0b;
  color: #ffffff;
}

/* Distinct Action Key - Send (Separated completely from Backspace) */
.kb-key-send {
  flex: 1.7;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: #fbbf24;
  color: #180e02;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 3px 12px rgba(245, 158, 11, 0.45);
  letter-spacing: 0.3px;
}

.kb-key-send:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.6);
}

/* Categorized Scrollable Emoji Grid Container */
.kb-emoji-grid-wrapper {
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 6px 10px 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 158, 11, 0.35) transparent;
}

.kb-emoji-grid-wrapper::-webkit-scrollbar {
  width: 4px;
}

.kb-emoji-grid-wrapper::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.35);
  border-radius: 4px;
}

.kb-emoji-category-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fbbf24;
  letter-spacing: 0.3px;
  padding: 2px 4px 0 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.kb-emoji-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
  gap: 6px;
}

.kb-emoji-category-grid .kb-key {
  height: 38px;
  min-width: 34px;
}


/* ========================================================
   BOUTIQUE ARTISANAL UI/UX POLISH & MICRO-INTERACTIONS v5.0
   ======================================================== */

/* Global Anti-Aliasing & Viewport Bounds */
html, body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Silky Screen Reveal Animation */
.screen-view.active {
  animation: boutiqueScreenReveal 0.28s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

@keyframes boutiqueScreenReveal {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.995);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Boutique Frosted Glassmorphism for Dashboard Cards */
.dash-card {
  background: linear-gradient(145deg, rgba(26, 34, 52, 0.72) 0%, rgba(15, 23, 42, 0.9) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  padding: 24px 18px !important;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease !important;
}

.dash-card:hover {
  transform: translateY(-4px) scale(1.015) !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 158, 11, 0.18) !important;
}

/* Modal Silky Pop-In Micro-Interaction */
.modal {
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  background: rgba(0, 0, 0, 0.78) !important;
}

.modal.open .modal-content,
.modal[style*="display: flex"] .modal-content,
.modal[style*="display: block"] .modal-content {
  animation: modalBoutiquePop 0.26s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

@keyframes modalBoutiquePop {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(12px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* User Profile Dropdown Glassmorphic Polish */
.user-profile-dropdown-card {
  background: rgba(21, 26, 38, 0.94) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.35) !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 25px rgba(245, 158, 11, 0.15) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  animation: ddPopDown 0.22s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

@keyframes ddPopDown {
  0% { opacity: 0; transform: translateY(-8px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Smooth Tactile Feedback & Mobile Optimization for Keyboard */
.kb-key {
  touch-action: manipulation;
}

/* Mobile Responsive Optimization for Custom Keyboard (iOS Proportions) */
@media (max-width: 480px) {
  .chat-custom-keyboard {
    padding: 10px 5px 20px 5px !important;
    gap: 7px !important;
  }
  .custom-kb-row {
    gap: 4px !important;
  }
  .kb-key {
    min-width: 28px !important;
    height: 48px !important;
    font-size: 1.22rem !important;
    border-radius: 8px !important;
  }
  .kb-key-send {
    font-size: 0.94rem !important;
    flex: 1.8 !important;
  }
  .kb-emoji-key {
    font-size: 1.4rem !important;
  }
  .kb-emoji-grid-wrapper {
    max-height: 180px !important;
  }
  .kb-emoji-category-grid {
    grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)) !important;
    gap: 5px !important;
  }
  .kb-emoji-category-grid .kb-key {
    height: 40px !important;
    min-width: 34px !important;
  }
  .shift-chat-drawer {
    width: 100vw !important;
    max-width: 100vw !important;
  }
  .dash-card {
    padding: 20px 14px !important;
  }
}

/* Terminal Chat Mode Custom Keyboard Adaptation */
.shift-chat-drawer.terminal-chat-mode .chat-custom-keyboard {
  background: rgba(6, 12, 10, 0.98) !important;
  border-top-color: rgba(16, 185, 129, 0.4) !important;
}
.shift-chat-drawer.terminal-chat-mode .kb-key {
  color: #34d399 !important;
  border-color: rgba(16, 185, 129, 0.2) !important;
  background: rgba(16, 185, 129, 0.05) !important;
}
.shift-chat-drawer.terminal-chat-mode .kb-key:hover,
.shift-chat-drawer.terminal-chat-mode .kb-key:active {
  border-color: #10b981 !important;
  color: #a7f3d0 !important;
  background: rgba(16, 185, 129, 0.25) !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.45) !important;
}
.shift-chat-drawer.terminal-chat-mode .kb-mode-pill.active {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  border-color: #34d399 !important;
  color: #042f2e !important;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.25);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 158, 11, 0.45);
}

/* ========================================================================== */
/* ===== First-Time Welcome Modal & PWA Home Screen Animation Guide ===== */
/* ========================================================================== */

.first-time-welcome-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 11, 18, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 10070;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.first-time-welcome-modal.fade-out {
  opacity: 0;
}

.first-time-welcome-content {
  position: relative;
  max-width: 500px;
  width: 100%;
  margin: auto;
  background: linear-gradient(165deg, rgba(26, 32, 46, 0.98) 0%, rgba(13, 17, 24, 0.99) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  border-radius: 26px;
  padding: 28px 22px 24px 22px;
  box-shadow: 0 25px 65px -10px rgba(0, 0, 0, 0.85), 0 0 45px rgba(245, 158, 11, 0.16);
  text-align: center;
  animation: welcomeModalPopIn 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes welcomeModalPopIn {
  from {
    transform: scale(0.92) translateY(16px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.first-time-welcome-close-btn {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s ease;
  z-index: 10;
}

.first-time-welcome-close-btn:hover {
  background: rgba(244, 63, 94, 0.2);
  color: #f43f5e;
  border-color: rgba(244, 63, 94, 0.4);
  transform: rotate(90deg);
}

.welcome-header-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
  margin-top: 4px;
}

.welcome-bakery-glow-orb {
  position: relative;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.1) 100%);
  border: 2px solid rgba(245, 158, 11, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.35);
  animation: bakeryGlowPulse 2.8s infinite ease-in-out;
}

@keyframes bakeryGlowPulse {
  0%, 100% {
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 42px rgba(245, 158, 11, 0.65);
    transform: scale(1.04);
  }
}

.welcome-brand-avatar {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

.welcome-sparkle-star {
  position: absolute;
  pointer-events: none;
  font-size: 1.1rem;
  animation: floatSparkle 2.2s infinite ease-in-out;
}

.welcome-sparkle-star.s1 {
  top: -6px;
  right: -6px;
  animation-delay: 0s;
}

.welcome-sparkle-star.s2 {
  bottom: -4px;
  left: -8px;
  font-size: 1.25rem;
  animation-delay: 0.7s;
}

.welcome-sparkle-star.s3 {
  top: 8px;
  left: -10px;
  font-size: 0.95rem;
  animation-delay: 1.3s;
}

@keyframes floatSparkle {
  0%, 100% {
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 0.85;
  }
  50% {
    transform: translateY(-6px) scale(1.2) rotate(15deg);
    opacity: 1;
  }
}

.welcome-role-badge-container {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.welcome-badge-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--accent-hover);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.first-time-welcome-title {
  color: #fff;
  font-size: 1.42rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.35;
}

.first-time-welcome-subtitle {
  color: #cbd5e1;
  font-size: 0.93rem;
  line-height: 1.55;
  margin-bottom: 18px;
  text-align: center;
}

.first-time-welcome-subtitle strong {
  color: #fbbf24;
}

.welcome-device-selector {
  display: flex;
  gap: 8px;
  background: rgba(15, 20, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 16px;
}

.welcome-device-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.welcome-device-tab.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.3) 100%);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.device-tab-icon {
  font-size: 1.05rem;
}

.welcome-native-pwa-banner {
  margin-bottom: 14px;
}

.btn-native-pwa-install {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.38);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-native-pwa-install:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.55);
}

.install-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  animation: pulseDot 1.4s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.welcome-guide-panel {
  text-align: right;
  margin-bottom: 16px;
}

/* Phone Mockup Screen */
.welcome-phone-stage {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.phone-mockup-frame {
  width: 220px;
  height: 140px;
  background: #090c12;
  border: 2.5px solid #334155;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), inset 0 0 10px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
}

.phone-speaker-notch {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 4px;
  background: #1e293b;
  border-radius: 999px;
  z-index: 5;
}

.phone-camera-hole {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #1e293b;
  border-radius: 50%;
  z-index: 5;
}

.phone-screen-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: radial-gradient(circle at 50% 30%, #1e2535 0%, #0d111a 100%);
  padding: 6px 8px;
}

.phone-browser-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 3px 6px;
  font-size: 0.65rem;
  color: #94a3b8;
  direction: ltr;
}

.phone-browser-bar.android-bar {
  justify-content: space-between;
}

.chrome-menu-action-glow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 18px;
  color: #f59e0b;
  font-weight: 900;
  font-size: 0.85rem;
  background: rgba(245, 158, 11, 0.2);
  border-radius: 4px;
}

.phone-mockup-body {
  position: relative;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-app-flyer {
  position: absolute;
  top: 2px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: dockIconBounce 2.6s infinite ease-in-out;
}

@keyframes dockIconBounce {
  0% {
    transform: translateY(-8px) scale(0.85);
    opacity: 0.2;
  }
  30% {
    transform: translateY(12px) scale(1.15);
    opacity: 1;
  }
  50% {
    transform: translateY(8px) scale(1.05);
    opacity: 1;
  }
  80% {
    transform: translateY(10px) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-8px) scale(0.85);
    opacity: 0.2;
  }
}

.phone-dock-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #1e2432;
  border: 1.5px solid #f59e0b;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.45);
  object-fit: contain;
  padding: 2px;
}

.phone-fly-sparkles {
  font-size: 0.75rem;
  margin-top: -4px;
  animation: floatSparkle 1.8s infinite;
}

.phone-home-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
  padding: 0 8px;
  opacity: 0.65;
}

.mini-app-tile {
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.mini-app-tile.highlight {
  background: rgba(245, 158, 11, 0.18);
  border: 1px dashed rgba(245, 158, 11, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mini-tile-img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.mini-tile-label {
  font-size: 0.45rem;
  color: #fbbf24;
  white-space: nowrap;
}

.phone-safari-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(20, 24, 34, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 2px 4px;
  font-size: 0.65rem;
  color: #64748b;
  direction: ltr;
}

.safari-bar-icon {
  font-size: 0.65rem;
  opacity: 0.5;
}

.safari-share-action-glow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 20px;
  background: rgba(245, 158, 11, 0.25);
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: 5px;
  color: #fbbf24;
  font-size: 0.85rem;
}

.share-glow-arrow {
  position: absolute;
  top: -16px;
  font-size: 0.9rem;
  animation: bouncePointer 1.4s infinite ease-in-out;
}

@keyframes bouncePointer {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.phone-android-nav-bar {
  display: flex;
  justify-content: space-around;
  font-size: 0.55rem;
  color: #475569;
  padding-top: 2px;
}

/* Steps List */
.welcome-steps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.welcome-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 12px;
  transition: background 0.2s;
}

.welcome-step-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.step-number-bubble {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #111;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.step-text-content {
  flex: 1;
  font-size: 0.86rem;
  color: #e2e8f0;
  line-height: 1.45;
}

.step-visual-key {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.step-sym-highlight {
  display: inline-block;
  color: #fbbf24;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.15);
  padding: 1px 6px;
  border-radius: 4px;
}

.step-sym-highlight.success {
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
}

/* Don't show again row */
.welcome-dont-show-row {
  margin-top: 14px;
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

.welcome-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 0.88rem;
  color: #cbd5e1;
  transition: color 0.2s;
}

.welcome-checkbox-label:hover {
  color: #f8fafc;
}

.welcome-checkbox-label input[type="checkbox"] {
  accent-color: #f59e0b;
  width: 17px;
  height: 17px;
  cursor: pointer;
}

/* Confirmation Button */
.first-time-welcome-confirm-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #111827;
  font-size: 1.1rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 22px rgba(245, 158, 11, 0.45);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.first-time-welcome-confirm-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.6);
}

.first-time-welcome-confirm-btn:active {
  transform: scale(0.98);
}

/* Cute Success Toast Notification (Live Feedback) */
.cute-success-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(40px) scale(0.95);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(5, 150, 105, 0.98) 100%);
  color: #fff;
  padding: 14px 22px;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(16, 185, 129, 0.4);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 10080;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-width: 90vw;
  text-align: right;
  direction: rtl;
}

.cute-success-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

.toast-sparkle-icon {
  font-size: 2rem;
  flex-shrink: 0;
  animation: floatSparkle 1.8s infinite ease-in-out;
}

.toast-text-box .toast-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
}

.toast-text-box .toast-sub {
  font-size: 0.82rem;
  color: #d1fae5;
  line-height: 1.35;
}

/* ==========================================================================
   STAFF RECIPE DIRECT COLLABORATION & MANAGEMENT TERMINAL CHAT
   ========================================================================== */

/* כפתור צירוף עובד קיים למתכון */
.btn-assign-staff-recipe {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.35) 100%) !important;
  border: 1.5px solid rgba(139, 92, 246, 0.6) !important;
  color: #c4b5fd !important;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 12px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-assign-staff-recipe:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.4) 0%, rgba(139, 92, 246, 0.5) 100%) !important;
  border-color: #a78bfa !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}

/* סרגל שותפים פעילים במתכון */
.recipe-collab-active-bar {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.65) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1.5px solid rgba(139, 92, 246, 0.35);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.recipe-collab-chips-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.recipe-collab-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #e0e7ff;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 600;
}

.recipe-collab-chip .chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.btn-recipe-collab-leave {
  background: rgba(239, 68, 68, 0.2) !important;
  border: 1px solid #ef4444 !important;
  color: #fca5a5 !important;
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 10px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-recipe-collab-leave:hover {
  background: #ef4444 !important;
  color: #fff !important;
}

/* כרטיסי עובדים במודאל צירוף עובד */
.staff-assign-user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
  transition: all 0.2s ease;
}

.staff-assign-user-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(99, 102, 241, 0.35);
}

.staff-assign-user-card.connected {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
}

/* סרגל ערוצי צ'אט (מנהלים) */
.chat-channel-switch-bar {
  display: flex;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(10, 15, 28, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.chat-channel-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-channel-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.chat-channel-tab.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.35) 100%);
  border-color: #f59e0b;
  color: #fbbf24;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.2);
}

#chatChannelBtnManagement.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(5, 150, 105, 0.35) 100%) !important;
  border-color: #10b981 !important;
  color: #34d399 !important;
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.25) !important;
}

.mgmt-term-badge {
  font-size: 0.65rem;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10b981;
  color: #6ee7b7;
  letter-spacing: 0.5px;
}

/* ================== TERMINAL / CODE UI CHAT MODE ================== */
.shift-chat-drawer.terminal-chat-mode {
  background: #060911 !important;
  border-right: 2px solid #10b981 !important;
  box-shadow: -10px 0 35px rgba(16, 185, 129, 0.15) !important;
}

html[dir="ltr"] .shift-chat-drawer.terminal-chat-mode {
  border-left: 2px solid #10b981 !important;
  border-right: none !important;
}

.shift-chat-drawer.terminal-chat-mode .chat-drawer-header {
  background: #080d1a !important;
  border-bottom: 1.5px solid rgba(16, 185, 129, 0.4) !important;
}

.shift-chat-drawer.terminal-chat-mode .chat-drawer-title {
  color: #34d399 !important;
  font-family: 'Fira Code', 'Cascadia Code', 'Consolas', monospace !important;
  letter-spacing: 0.5px;
}

.shift-chat-drawer.terminal-chat-mode .chat-drawer-sub {
  color: #6ee7b7 !important;
  font-family: 'Fira Code', 'Cascadia Code', 'Consolas', monospace !important;
  font-size: 0.74rem !important;
}

.shift-chat-drawer.terminal-chat-mode .chat-messages-container {
  background: radial-gradient(circle at 50% 0%, #0c1424 0%, #04070d 100%) !important;
  font-family: 'Fira Code', 'Cascadia Code', 'Consolas', monospace !important;
}

/* הודעות טרמינל */
.terminal-msg-line {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  color: #e2e8f0;
  font-size: 0.88rem;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  position: relative;
}

.terminal-msg-line.super-admin {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(30, 27, 20, 0.7);
}

.terminal-msg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.76rem;
  color: #34d399;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 4px;
}

.terminal-msg-header .prompt-str {
  color: #10b981;
  font-weight: 700;
}

.terminal-msg-body {
  white-space: pre-wrap;
  word-break: break-word;
  color: #f1f5f9;
}

.term-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid #10b981;
  color: #6ee7b7;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.74rem;
  font-family: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  cursor: pointer;
  transition: all 0.2s ease;
}

.term-action-btn:hover {
  background: #10b981;
  color: #060911;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.term-broadcast-btn {
  background: rgba(245, 158, 11, 0.2) !important;
  border-color: #f59e0b !important;
  color: #fbbf24 !important;
}

.term-broadcast-btn:hover {
  background: #f59e0b !important;
  color: #111827 !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5) !important;
}

/* סרגל בקרה מהיר למנהל-על במסוף */
.terminal-admin-quick-bar {
  background: #080d19;
  border-top: 1px solid rgba(16, 185, 129, 0.3);
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
  padding: 6px 12px;
  font-family: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.76rem;
}

.term-prompt-tag {
  color: #10b981;
  font-weight: 700;
}

.term-quick-action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.74rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.term-quick-action-btn:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10b981;
  color: #34d399;
}

.shift-chat-drawer.terminal-chat-mode .chat-input-wrapper {
  background: #080d1a !important;
  border-top: 1.5px solid rgba(16, 185, 129, 0.35) !important;
}

.shift-chat-drawer.terminal-chat-mode .chat-textarea {
  background: #050811 !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  color: #34d399 !important;
  font-family: 'Fira Code', 'Cascadia Code', 'Consolas', monospace !important;
}

.shift-chat-drawer.terminal-chat-mode .chat-textarea:focus {
  border-color: #10b981 !important;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.35) !important;
}

.shift-chat-drawer.terminal-chat-mode .chat-send-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4) !important;
  color: #060911 !important;
}

/* ==================== WhatsApp Quick Share Modal & Staff Action ==================== */
.btn-assign-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
  color: #fff !important;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.35);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-assign-whatsapp:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(37, 211, 102, 0.55);
}

/* ==================== Mentorship Pairing System ==================== */
.mentorship-section-card {
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.mentorship-pair-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: all 0.25s ease;
}

.mentorship-pair-card:hover {
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.15);
}

.mentorship-user-block {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 170px;
}

.mentorship-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.mentorship-user-avatar.mentor {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.35));
  border: 2px solid #f59e0b;
}

.mentorship-user-avatar.apprentice {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.35));
  border: 2px solid #10b981;
}

.mentorship-connection-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  padding: 0 10px;
  flex: 1;
}

.mentorship-flow-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #34d399;
  font-weight: 700;
  font-size: 0.85rem;
}

.btn-break-pairing {
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1.5px solid #ef4444 !important;
  color: #fca5a5 !important;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.btn-break-pairing:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.5);
}

.mentorship-tag-mentor {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

.mentorship-tag-apprentice {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

@media (max-width: 768px) {
  .mentorship-pair-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .mentorship-connection-hub {
    padding: 8px 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  }
}




