/* چپ‌چین کردن کلی سایت */
html,
body,
#app,
#root {
    direction: ltr !important;
    text-align: left !important;
}

/* چپ‌چین کردن محتوای اصلی */
main,
.container,
.content,
.dashboard {
    direction: ltr !important;
    text-align: left !important;
}

/* فارسی‌سازی دکمه Transport Management */
.transport-management-control {
    font-size: 0 !important;
}

.transport-management-control::after {
    content: "مدیریت حمل‌ونقل";
    font-size: 14px !important;
    font-family: inherit;
    direction: rtl;
    display: inline-block;
}





:root {
  --bg: #E0E5EC;
  --surface: #E0E5EC;
  --surface-pressed: #D9DFE7;
  --surface-dim: #D7DDE6;
  --shadow-light: rgba(255, 255, 255, 0.88);
  --shadow-dark: rgba(163, 177, 198, 0.65);
  --shadow-dark-strong: rgba(154, 168, 190, 0.78);
  --text-primary: #2D3748;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --accent: #4A6CF7;
  --accent-soft: rgba(74, 108, 247, 0.14);
  --ci-color: #D9534F;
  --kz-color: #2E90D1;
  --oz-color: #27A179;
  --danger: #DC4C4C;
  --success: #249B73;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --ease-neu: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: Tahoma, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  direction: rtl;
  text-align: right;
}

.hidden {
  display: none !important;
}

.app-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 20px 48px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* =========================================================
   NEUMORPHISM SURFACES & CONTROLS
   ========================================================= */
.neu-surface {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow:
    -8px -8px 18px var(--shadow-light),
    8px 8px 18px var(--shadow-dark);
  transition: transform 0.28s var(--ease-neu), box-shadow 0.28s var(--ease-neu);
}

.neu-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow:
    -6px -6px 14px var(--shadow-light),
    6px 6px 14px var(--shadow-dark);
  transition: transform 0.26s var(--ease-neu), box-shadow 0.26s var(--ease-neu);
}

.neu-inset {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow:
    inset 5px 5px 10px var(--shadow-dark),
    inset -5px -5px 10px var(--shadow-light);
}

.neu-inset-sm {
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow:
    inset 3px 3px 6px var(--shadow-dark),
    inset -3px -3px 6px var(--shadow-light);
}

.neu-btn {
  appearance: none;
  border: none;
  outline: none;
  background: var(--surface);
  color: var(--text-primary);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow:
    -5px -5px 11px var(--shadow-light),
    5px 5px 11px var(--shadow-dark);
  transition:
    transform 0.18s var(--ease-neu),
    box-shadow 0.2s var(--ease-neu),
    color 0.2s ease,
    background-color 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.neu-btn:hover:not(:disabled):not(.is-disabled) {
  transform: translateY(-2px);
  box-shadow:
    -7px -7px 14px var(--shadow-light),
    7px 7px 14px var(--shadow-dark-strong);
  color: var(--accent);
}

.neu-btn:active:not(:disabled):not(.is-disabled) {
  transform: scale(0.97);
  background: var(--surface-pressed);
  box-shadow:
    inset 4px 4px 8px var(--shadow-dark),
    inset -4px -4px 8px var(--shadow-light);
}

.neu-btn-primary {
  color: var(--accent);
  font-weight: 700;
}

.neu-btn-primary.is-solid {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow:
    -4px -4px 10px var(--shadow-light),
    5px 5px 12px rgba(74, 108, 247, 0.35);
}

.neu-btn-primary.is-solid:hover:not(:disabled) {
  color: #FFFFFF;
  background: #3D5FE8;
}

.neu-btn-danger-soft {
  color: var(--danger);
}

.neu-btn-danger-soft:hover:not(:disabled) {
  color: #B93838 !important;
}

.neu-btn-sm {
  padding: 8px 14px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.neu-icon-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 13px;
}

.neu-btn:disabled,
.neu-btn.is-disabled,
.neu-tile-inactive {
  background: var(--surface-dim) !important;
  color: var(--text-muted) !important;
  opacity: 0.56;
  cursor: not-allowed !important;
  box-shadow:
    -2px -2px 5px rgba(255, 255, 255, 0.55),
    2px 2px 6px rgba(163, 177, 198, 0.42) !important;
  transform: none !important;
}

.neu-input,
.neu-select,
.neu-textarea {
  width: 100%;
  border: none;
  outline: none;
  background: var(--surface);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.94rem;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  box-shadow:
    inset 4px 4px 9px var(--shadow-dark),
    inset -4px -4px 9px var(--shadow-light);
  transition: box-shadow 0.22s var(--ease-neu);
}

.neu-input:focus,
.neu-select:focus,
.neu-textarea:focus {
  box-shadow:
    inset 5px 5px 11px var(--shadow-dark-strong),
    inset -5px -5px 11px var(--shadow-light),
    0 0 0 2px rgba(74, 108, 247, 0.25);
}

.neu-textarea {
  min-height: 92px;
  resize: vertical;
}

/* =========================================================
   TOP NAVIGATION BAR
   ========================================================= */
.top-bar {
  padding: 14px 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeSlideDown 0.35s var(--ease-neu) both;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-emblem {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--accent);
}

.brand-title {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.sync-pill {
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(36, 155, 115, 0.55);
  animation: pulseLive 2.2s infinite;
}

.sync-pill.is-syncing .sync-dot {
  background: var(--accent);
}

.user-badge {
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
}

.role-tag {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
}

.user-name {
  font-weight: 600;
  color: var(--text-primary);
}

/* =========================================================
   LOGIN VIEW
   ========================================================= */
.login-wrapper {
  min-height: calc(100vh - 68px);
  display: grid;
  place-items: center;
  padding: 16px 0;
}

.login-card {
  width: 100%;
  max-width: 430px;
  padding: 36px 32px;
  animation: scaleFadeIn 0.42s var(--ease-neu) both;
}

.login-emblem {
  width: 74px;
  height: 74px;
  margin: 0 auto 20px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: var(--accent);
  box-shadow:
    -6px -6px 14px var(--shadow-light),
    6px 6px 14px var(--shadow-dark);
}

.login-title {
  text-align: center;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.login-subtitle {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 26px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.error-banner {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--danger);
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
  animation: shakeIn 0.35s ease;
}

/* =========================================================
   ADMIN HOME: 5 BUTTON-LIKE SECTIONS
   ========================================================= */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.admin-five-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.section-tile {
  padding: 28px 22px;
  border-radius: var(--radius-xl);
  border: none;
  background: var(--surface);
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-primary);
  box-shadow:
    -8px -8px 18px var(--shadow-light),
    8px 8px 18px var(--shadow-dark);
  transition: transform 0.25s var(--ease-neu), box-shadow 0.25s var(--ease-neu);
  animation: fadeSlideUp 0.4s var(--ease-neu) backwards;
}

.section-tile:nth-child(1) { animation-delay: 0.03s; }
.section-tile:nth-child(2) { animation-delay: 0.08s; }
.section-tile:nth-child(3) { animation-delay: 0.13s; }
.section-tile:nth-child(4) { animation-delay: 0.18s; }
.section-tile:nth-child(5) { animation-delay: 0.23s; }

.section-tile.is-active-tile {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow:
    -8px -8px 18px var(--shadow-light),
    8px 8px 18px rgba(74, 108, 247, 0.35);
}

.section-tile.is-active-tile .item-meta,
.section-tile.is-active-tile .tile-status.active {
  color: rgba(255, 255, 255, 0.88);
}

.section-tile.is-active-tile .tile-icon {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.section-tile.is-active-tile:hover {
  background: #3D5FE8;
  transform: translateY(-4px);
  box-shadow:
    -10px -10px 22px var(--shadow-light),
    10px 10px 22px var(--shadow-dark-strong);
}

.section-tile.is-active-tile:active {
  background: #3453D0;
  transform: scale(0.98);
  box-shadow:
    inset 5px 5px 12px var(--shadow-dark),
    inset -5px -5px 12px var(--shadow-light);
}

.tile-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--accent);
}

.tile-title {
  font-size: 1.08rem;
  font-weight: 800;
}

.tile-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tile-status.active {
  color: var(--success);
}

.tile-status.inactive {
  color: var(--text-muted);
}

/* =========================================================
   SUB-NAVIGATION PILLS & LISTS
   ========================================================= */
.neu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.neu-tab {
  padding: 10px 18px;
  border-radius: 13px;
  border: none;
  background: var(--surface);
  color: var(--text-secondary);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow:
    -4px -4px 9px var(--shadow-light),
    4px 4px 9px var(--shadow-dark);
  transition: all 0.22s var(--ease-neu);
}

.neu-tab:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.neu-tab.is-selected {
  color: var(--accent);
  box-shadow:
    inset 4px 4px 8px var(--shadow-dark),
    inset -4px -4px 8px var(--shadow-light);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.list-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.item-card {
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow:
    -6px -6px 14px var(--shadow-light),
    6px 6px 14px var(--shadow-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeSlideUp 0.34s var(--ease-neu) backwards;
  transition: transform 0.22s var(--ease-neu), box-shadow 0.22s var(--ease-neu);
}

.item-card.is-clickable {
  cursor: pointer;
}

.item-card.is-clickable:hover {
  transform: translateY(-3px);
  box-shadow:
    -8px -8px 18px var(--shadow-light),
    8px 8px 18px var(--shadow-dark-strong);
}

.item-card.is-clickable:active {
  transform: scale(0.985);
}

.item-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
}

.item-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

.item-meta {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.country-btn-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.country-pill-btn {
  min-width: 62px;
  padding: 10px 14px;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  border-radius: 12px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.country-pill-btn.ci { color: var(--ci-color); }
.country-pill-btn.kz { color: var(--kz-color); }
.country-pill-btn.oz { color: var(--oz-color); }

.country-count-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* =========================================================
   STAFF PANEL: 3 COUNTRY BUTTONS
   ========================================================= */
.staff-country-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 12px;
}

.staff-country-btn {
  padding: 36px 20px;
  border-radius: var(--radius-xl);
  border: none;
  background: var(--surface);
  font-family: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow:
    -8px -8px 18px var(--shadow-light),
    8px 8px 18px var(--shadow-dark);
  transition: transform 0.25s var(--ease-neu), box-shadow 0.25s var(--ease-neu);
  animation: fadeSlideUp 0.36s var(--ease-neu) backwards;
}

.staff-country-btn:hover:not(:disabled) {
  transform: translateY(-4px);
  box-shadow:
    -10px -10px 22px var(--shadow-light),
    10px 10px 22px var(--shadow-dark-strong);
}

.staff-country-btn:active:not(:disabled) {
  transform: scale(0.97);
  box-shadow:
    inset 5px 5px 12px var(--shadow-dark),
    inset -5px -5px 12px var(--shadow-light);
}

.staff-country-code {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.staff-country-btn.ci .staff-country-code { color: var(--ci-color); }
.staff-country-btn.oz .staff-country-code { color: var(--oz-color); }
.staff-country-btn.kz .staff-country-code { color: var(--kz-color); }

.staff-country-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.staff-country-state {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

/* =========================================================
   12 SQUARE UPLOAD SLOTS GRID
   ========================================================= */
.board-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.slot-square {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  padding: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 0.24s var(--ease-neu), box-shadow 0.24s var(--ease-neu);
  animation: slotPop 0.36s var(--ease-neu) backwards;
}

.slot-square:nth-child(n) {
  animation-delay: calc(var(--slot-i, 0) * 0.03s);
}

.slot-square.is-empty {
  background: var(--surface);
  box-shadow:
    inset 5px 5px 11px var(--shadow-dark),
    inset -5px -5px 11px var(--shadow-light);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  border: 2px dashed rgba(100, 116, 139, 0.24);
}

.slot-square.is-empty:hover:not(.is-locked) {
  border-color: rgba(74, 108, 247, 0.55);
  transform: scale(0.985);
}

.slot-square.is-empty.is-dragover {
  border-color: var(--accent);
  background: rgba(74, 108, 247, 0.06);
}

.slot-square.is-empty.is-locked {
  opacity: 0.48;
  cursor: not-allowed;
}

.slot-square.is-filled {
  background: var(--surface);
  box-shadow:
    -6px -6px 14px var(--shadow-light),
    6px 6px 14px var(--shadow-dark);
}

.slot-square.is-filled:hover {
  transform: translateY(-3px);
  box-shadow:
    -8px -8px 18px var(--shadow-light),
    8px 8px 18px var(--shadow-dark-strong);
}

.slot-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  z-index: 2;
}

.slot-index-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
  color: var(--text-secondary);
}

.slot-comment-dot {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  padding: 3px 7px;
  border-radius: 8px;
}

.slot-preview-box {
  flex: 1;
  min-height: 0;
  margin: 8px 0;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
}

.slot-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slot-file-type-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.slot-filename {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

.slot-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.slot-action-btn {
  padding: 6px 4px;
  font-size: 0.72rem;
  border-radius: 9px;
  font-weight: 700;
}

.slot-plus-circle {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: var(--accent);
  box-shadow:
    -4px -4px 9px var(--shadow-light),
    4px 4px 9px var(--shadow-dark);
}

/* =========================================================
   ADMIN FORMS GRID
   ========================================================= */
.split-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.form-card {
  padding: 22px;
}

.form-card-title {
  font-size: 1.04rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.checkbox-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.neu-check-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 11px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow:
    -3px -3px 7px var(--shadow-light),
    3px 3px 7px var(--shadow-dark);
  user-select: none;
}

.neu-check-pill input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}

/* =========================================================
   CUSTOMER FILE CARDS
   ========================================================= */
.customer-files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.customer-file-card {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow:
    -6px -6px 14px var(--shadow-light),
    6px 6px 14px var(--shadow-dark);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeSlideUp 0.35s var(--ease-neu) backwards;
}

.customer-file-thumb {
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.customer-file-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-box {
  padding: 10px 12px;
  border-radius: 11px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  word-break: break-word;
}

.badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mini-badge {
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-secondary);
}

/* =========================================================
   MODAL & TOASTS
   ========================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(208, 215, 226, 0.72);
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.modal-card {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  animation: scaleFadeIn 0.24s var(--ease-neu);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.modal-title {
  font-size: 1.12rem;
  font-weight: 800;
}

.preview-media {
  width: 100%;
  max-height: 420px;
  border-radius: 14px;
  object-fit: contain;
  background: #D5DCE6;
}

.preview-text {
  padding: 14px;
  border-radius: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  max-height: 320px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  unicode-bidi: plaintext;
}

.toast-container {
  position: fixed;
  bottom: 20px;
  inset-inline-end: 20px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 340px;
}

.toast {
  padding: 13px 18px;
  border-radius: 14px;
  background: var(--surface);
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow:
    -6px -6px 14px var(--shadow-light),
    6px 6px 14px var(--shadow-dark-strong);
  animation: fadeSlideUp 0.25s var(--ease-neu);
}

.toast.is-error { color: var(--danger); }
.toast.is-success { color: var(--success); }

.empty-state {
  padding: 36px 22px;
  text-align: center;
  color: var(--text-secondary);
  font-weight: 600;
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slotPop {
  from { opacity: 0; transform: scale(0.93) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shakeIn {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

@keyframes pulseLive {
  0% { box-shadow: 0 0 0 0 rgba(36, 155, 115, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(36, 155, 115, 0); }
  100% { box-shadow: 0 0 0 0 rgba(36, 155, 115, 0); }
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */
@media (max-width: 960px) {
  .split-layout {
    grid-template-columns: 1fr;
  }
  .slots-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .app-shell {
    padding: 12px 12px 36px;
    gap: 16px;
  }
  .staff-country-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .slots-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .top-bar {
    padding: 12px 14px;
  }
  .login-card {
    padding: 28px 20px;
  }
}
