:root {
  --bg: #f3f5f9;
  --panel: #ffffff;
  --text: #1c2333;
  --muted: #6b7489;
  --line: #e3e7ef;
  --primary: #2563eb;
  --primary-soft: #e8efff;
  --success: #16a34a;
  --success-soft: #e7f7ed;
  --danger: #dc2626;
  --danger-soft: #fdecec;
  --warn: #d97706;
  --warn-soft: #fff4e0;
  --side: #111827;
  --side-text: #cbd2e1;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
  --surface-2: #f7f8fb;
  --hover: #fafbfd;
  --surface-3: #eef0f4;
  --input-border: #d5dbe6;
  --label: #3b4458;
  --axis: #cfd5e1;
  --side-hover: #1f2937;
  --side-strong: #ffffff;
  --on-primary: #ffffff;
  --r-sm: 9px;
  --r-nav: 10px;
  --font: 'Cairo';
  color-scheme: light;
}

/* ===== الوضع الداكن ===== */
:root[data-theme="dark"] {
  --bg: #0e131b;
  --panel: #161d29;
  --text: #e5e9f0;
  --muted: #97a1b3;
  --line: #273041;
  --primary: #4d84f5;
  --primary-soft: #1a2a4a;
  --success: #2fbf66;
  --success-soft: #122c1e;
  --danger: #ef5b5b;
  --danger-soft: #3a191c;
  --warn: #f0a13a;
  --warn-soft: #36270f;
  --side: #0a0e14;
  --side-text: #b7c0d0;
  --shadow: 0 1px 3px rgba(0, 0, 0, .4);
  --surface-2: #1c2433;
  --hover: #1a2231;
  --surface-3: #232c3c;
  --input-border: #334058;
  --label: #c2cad8;
  --axis: #3a465c;
  color-scheme: dark;
}
:root[data-theme="dark"] .modal-back { background: rgba(0, 0, 0, .6); }
:root[data-theme="dark"] .table th { color: var(--muted); }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font, 'Cairo'), Tahoma, 'Segoe UI', sans-serif;
  background: var(--bg); color: var(--text); font-size: 15px;
}
button, input, select, textarea { font-family: inherit; font-size: 14px; }

.app { display: flex; height: 100vh; overflow: hidden; }

/* ===== Sidebar ===== */
.sidebar {
  width: 230px; flex-shrink: 0; background: var(--side); color: var(--side-text);
  display: flex; flex-direction: column; padding: 14px 10px; gap: 4px;
}
.brand { display: flex; gap: 10px; align-items: center; padding: 6px 8px 16px; border-bottom: 1px solid var(--side-hover); margin-bottom: 8px; }
.brand-logo { font-size: 28px; }
.brand-name { color: var(--side-strong); font-weight: 800; font-size: 16px; line-height: 1.3; }
.brand-sub { font-size: 11px; opacity: .7; }
.sidebar a {
  display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--r-nav);
  cursor: pointer; font-weight: 600; font-size: 14px; user-select: none;
}
.sidebar a:hover { background: var(--side-hover); color: var(--side-strong); }
.sidebar a.active { background: var(--side-active, var(--primary)); color: var(--side-active-text, var(--on-primary)); }
.sidebar-foot { margin-top: auto; font-size: 12px; padding: 8px; }
.types-mini { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.types-mini span { background: var(--side-hover); padding: 2px 8px; border-radius: 20px; font-size: 11px; }
.clock { opacity: .8; }

main { flex: 1; overflow: auto; padding: 18px 22px; }

/* ===== Generic ===== */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; margin: 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-bottom: 14px; }
.card h2 { font-size: 17px; margin: 0 0 12px; }
.card h3 { font-size: 15px; margin: 0 0 10px; }
.muted { color: var(--muted); font-size: 13px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

.btn {
  border: 1px solid var(--line); background: var(--panel); color: var(--text); padding: 8px 14px;
  border-radius: var(--r-sm); cursor: pointer; font-weight: 600; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
}
.btn:hover { filter: brightness(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn-success { background: var(--success); border-color: var(--success); color: #fff; }
[data-theme="dark"] .btn-success { color: #06230f; } /* الأخضر الفاتح في الليلي: كلام غامق (الأبيض مش باين) */
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-ghost-danger { color: var(--danger); }
.btn-sm { padding: 4px 10px; font-size: 13px; border-radius: 7px; }
.btn-lg { padding: 13px 18px; font-size: 17px; border-radius: 11px; }
.btn-block { width: 100%; }

label.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--label); }
.input, input[type=text], input[type=number], input[type=date], input[type=tel], input[type=search], input[type=password], select, textarea {
  border: 1px solid var(--input-border); border-radius: var(--r-sm); padding: 8px 10px; background: var(--panel); color: var(--text); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary-soft); border-color: var(--primary); }
.check { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; font-weight: 600; font-size: 14px; }
.check input { width: 17px; height: 17px; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 700; background: var(--primary-soft); color: var(--primary); }
.badge-success { background: var(--success-soft); color: color-mix(in srgb, var(--success) 75%, var(--text)); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-gray { background: var(--surface-3); color: var(--muted); }

table.table { width: 100%; border-collapse: collapse; background: var(--panel); }
.table th, .table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: right; font-size: 14px; vertical-align: middle; }
.table th { background: var(--surface-2); color: var(--muted); font-size: 13px; font-weight: 700; position: sticky; top: 0; }
.table tr:hover td { background: var(--hover); }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.empty { text-align: center; color: var(--muted); padding: 30px; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: var(--panel); padding: 5px 12px; border-radius: 20px; cursor: pointer;
  font-size: 13px; font-weight: 600; user-select: none;
}
.chip.active { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }

/* ===== POS ===== */
.pos { display: grid; grid-template-columns: 1fr 400px; gap: 14px; height: calc(100vh - 36px); }
.pos-products { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.pos-toolbar { display: flex; gap: 10px; align-items: center; }
.pos-toolbar input { font-size: 16px; padding: 11px 14px; }
.mode-toggle { display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.mode-toggle button { border: 0; background: transparent; padding: 8px 14px; border-radius: 8px; cursor: pointer; font-weight: 700; }
.mode-toggle button.active { background: var(--primary); color: var(--on-primary); }
.pos-grid { flex: 1; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; align-content: start; padding: 2px; }
.p-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px; cursor: pointer;
  display: flex; flex-direction: column; gap: 4px; min-height: 108px; transition: .12s;
}
.p-card:hover { border-color: var(--primary); box-shadow: 0 4px 12px rgba(37, 99, 235, .12); transform: translateY(-1px); }
.p-card .p-name { font-weight: 700; font-size: 14px; line-height: 1.4; }
.p-card .p-price { color: var(--primary); font-weight: 800; margin-top: auto; }
.p-card .p-meta { font-size: 12px; color: var(--muted); }
.p-card.out { opacity: .55; }

.cart { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; min-height: 0; box-shadow: var(--shadow); }
.cart-head { padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.cart-head h2 { margin: 0; font-size: 16px; }
.cart-lines { flex: 1; overflow: auto; }
.c-line { padding: 10px 14px; border-bottom: 1px dashed var(--line); display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; }
.c-line .c-name { font-weight: 700; font-size: 14px; }
.c-line .c-sub { font-size: 12px; color: var(--muted); }
.c-line .c-total { font-weight: 800; text-align: left; }
.qty-box { display: flex; align-items: center; gap: 4px; }
.qty-box button { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; font-weight: 800; }
.qty-box input { width: 62px; text-align: center; padding: 4px; }
.c-actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.link { color: var(--primary); cursor: pointer; font-weight: 700; font-size: 13px; }
.cart-foot { border-top: 1px solid var(--line); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; background: var(--hover); border-radius: 0 0 var(--radius) var(--radius); }
.sum-row { display: flex; justify-content: space-between; font-size: 14px; }
.sum-row.total { font-size: 22px; font-weight: 800; color: var(--text); }
.disc-box { display: flex; gap: 6px; align-items: center; }
.disc-box input { width: 90px; padding: 5px 8px; }
.disc-box select { width: 70px; padding: 5px; }

/* ===== Shop types cards ===== */
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.type-card {
  border: 2px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; background: var(--panel); position: relative;
  display: flex; flex-direction: column; gap: 4px; transition: .12s; user-select: none;
}
.type-card:hover { border-color: #9db8f5; }
.type-card.active { border-color: var(--primary); background: var(--primary-soft); }
.type-card.active::after { content: '✔'; position: absolute; top: 8px; left: 10px; color: var(--primary); font-weight: 800; }
.type-card .t-icon { font-size: 28px; }
.type-card .t-name { font-weight: 800; }
.type-card .t-feat { font-size: 11px; color: var(--muted); line-height: 1.6; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.feat-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: flex; gap: 8px; align-items: flex-start; }
.feat-item.on { background: var(--success-soft); border-color: #b9e5c7; }
.feat-item .f-name { font-weight: 700; font-size: 14px; }
.feat-item .f-desc { font-size: 12px; color: var(--muted); }

.welcome { background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff; border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; }
.welcome h2 { margin: 0 0 6px; }

/* ===== Stats ===== */
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.stat .s-label { color: var(--muted); font-size: 13px; font-weight: 600; }
.stat .s-value { font-size: 22px; font-weight: 800; margin-top: 4px; }
.bar { height: 8px; background: var(--surface-3); border-radius: 6px; overflow: hidden; }
.bar > div { height: 100%; background: var(--primary); }

/* ===== Modal ===== */
.modal-back { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.modal { background: var(--panel); border-radius: 14px; width: 560px; max-width: 100%; max-height: 92vh; display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.modal.wide { width: 860px; }
.modal-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-x { border: 0; background: transparent; font-size: 22px; cursor: pointer; color: var(--muted); }
.modal-body { padding: 16px 18px; overflow: auto; display: flex; flex-direction: column; gap: 12px; }
.modal-foot { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-start; }
.section-title { font-weight: 800; font-size: 14px; color: var(--primary); border-bottom: 1px solid var(--line); padding-bottom: 4px; margin-top: 4px; }

.variant-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.variant-pick .vp { border: 2px solid var(--line); border-radius: 10px; padding: 8px; cursor: pointer; text-align: center; }
.variant-pick .vp.active { border-color: var(--primary); background: var(--primary-soft); }
.variant-pick .vp.out { opacity: .45; }
.pay-methods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pay-methods .pm { border: 2px solid var(--line); border-radius: 10px; padding: 10px; text-align: center; cursor: pointer; font-weight: 700; }
.pay-methods .pm.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.big-total { text-align: center; font-size: 34px; font-weight: 800; color: var(--primary); }

/* ===== Toast ===== */
#toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.toast-item { background: #111827; color: #fff; padding: 10px 18px; border-radius: 10px; font-weight: 600; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); animation: tin .2s; }
.toast-item.err { background: var(--danger); }
.toast-item.ok { background: var(--success); }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1100px) {
  .pos { grid-template-columns: 1fr 340px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .sidebar { width: 64px; }
  .sidebar a { font-size: 0; justify-content: center; }
  .sidebar a span { font-size: 20px; }
  .brand > div:last-child, .sidebar-foot { display: none; }
  .pos { grid-template-columns: 1fr; height: auto; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ===== Dropdown (search results) ===== */
.dropdown { position: absolute; top: 100%; right: 0; left: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 25px rgba(0, 0, 0, .12); z-index: 5; max-height: 280px; overflow: auto; }
.dropdown:empty { display: none; }
.dd-item { padding: 9px 12px; cursor: pointer; border-bottom: 1px solid var(--line); font-size: 14px; }
.dd-item:hover { background: var(--primary-soft); }

/* ===== User box & login ===== */
.user-box { display: flex; justify-content: space-between; align-items: center; background: var(--side-hover); padding: 8px 10px; border-radius: var(--r-sm); margin-bottom: 8px; color: var(--side-strong); gap: 8px; }
.user-box .link { color: var(--side-link, #93b4ff); }
.login-back { position: fixed; inset: 0; background: linear-gradient(135deg, #1e3a8a, #6d28d9); display: flex; align-items: center; justify-content: center; z-index: 80; padding: 20px; }
.login-box { background: var(--panel); border-radius: 18px; padding: 28px; width: 440px; max-width: 100%; display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; box-shadow: 0 25px 60px rgba(0, 0, 0, .3); }
.login-box h2 { margin: 0; }
.login-users { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; width: 100%; }
.login-user { border: 2px solid var(--line); border-radius: 12px; padding: 12px 6px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; align-items: center; }
.login-user:hover { border-color: var(--primary); background: var(--primary-soft); }

/* ===== Charts ===== */
.chart { position: relative; padding-inline-start: 46px; }
.chart-grid { position: absolute; inset-inline: 0; top: 0; height: var(--h); display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.chart-grid .gl { border-top: 1px dashed var(--line); height: 0; position: relative; }
.chart-grid .gl:last-child { border-top: 1px solid var(--axis); }
.chart-grid .gl span { position: absolute; inset-inline-start: 0; top: -9px; font-size: 11px; color: var(--muted); background: var(--panel); padding-inline-end: 4px; }
.chart-bars { display: flex; align-items: flex-end; height: var(--h); position: relative; }
.chart-bars .cb { flex: 1; height: 100%; display: flex; align-items: flex-end; padding: 0 1px; cursor: default; }
.chart-bars .bar-fill { width: 100%; max-width: 38px; margin: 0 auto; background: var(--primary); border-radius: 4px 4px 0 0; min-height: 1px; transition: opacity .1s; }
.chart-bars .cb:hover .bar-fill { opacity: .75; }
.chart-x { display: flex; margin-top: 4px; }
.chart-x span { flex: 1; text-align: center; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: visible; }
#chartTip { position: fixed; z-index: 200; background: #111827; color: #fff; padding: 7px 10px; border-radius: 8px; font-size: 12px; pointer-events: none; line-height: 1.6; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); display: none; }

/* ===== Dashboard alerts & offers ===== */
.alert-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 9px; background: var(--surface-2); margin-bottom: 6px; cursor: pointer; font-weight: 600; font-size: 14px; }
.alert-row:hover { filter: brightness(.97); }
.alert-row.danger { background: var(--danger-soft); color: var(--danger); }
.alert-row.warn { background: var(--warn-soft); color: var(--warn); }
.alert-row.success { background: var(--success-soft); color: var(--success); }
.offer-tag { font-size: 12px; color: var(--success); font-weight: 700; }

/* ===== صور المنتجات ===== */
.p-card .p-img { width: 100%; height: 90px; object-fit: contain; border-radius: 8px; background: var(--surface-2); margin-bottom: 4px; }
.thumb { object-fit: cover; border-radius: 6px; border: 1px solid var(--line); flex-shrink: 0; }
.img-field { display: flex; gap: 12px; align-items: center; }
.img-box { width: 84px; height: 84px; border: 2px dashed var(--line); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 28px; overflow: hidden; background: var(--surface-2); flex-shrink: 0; }
.img-box img { width: 100%; height: 100%; object-fit: contain; }
.img-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }

/* ===== عرض الإيصال والتقارير داخل النوافذ ===== */
.day-report { border: 1px solid var(--line); border-radius: 10px; padding: 14px; font-size: 14px; max-width: 460px; margin: 0 auto; width: 100%; background: var(--panel); }
.day-report h2 { text-align: center; margin: 4px 0; font-size: 18px; }
.day-report .c { text-align: center; }
.day-report hr { border: 0; border-top: 1px dashed var(--line); margin: 8px 0; }
.day-report table { width: 100%; border-collapse: collapse; }
.day-report td, .day-report th { padding: 3px 0; text-align: right; }
.day-report .l { text-align: left; }
.day-report .b { font-weight: 800; }
.day-report .big { font-size: 16px; }
.day-report .inv-bc { height: 40px; width: 60%; margin: 6px auto 0; }
:root[data-theme="dark"] .day-report .inv-bc svg { background: #fff; }

/* ===== صفحة الشرح ===== */
.help-item summary { cursor: pointer; font-weight: 800; font-size: 16px; list-style: none; }
.help-item summary::-webkit-details-marker { display: none; }
.help-item summary::before { content: '◀ '; color: var(--muted); font-size: 12px; }
.help-item[open] summary::before { content: '▼ '; }
.help-body { margin-top: 10px; line-height: 1.9; }
.help-body li { margin-bottom: 4px; }

/* ===== شريط تنبيه الترخيص ===== */
.lic-banner { position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 60; background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn); padding: 8px 16px; border-radius: 10px; font-weight: 700; box-shadow: var(--shadow); }

/* ===== إضافات 1.4: هدف البيع في شاشة البيع ===== */
.target-pill { display: flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 13px; padding: 4px 10px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--line); }

/* ===== إضافات 1.6: شريط وضع التدريب ===== */
#trainBar { position: fixed; bottom: 14px; left: 14px; z-index: 2500; background: #f59e0b; color: #111; font-weight: 800; padding: 8px 16px; border-radius: 12px; display: flex; gap: 10px; align-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
body.training .app { outline: 4px solid #f59e0b; outline-offset: -4px; }

/* ===== 👆 وضع شاشة اللمس: أزرار وصور وخطوط أكبر عشان الصباع ===== */
body.touch .pos-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
body.touch .p-card { min-height: 150px; padding: 14px; border-radius: 16px; }
body.touch .p-card:hover { transform: none; }
body.touch .p-card:active { transform: scale(.97); border-color: var(--primary); }
body.touch .p-card .p-img { height: 130px; }
body.touch .p-card .p-name { font-size: 17px; }
body.touch .p-card .p-price { font-size: 19px; }
body.touch .pos-toolbar input { font-size: 19px; padding: 15px 16px; }
body.touch .pos-toolbar .btn, body.touch .mode-toggle button { min-height: 50px; min-width: 50px; font-size: 18px; }
body.touch .c-line { padding: 14px; }
body.touch .c-line .c-name { font-size: 17px; }
body.touch .qty-box button { width: 46px; height: 46px; font-size: 22px; border-radius: 10px; }
body.touch .qty-box input { width: 76px; font-size: 18px; padding: 8px; }
body.touch .cart-head .btn, body.touch .cart-foot .btn { min-height: 48px; font-size: 16px; }
body.touch .cart-foot .btn-lg { min-height: 64px; font-size: 20px; }
body.touch .link { font-size: 16px; padding: 6px 4px; }
body.touch .pay-methods .pm { padding: 18px 10px; font-size: 18px; }
body.touch .modal .btn { min-height: 48px; font-size: 16px; }
body.touch .modal input, body.touch .modal select { min-height: 46px; font-size: 17px; }
body.touch .nav-item { padding-top: 13px; padding-bottom: 13px; }

/* ===== Meta Origin: حول البرنامج (js/about.js) ===== */
.mo-company { display: flex; flex-wrap: wrap; padding: 0 !important; overflow: hidden; }
.mo-company-logo { background: #10131a; padding: 28px 34px; text-align: center; min-width: 220px; }
.mo-company-logo img { width: 110px; height: 110px; }
.mo-company-name { color: #fff; font-size: 22px; font-weight: 700; margin-top: 10px; }
.mo-company-sub { color: #8a93a6; font-size: 11px; letter-spacing: 2px; }
.mo-company-text { flex: 1; padding: 24px 28px; min-width: 300px; line-height: 1.9; }
.mo-app { display: flex; align-items: center; gap: 10px; }
.mo-app img { width: 42px; height: 42px; border-radius: 10px; }
.mo-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.mo-member { padding: 0 !important; overflow: hidden; }
.mo-member-head { background: #14161c; padding: 20px; display: flex; align-items: center; gap: 18px; }
.mo-member-head img { width: 100px; height: 100px; border-radius: 50%; border: 3px solid #3d5afe; cursor: pointer; object-fit: cover; }
.mo-role { color: #3ddc97; font-size: 12px; font-weight: 600; }
.mo-name { color: #fff; font-size: 22px; font-weight: 700; }
.mo-name-en { color: #a9b1c2; }
.mo-bio { padding: 12px 20px 0; line-height: 1.9; color: var(--muted); }
.mo-phones-title { padding: 6px 20px 0; font-weight: 700; }
.mo-phone { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 20px; padding: 6px 12px; border-radius: 10px; background: var(--surface-2, #f6f8fa); font-weight: 600; }
.mo-member .mo-phone:last-child { margin-bottom: 18px; }
.mo-wa { background: #128C7E !important; border-color: #128C7E !important; color: #fff !important; text-decoration: none; }
.mo-zoom { position: fixed; inset: 0; background: rgba(0, 0, 0, .75); display: flex; align-items: center; justify-content: center; z-index: 9999; cursor: pointer; }
.mo-zoom img { max-width: min(660px, 92vw); max-height: 92vh; border-radius: 12px; }

/* أيقونة البرنامج (appIcon) */
.brand-logo.app-icon { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; }
