/* ============================================
   ASIRA — Professional HTML/CSS Illustrations
   Pure HTML + real Arabic web fonts → no SVG text clipping,
   no overlap, sharp at any resolution.
============================================ */

:root {
  --ill-navy: #0B2447;
  --ill-navy-2: #19376D;
  --ill-blue: #576CBC;
  --ill-teal: #1AA39A;
  --ill-teal-dk: #0E7C75;
  --ill-purple: #6E3FF3;
  --ill-purple-lt: #A78BFA;
  --ill-pink: #EC4899;
  --ill-orange: #FB923C;
  --ill-green: #22C55E;
  --ill-ink: #0B2447;
  --ill-ink-2: #475569;
  --ill-ink-3: #94A3B8;
  --ill-bg: #FBFDFF;
  --ill-soft: #F4F8FC;
  --ill-line: #E5ECF2;
}

/* ===== Generic "device" frame ====================================== */
.ill {
  position: relative;
  background: linear-gradient(135deg, #1F2D4D 0%, #0B2447 60%, #19376D 100%);
  border-radius: 18px;
  padding: 8px;
  box-shadow:
    0 50px 100px -20px rgba(11, 36, 71, .35),
    0 30px 60px -20px rgba(11, 36, 71, .20),
    0 0 0 1px rgba(255, 255, 255, .06) inset;
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', 'Inter', sans-serif;
}

.ill--purple {
  background: linear-gradient(135deg, #1B1340 0%, #3B1F8B 60%, #6E3FF3 100%);
  box-shadow:
    0 50px 100px -20px rgba(110, 63, 243, .45),
    0 30px 60px -20px rgba(11, 36, 71, .20),
    0 0 0 1px rgba(255, 255, 255, .10) inset;
}
.ill--whatsapp { background: linear-gradient(135deg, #075E54 0%, #128C7E 60%, #25D366 100%); }
.ill--soft { background: linear-gradient(135deg, #E5ECF2 0%, #C9D6E5 100%); box-shadow: 0 30px 60px -20px rgba(11,36,71,.20); }

/* Browser chrome */
.ill__chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px 8px;
  direction: ltr;
}
.ill__chrome .dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.ill__chrome .dot.r { background: #FF5F57; }
.ill__chrome .dot.y { background: #FEBC2E; }
.ill__chrome .dot.g { background: #28C840; }
.ill__chrome .url {
  margin-left: auto;
  padding: 3px 12px;
  background: rgba(255, 255, 255, .10);
  color: rgba(255, 255, 255, .72);
  border-radius: 6px;
  font-size: 10.5px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: .2px;
}

.ill__screen {
  background: var(--ill-bg);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

/* ============================================
   SCENE 1: Admin dashboard (hero / systems / medmax)
============================================ */
.scene-admin {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 380px;
  direction: ltr;
}
.scene-admin .side {
  background: linear-gradient(180deg, #0B2447 0%, #19376D 100%);
  padding: 14px 10px;
  color: #fff;
  display: flex; flex-direction: column;
  gap: 4px;
}
.ill--purple .scene-admin .side {
  background: linear-gradient(180deg, #1B1340 0%, #3B1F8B 100%);
}
.scene-admin .brand {
  display: flex; align-items: center; gap: 9px;
  padding: 4px 8px 14px;
  font-weight: 800; font-size: 13.5px;
}
.scene-admin .brand .mk {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ill-teal), var(--ill-teal-dk));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px;
}
.ill--purple .scene-admin .brand .mk {
  background: linear-gradient(135deg, var(--ill-purple), var(--ill-purple-lt));
}
.scene-admin .org {
  display: flex; align-items: center; gap: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, .06);
  border-radius: 9px;
  margin-bottom: 8px;
}
.scene-admin .org .av {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, #1AA39A, #0E7C75);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800;
  flex-shrink: 0;
}
.scene-admin .org b {
  display: block;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
}
.scene-admin .org span {
  display: block;
  color: rgba(255, 255, 255, .55);
  font-size: 9.5px;
}
.scene-admin .nav-h {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: rgba(255, 255, 255, .35);
  padding: 8px 10px 4px;
  font-weight: 700;
}
.scene-admin .nv {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .60);
  font-weight: 500;
}
.scene-admin .nv .ic {
  width: 13px; height: 13px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .18);
}
.scene-admin .nv.on {
  background: rgba(26, 163, 154, .22);
  color: #fff;
  font-weight: 700;
}
.scene-admin .nv.on .ic { background: var(--ill-teal); }
.ill--purple .scene-admin .nv.on { background: rgba(167, 139, 250, .22); }
.ill--purple .scene-admin .nv.on .ic { background: var(--ill-purple-lt); }
.scene-admin .nv .pill {
  margin-left: auto;
  background: var(--ill-teal);
  color: #fff;
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 800;
}
.ill--purple .scene-admin .nv .pill { background: var(--ill-purple-lt); }
.scene-admin .live {
  margin-top: auto;
  display: flex; align-items: center; gap: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, .06);
  border-radius: 9px;
}
.scene-admin .live .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ill-green);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .30);
  animation: pulseDot 1.6s infinite;
}
@keyframes pulseDot {
  0%,100% { box-shadow: 0 0 0 4px rgba(34, 197, 94, .30); }
  50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
}
.scene-admin .live b { color: #fff; font-size: 10.5px; display: block; }
.scene-admin .live span { color: rgba(255, 255, 255, .55); font-size: 9.5px; display: block; }

.scene-admin .main {
  padding: 12px;
  display: flex; flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.scene-admin .topbar {
  display: flex; align-items: center; gap: 8px;
  background: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(11, 36, 71, .06);
}
.scene-admin .topbar .search {
  flex: 1;
  height: 22px;
  background: #F1F5F9;
  border-radius: 6px;
  display: flex; align-items: center; padding: 0 10px;
  gap: 6px;
  font-size: 10px;
  color: var(--ill-ink-3);
}
.scene-admin .topbar .search::before {
  content: '';
  width: 9px; height: 9px;
  border: 1.5px solid var(--ill-ink-3);
  border-radius: 50%;
}
.scene-admin .topbar .icbtn {
  width: 22px; height: 22px;
  background: #F1F5F9;
  border-radius: 6px;
  position: relative;
}
.scene-admin .topbar .icbtn.bell::after {
  content: '';
  position: absolute;
  top: 3px; right: 3px;
  width: 6px; height: 6px;
  background: #EF4444;
  border-radius: 50%;
}
.scene-admin .topbar .av {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ill-teal), var(--ill-navy));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800;
}
.ill--purple .scene-admin .topbar .av {
  background: linear-gradient(135deg, var(--ill-purple-lt), #1B1340);
}

.scene-admin .hello { font-size: 14px; font-weight: 800; color: var(--ill-navy); line-height: 1.2; }
.scene-admin .hello-sub { font-size: 10px; color: #6B7891; margin-top: 1px; }
.ill--purple .scene-admin .hello { color: #1B1340; }

/* KPI cards */
.scene-admin .kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.scene-admin .kpi {
  position: relative;
  background: #fff;
  border-radius: 10px;
  padding: 11px 12px;
  box-shadow: 0 1px 3px rgba(11, 36, 71, .06);
  overflow: hidden;
}
.scene-admin .kpi .ic {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--ill-teal), var(--ill-teal-dk));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
}
.scene-admin .kpi .ic.blue { background: linear-gradient(135deg, var(--ill-blue), var(--ill-navy-2)); }
.scene-admin .kpi .ic.orange { background: linear-gradient(135deg, var(--ill-orange), #EA580C); }
.scene-admin .kpi .ic.purple { background: linear-gradient(135deg, var(--ill-purple-lt), var(--ill-purple)); }
.scene-admin .kpi .ic.pink { background: linear-gradient(135deg, #F472B6, var(--ill-pink)); }
.scene-admin .kpi .lbl { font-size: 9.5px; color: #6B7891; margin-bottom: 2px; }
.scene-admin .kpi .val {
  font-size: 17px; font-weight: 800;
  color: var(--ill-navy);
  letter-spacing: -.3px;
  line-height: 1.1;
}
.ill--purple .scene-admin .kpi .val { color: #1B1340; }
.scene-admin .kpi .delta {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(34, 197, 94, .14);
  color: #15803D;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.scene-admin .kpi .delta.blue { background: rgba(87, 108, 188, .16); color: #19376D; }
.scene-admin .kpi .delta.orange { background: rgba(251, 146, 60, .16); color: #C2410C; }
.scene-admin .kpi .delta.purple { background: rgba(110, 63, 243, .14); color: #5B2DD9; }

/* Chart card */
.scene-admin .card-chart {
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(11, 36, 71, .06);
}
.scene-admin .card-chart .head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.scene-admin .card-chart .head h4 {
  margin: 0; font-size: 12px; font-weight: 800;
  color: var(--ill-navy);
}
.ill--purple .scene-admin .card-chart .head h4 { color: #1B1340; }
.scene-admin .card-chart .head small {
  font-size: 9.5px; color: var(--ill-ink-3);
}
.scene-admin .legend { display: flex; gap: 12px; font-size: 9.5px; color: var(--ill-ink-2); }
.scene-admin .legend .lg { display: inline-flex; align-items: center; gap: 5px; }
.scene-admin .legend .lg::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--c, var(--ill-teal));
}

/* Bar chart (HTML) */
.scene-admin .bars {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
  gap: 6px;
  height: 110px;
  padding-top: 8px;
  position: relative;
}
.scene-admin .bars::before,
.scene-admin .bars::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: #F1F5F9;
}
.scene-admin .bars::before { top: 33%; }
.scene-admin .bars::after { top: 66%; }
.scene-admin .bars .bar {
  background: linear-gradient(180deg, var(--ill-teal), var(--ill-teal-dk));
  border-radius: 4px 4px 0 0;
  position: relative;
  z-index: 1;
}
.scene-admin .bars .bar.b { background: linear-gradient(180deg, var(--ill-blue), var(--ill-navy-2)); }
.scene-admin .bars .bar.p { background: linear-gradient(180deg, var(--ill-purple-lt), var(--ill-purple)); }
.scene-admin .bars .bar.o { background: linear-gradient(180deg, #FBA86C, var(--ill-orange)); }

/* Line chart */
.scene-admin .line-wrap {
  position: relative;
  height: 110px;
  padding-top: 6px;
}
.scene-admin .line-wrap svg { width: 100%; height: 100%; display: block; }

/* Bottom list/donut row */
.scene-admin .row2 {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 8px;
}
.scene-admin .list {
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 1px 3px rgba(11, 36, 71, .06);
}
.scene-admin .list .head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.scene-admin .list .head h4 {
  margin: 0; font-size: 11.5px; font-weight: 800; color: var(--ill-navy);
}
.scene-admin .list .head a {
  font-size: 9.5px; font-weight: 700;
  color: var(--ill-teal);
  text-decoration: none;
}
.ill--purple .scene-admin .list .head a { color: var(--ill-purple); }
.scene-admin .list .item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px;
  background: #FBFDFF;
  border-radius: 7px;
  margin-bottom: 4px;
}
.scene-admin .list .item:last-child { margin-bottom: 0; }
.scene-admin .list .item .av {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ill-teal), var(--ill-navy));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 9.5px; font-weight: 800;
  flex-shrink: 0;
}
.scene-admin .list .item .av.b { background: linear-gradient(135deg, var(--ill-blue), var(--ill-navy-2)); }
.scene-admin .list .item .av.p { background: linear-gradient(135deg, var(--ill-purple-lt), var(--ill-purple)); }
.scene-admin .list .item .av.o { background: linear-gradient(135deg, var(--ill-orange), #EA580C); }
.scene-admin .list .item .meta { line-height: 1.25; min-width: 0; flex: 1; }
.scene-admin .list .item .meta b {
  display: block;
  font-size: 10.5px; font-weight: 700;
  color: var(--ill-navy);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.scene-admin .list .item .meta span {
  font-size: 9px; color: var(--ill-ink-3);
}
.scene-admin .list .item .tag {
  background: rgba(34, 197, 94, .14);
  color: #15803D;
  font-size: 9px; font-weight: 800;
  padding: 3px 6px;
  border-radius: 5px;
  flex-shrink: 0;
}
.scene-admin .list .item .tag.o { background: rgba(251, 146, 60, .16); color: #C2410C; }
.scene-admin .list .item .tag.p { background: rgba(110, 63, 243, .14); color: #5B2DD9; }

/* Progress card */
.scene-admin .progress-card {
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(11, 36, 71, .06);
}
.scene-admin .progress-card h4 {
  margin: 0 0 10px; font-size: 11.5px; font-weight: 800;
  color: var(--ill-navy);
}
.scene-admin .progress-card .row {
  margin-bottom: 10px;
  font-size: 10px;
}
.scene-admin .progress-card .row:last-child { margin-bottom: 0; }
.scene-admin .progress-card .lbl-row {
  display: flex; justify-content: space-between;
  margin-bottom: 5px;
  color: var(--ill-ink-2);
}
.scene-admin .progress-card .lbl-row b { color: var(--ill-navy); font-weight: 700; }
.scene-admin .progress-card .track {
  height: 6px; background: #F1F5F9;
  border-radius: 3px; overflow: hidden;
}
.scene-admin .progress-card .fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--ill-teal), var(--ill-teal-dk));
}
.scene-admin .progress-card .fill.b { background: linear-gradient(90deg, var(--ill-blue), var(--ill-navy-2)); }
.scene-admin .progress-card .fill.p { background: linear-gradient(90deg, var(--ill-purple-lt), var(--ill-purple)); }
.scene-admin .progress-card .fill.o { background: linear-gradient(90deg, #FBA86C, var(--ill-orange)); }


/* ============================================
   SCENE 2: Website preview (Services - Websites)
============================================ */
.scene-site {
  background: linear-gradient(180deg, #FBFDFF 0%, #F4F8FC 100%);
  min-height: 380px;
  display: flex; flex-direction: column;
  direction: rtl;
}
.scene-site .nav {
  display: flex; align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid var(--ill-line);
  background: #fff;
}
.scene-site .nav .logo {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--ill-teal), var(--ill-teal-dk));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px;
  margin-left: 12px;
}
.scene-site .nav .logo-text {
  font-size: 13px; font-weight: 800; color: var(--ill-navy);
}
.scene-site .nav .links {
  display: flex; gap: 18px; margin-right: auto;
  font-size: 11px; color: var(--ill-ink-2);
}
.scene-site .nav .links .on { color: var(--ill-teal); font-weight: 700; }
.scene-site .nav .cta {
  background: linear-gradient(135deg, var(--ill-teal), var(--ill-teal-dk));
  color: #fff; font-size: 10.5px; font-weight: 700;
  padding: 6px 14px; border-radius: 7px;
}
.scene-site .hero-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 24px 22px 18px;
  align-items: center;
}
.scene-site .hero-text .badge {
  display: inline-block;
  background: rgba(26, 163, 154, .12);
  color: var(--ill-teal-dk);
  font-size: 9.5px; font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.scene-site .hero-text h2 {
  margin: 0 0 8px;
  font-size: 19px; font-weight: 800;
  color: var(--ill-navy);
  line-height: 1.25;
}
.scene-site .hero-text h2 .accent { color: var(--ill-teal); }
.scene-site .hero-text p {
  margin: 0 0 12px;
  font-size: 11px; color: var(--ill-ink-2);
  line-height: 1.5;
}
.scene-site .hero-text .btns { display: flex; gap: 7px; }
.scene-site .hero-text .btns .b1 {
  background: var(--ill-teal); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 6px 12px; border-radius: 7px;
}
.scene-site .hero-text .btns .b2 {
  background: #fff; color: var(--ill-navy);
  font-size: 10px; font-weight: 700;
  padding: 6px 12px; border-radius: 7px;
  border: 1px solid var(--ill-line);
}
.scene-site .hero-img {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #E7F4F2 0%, #C9E8E2 100%);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.scene-site .hero-img::before {
  content: '';
  position: absolute;
  top: 12px; right: 12px;
  width: 50%; height: 50%;
  background: linear-gradient(135deg, var(--ill-teal), var(--ill-teal-dk));
  border-radius: 10px;
}
.scene-site .hero-img::after {
  content: '';
  position: absolute;
  bottom: 12px; left: 12px;
  width: 40%; height: 40%;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(11, 36, 71, .12);
}
.scene-site .cards-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 22px 22px;
}
.scene-site .feat-card {
  background: #fff;
  border: 1px solid var(--ill-line);
  border-radius: 10px;
  padding: 10px;
  display: flex; flex-direction: column; gap: 4px;
}
.scene-site .feat-card .ic {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: rgba(26, 163, 154, .12);
  color: var(--ill-teal);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.scene-site .feat-card b {
  font-size: 10.5px; font-weight: 800;
  color: var(--ill-navy);
}
.scene-site .feat-card span {
  font-size: 9.5px; color: var(--ill-ink-2);
  line-height: 1.4;
}

/* ============================================
   SCENE 3: Phone mockup with real app UI
============================================ */
.scene-phone-bg {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #E7F4F2 0%, #F4F8FC 100%);
  padding: 28px 0;
  min-height: 380px;
  position: relative;
  overflow: hidden;
}
.scene-phone-bg::before {
  content: '';
  position: absolute;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(26, 163, 154, .25), transparent 60%);
  border-radius: 50%;
  top: 30%; left: 50%;
  transform: translate(-50%, -50%);
}
.phone {
  width: 220px;
  background: #0B2447;
  border-radius: 32px;
  padding: 6px;
  position: relative;
  z-index: 1;
  box-shadow: 0 30px 60px rgba(11, 36, 71, .35);
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif;
}
.phone::before {
  content: '';
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 64px; height: 14px;
  background: #0B2447;
  border-radius: 7px;
  z-index: 2;
}
.phone .scr {
  background: #FBFDFF;
  border-radius: 28px;
  padding: 34px 14px 14px;
  overflow: hidden;
  direction: rtl;
  text-align: right;
}
.phone .scr .greet {
  font-size: 9.5px; color: var(--ill-ink-3);
}
.phone .scr h3 {
  margin: 2px 0 12px;
  font-size: 14px; font-weight: 800;
  color: var(--ill-navy);
}
.phone .scr .balance {
  background: linear-gradient(135deg, var(--ill-navy), var(--ill-navy-2));
  color: #fff;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
}
.phone .scr .balance .l { font-size: 9px; color: rgba(255, 255, 255, .65); }
.phone .scr .balance .v { font-size: 17px; font-weight: 800; margin-top: 2px; }
.phone .scr .balance .row { display: flex; gap: 6px; margin-top: 10px; }
.phone .scr .balance .row .bt {
  flex: 1;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  text-align: center;
  font-size: 9px; font-weight: 700;
  padding: 5px 0;
  border-radius: 6px;
}
.phone .scr .balance .row .bt.accent {
  background: linear-gradient(135deg, var(--ill-teal), var(--ill-teal-dk));
}
.phone .scr .quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}
.phone .scr .quick .q {
  background: #fff;
  border: 1px solid var(--ill-line);
  border-radius: 9px;
  padding: 8px 4px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.phone .scr .quick .q .ic {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: rgba(26, 163, 154, .15);
  display: flex; align-items: center; justify-content: center;
  color: var(--ill-teal);
}
.phone .scr .quick .q span {
  font-size: 8px; color: var(--ill-ink-2); font-weight: 600;
}
.phone .scr .activity {
  background: #fff;
  border: 1px solid var(--ill-line);
  border-radius: 11px;
  padding: 10px;
}
.phone .scr .activity .ah {
  display: flex; justify-content: space-between;
  font-size: 9.5px; margin-bottom: 8px;
  color: var(--ill-navy); font-weight: 800;
}
.phone .scr .activity .ah a { color: var(--ill-teal); font-size: 8.5px; font-weight: 700; }
.phone .scr .activity .it {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px;
}
.phone .scr .activity .it:last-child { margin-bottom: 0; }
.phone .scr .activity .it .av {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ill-teal), var(--ill-navy));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 8.5px; font-weight: 800;
  flex-shrink: 0;
}
.phone .scr .activity .it .av.b { background: linear-gradient(135deg, var(--ill-blue), var(--ill-navy-2)); }
.phone .scr .activity .it .av.o { background: linear-gradient(135deg, var(--ill-orange), #EA580C); }
.phone .scr .activity .it .m { flex: 1; min-width: 0; }
.phone .scr .activity .it .m b {
  display: block; font-size: 9px; font-weight: 700;
  color: var(--ill-navy);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.phone .scr .activity .it .m span {
  font-size: 8px; color: var(--ill-ink-3);
}
.phone .scr .activity .it .amt {
  font-size: 9.5px; font-weight: 800;
  color: var(--ill-teal-dk);
}
.phone .scr .activity .it .amt.r { color: #DC2626; }

/* ============================================
   SCENE 4: AI Chat assistant
============================================ */
.scene-ai {
  background: linear-gradient(180deg, #FBFDFF 0%, #F4F8FC 100%);
  padding: 16px;
  min-height: 380px;
  direction: rtl;
  display: flex; flex-direction: column;
  gap: 10px;
}
.scene-ai .head {
  display: flex; align-items: center; gap: 10px;
  background: #fff;
  border: 1px solid var(--ill-line);
  padding: 9px 12px;
  border-radius: 12px;
}
.scene-ai .head .av {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ill-teal), var(--ill-teal-dk));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px;
  position: relative;
}
.scene-ai .head .av::after {
  content: '';
  position: absolute;
  bottom: -2px; left: -2px;
  width: 10px; height: 10px;
  background: var(--ill-green);
  border: 2px solid #fff;
  border-radius: 50%;
}
.scene-ai .head .info b {
  display: block;
  font-size: 12px; font-weight: 800;
  color: var(--ill-navy);
}
.scene-ai .head .info span {
  font-size: 9.5px; color: var(--ill-green);
}
.scene-ai .head .status {
  margin-right: auto;
  background: rgba(26, 163, 154, .12);
  color: var(--ill-teal-dk);
  font-size: 9px; font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.scene-ai .conv {
  flex: 1;
  display: flex; flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.scene-ai .msg {
  display: flex; gap: 8px;
  max-width: 80%;
}
.scene-ai .msg.bot { align-self: flex-start; }
.scene-ai .msg.user { align-self: flex-end; flex-direction: row-reverse; }
.scene-ai .msg .av {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ill-teal), var(--ill-teal-dk));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800;
  flex-shrink: 0;
}
.scene-ai .msg.user .av { background: linear-gradient(135deg, var(--ill-blue), var(--ill-navy-2)); }
.scene-ai .msg .bubble {
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--ill-ink);
  background: #fff;
  border: 1px solid var(--ill-line);
  box-shadow: 0 1px 3px rgba(11, 36, 71, .04);
}
.scene-ai .msg.user .bubble {
  background: linear-gradient(135deg, var(--ill-navy), var(--ill-navy-2));
  color: #fff;
  border-color: transparent;
}
.scene-ai .msg .bubble .badge {
  display: inline-block;
  background: rgba(26, 163, 154, .12);
  color: var(--ill-teal-dk);
  font-size: 9px; font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
}
.scene-ai .msg .bubble .data-grid {
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.scene-ai .msg .bubble .stat {
  background: #F4F8FC;
  border-radius: 8px;
  padding: 6px 8px;
  text-align: center;
}
.scene-ai .msg .bubble .stat b {
  display: block;
  font-size: 12px; font-weight: 800;
  color: var(--ill-navy);
}
.scene-ai .msg .bubble .stat span {
  font-size: 8px; color: var(--ill-ink-3);
}
.scene-ai .typing {
  display: inline-flex; gap: 3px;
  padding: 9px 12px;
  background: #fff;
  border: 1px solid var(--ill-line);
  border-radius: 12px;
  width: max-content;
}
.scene-ai .typing span {
  width: 5px; height: 5px;
  background: var(--ill-ink-3);
  border-radius: 50%;
  animation: bounce 1.4s infinite;
}
.scene-ai .typing span:nth-child(2) { animation-delay: .2s; }
.scene-ai .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes bounce {
  0%, 80%, 100% { transform: scale(.7); opacity: .5; }
  40% { transform: scale(1); opacity: 1; }
}

.scene-ai .compose {
  background: #fff;
  border: 1px solid var(--ill-line);
  border-radius: 14px;
  padding: 8px 8px 8px 14px;
  display: flex; align-items: center; gap: 8px;
}
.scene-ai .compose .input {
  flex: 1;
  font-size: 11px;
  color: var(--ill-ink-3);
}
.scene-ai .compose .send {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ill-teal), var(--ill-teal-dk));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}

/* ============================================
   SCENE 5: WhatsApp / Bot chat
============================================ */
.scene-bot {
  background: #E5DDD5;
  background-image:
    radial-gradient(rgba(255, 255, 255, .25) 1px, transparent 1px);
  background-size: 16px 16px;
  min-height: 380px;
  display: flex; flex-direction: column;
  direction: rtl;
}
.scene-bot .head {
  background: #075E54;
  color: #fff;
  padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
}
.scene-bot .head .av {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ill-teal), var(--ill-teal-dk));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px;
  flex-shrink: 0;
}
.scene-bot .head b {
  display: block;
  font-size: 13px; font-weight: 800;
}
.scene-bot .head span {
  display: block;
  font-size: 9.5px; color: rgba(255, 255, 255, .7);
}
.scene-bot .body {
  flex: 1; padding: 14px;
  display: flex; flex-direction: column; gap: 6px;
  overflow: hidden;
}
.scene-bot .b {
  max-width: 78%;
  padding: 7px 11px;
  border-radius: 12px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--ill-ink);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
  position: relative;
}
.scene-bot .b.in { background: #fff; align-self: flex-start; border-top-right-radius: 4px; }
.scene-bot .b.out { background: #DCF8C6; align-self: flex-end; border-top-left-radius: 4px; }
.scene-bot .b small {
  display: block;
  font-size: 8px;
  color: var(--ill-ink-3);
  margin-top: 3px;
  text-align: left;
}
.scene-bot .b.out small::after {
  content: ' ✓✓'; color: #34B7F1;
}
.scene-bot .b .qbtns {
  display: flex; flex-direction: column; gap: 4px;
  margin-top: 6px;
}
.scene-bot .b .qbtns .qb {
  background: rgba(26, 163, 154, .10);
  color: var(--ill-teal-dk);
  border: 1px solid rgba(26, 163, 154, .25);
  font-size: 10px; font-weight: 700;
  padding: 5px 10px;
  border-radius: 7px;
  text-align: center;
}
.scene-bot .b .menu {
  margin-top: 6px;
  border-top: 1px solid var(--ill-line);
  padding-top: 6px;
  font-size: 10px;
}
.scene-bot .b .menu .ln {
  display: flex; justify-content: space-between;
  padding: 3px 0;
  color: var(--ill-ink-2);
}
.scene-bot .b .menu .ln b { color: var(--ill-navy); font-weight: 700; }
.scene-bot .compose {
  background: #F0F0F0;
  padding: 8px 10px;
  display: flex; align-items: center; gap: 6px;
}
.scene-bot .compose .input {
  flex: 1;
  background: #fff;
  border-radius: 18px;
  padding: 6px 12px;
  font-size: 10.5px;
  color: var(--ill-ink-3);
}
.scene-bot .compose .mic {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #075E54;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}

/* ============================================
   SCENE 6: Integration / Automation diagram
============================================ */
.scene-flow {
  background:
    radial-gradient(800px 600px at 50% 50%, rgba(26, 163, 154, .08), transparent 70%),
    linear-gradient(180deg, #FBFDFF 0%, #F4F8FC 100%);
  min-height: 380px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.scene-flow .grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(87, 108, 188, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(87, 108, 188, .06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 80%);
}
.scene-flow .stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 332px;
  z-index: 1;
}

/* Center hub */
.scene-flow .hub {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 96px; height: 96px;
  background: linear-gradient(135deg, var(--ill-teal), var(--ill-teal-dk));
  color: #fff;
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  box-shadow:
    0 20px 50px rgba(26, 163, 154, .45),
    0 0 0 12px rgba(26, 163, 154, .08),
    0 0 0 26px rgba(26, 163, 154, .05);
  z-index: 3;
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif;
}
.scene-flow .hub .mk { font-size: 28px; font-weight: 800; letter-spacing: -1px; }
.scene-flow .hub .lb { font-size: 10px; font-weight: 700; opacity: .9; }

/* Orbit nodes */
.scene-flow .node {
  position: absolute;
  background: #fff;
  border: 1px solid var(--ill-line);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 24px rgba(11, 36, 71, .12);
  z-index: 2;
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif;
  font-size: 11.5px; font-weight: 700;
  color: var(--ill-navy);
  direction: rtl;
  animation: floatSoft 6s ease-in-out infinite;
}
@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.scene-flow .node .ic {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.scene-flow .node .ic.stripe { background: linear-gradient(135deg, #635BFF, #4A40DA); }
.scene-flow .node .ic.slack { background: linear-gradient(135deg, #E01E5A, #ECB22E); }
.scene-flow .node .ic.gmail { background: linear-gradient(135deg, #EA4335, #C5221F); }
.scene-flow .node .ic.crm { background: linear-gradient(135deg, var(--ill-navy), var(--ill-navy-2)); }
.scene-flow .node .ic.wa { background: linear-gradient(135deg, #25D366, #128C7E); }
.scene-flow .node .ic.sheets { background: linear-gradient(135deg, #34A853, #137333); }
.scene-flow .node .meta { line-height: 1.3; }
.scene-flow .node .meta b { display: block; font-size: 11px; font-weight: 800; color: var(--ill-navy); }
.scene-flow .node .meta span { display: block; font-size: 9px; font-weight: 600; color: var(--ill-ink-3); }

.scene-flow .node.n1 { top: 8%; left: 6%; animation-delay: 0s; }
.scene-flow .node.n2 { top: 8%; right: 6%; animation-delay: 1s; }
.scene-flow .node.n3 { top: 50%; left: 2%; transform: translateY(-50%); animation-delay: 1.5s; }
.scene-flow .node.n4 { top: 50%; right: 2%; transform: translateY(-50%); animation-delay: .5s; }
.scene-flow .node.n5 { bottom: 8%; left: 6%; animation-delay: 2s; }
.scene-flow .node.n6 { bottom: 8%; right: 6%; animation-delay: 2.5s; }

/* Dashed connectors */
.scene-flow .wires {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.scene-flow .wires svg {
  width: 100%; height: 100%; display: block;
}

/* Floating tip card */
.scene-flow .tip {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ill-teal-dk);
  border: 1px solid rgba(26, 163, 154, .25);
  box-shadow: 0 8px 20px rgba(26, 163, 154, .15);
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif;
  z-index: 4;
  display: inline-flex; align-items: center; gap: 6px;
}
.scene-flow .tip::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--ill-green);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .25);
  animation: pulseDot 1.6s infinite;
}

/* ============================================
   Compact variant for cards (project slider)
============================================ */
.ill--compact .scene-admin { min-height: 320px; grid-template-columns: 140px 1fr; }
.ill--compact .scene-admin .main { padding: 10px; gap: 8px; }
.ill--compact .scene-admin .bars { height: 90px; }
.ill--compact .scene-admin .kpi { padding: 9px 10px; }
.ill--compact .scene-admin .kpi .val { font-size: 14px; }

/* ============================================
   SCENE 7: Map / Delivery tracking
============================================ */
.scene-map {
  position: relative;
  min-height: 380px;
  background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 50%, #93C5FD 100%);
  overflow: hidden;
  direction: ltr;
}
.scene-map::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 64, 175, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 64, 175, .08) 1px, transparent 1px);
  background-size: 32px 32px;
}
.scene-map .roads {
  position: absolute;
  inset: 0;
}
.scene-map .roads svg { width: 100%; height: 100%; }
.scene-map .pin {
  position: absolute;
  display: flex; align-items: center; gap: 6px;
  background: #fff;
  padding: 6px 10px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(11, 36, 71, .18);
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--ill-navy);
  z-index: 2;
}
.scene-map .pin::before {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ill-teal);
  box-shadow: 0 0 0 4px rgba(26, 163, 154, .25);
}
.scene-map .pin.dest::before { background: #DC2626; box-shadow: 0 0 0 4px rgba(220, 38, 38, .25); }
.scene-map .truck {
  position: absolute;
  width: 56px; height: 56px;
  background: #fff;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px rgba(11, 36, 71, .25);
  z-index: 3;
  color: var(--ill-navy);
  animation: floatSoft 5s ease-in-out infinite;
}
.scene-map .info {
  position: absolute;
  top: 16px; left: 16px;
  background: rgba(255, 255, 255, .95);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 10px 30px rgba(11, 36, 71, .15);
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif;
  direction: rtl;
  text-align: right;
  z-index: 4;
  min-width: 200px;
}
.scene-map .info b {
  display: block;
  font-size: 13px; font-weight: 800;
  color: var(--ill-navy);
}
.scene-map .info span {
  display: block;
  font-size: 10px;
  color: var(--ill-ink-3);
  margin-top: 2px;
}
.scene-map .info .eta {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #F1F5F9;
  display: flex; gap: 8px;
}
.scene-map .info .eta .stat {
  flex: 1;
}
.scene-map .info .eta .stat b { font-size: 14px; color: var(--ill-teal); }
.scene-map .info .eta .stat span { font-size: 9px; }

/* ============================================
   SCENE 8: Smart home / IoT control panel
============================================ */
.scene-smart {
  min-height: 380px;
  padding: 18px;
  background:
    radial-gradient(600px 400px at 0% 0%, rgba(167, 139, 250, .18), transparent 60%),
    radial-gradient(500px 400px at 100% 100%, rgba(26, 163, 154, .18), transparent 60%),
    linear-gradient(180deg, #1B1340 0%, #0F0828 100%);
  color: #fff;
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif;
  display: flex; flex-direction: column;
  gap: 12px;
  direction: rtl;
}
.scene-smart .head {
  display: flex; justify-content: space-between; align-items: flex-end;
}
.scene-smart .head h3 {
  margin: 0;
  font-size: 16px; font-weight: 800;
}
.scene-smart .head small {
  display: block;
  font-size: 10.5px;
  color: rgba(255, 255, 255, .55);
  margin-top: 4px;
}
.scene-smart .head .weather {
  text-align: left;
}
.scene-smart .head .weather b {
  font-size: 22px; font-weight: 800;
}
.scene-smart .head .weather span {
  font-size: 10.5px;
  color: rgba(255, 255, 255, .65);
}
.scene-smart .rooms {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.scene-smart .room {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 14px;
  padding: 12px;
  position: relative;
  overflow: hidden;
}
.scene-smart .room.on {
  background: linear-gradient(135deg, rgba(26, 163, 154, .28), rgba(26, 163, 154, .12));
  border-color: rgba(26, 163, 154, .4);
}
.scene-smart .room.warm {
  background: linear-gradient(135deg, rgba(251, 146, 60, .25), rgba(251, 146, 60, .10));
  border-color: rgba(251, 146, 60, .4);
}
.scene-smart .room .top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.scene-smart .room .ic {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .15);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.scene-smart .room .toggle {
  width: 32px; height: 18px;
  background: rgba(255, 255, 255, .15);
  border-radius: 10px;
  position: relative;
}
.scene-smart .room .toggle::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  top: 2px; left: 2px;
  transition: left .2s;
}
.scene-smart .room.on .toggle, .scene-smart .room.warm .toggle {
  background: rgba(255, 255, 255, .35);
}
.scene-smart .room.on .toggle::after, .scene-smart .room.warm .toggle::after {
  left: 16px;
}
.scene-smart .room .name { font-size: 11.5px; font-weight: 700; }
.scene-smart .room .val {
  font-size: 18px; font-weight: 800;
  margin-top: 4px;
}
.scene-smart .room .meta {
  font-size: 9.5px;
  color: rgba(255, 255, 255, .55);
}
.scene-smart .energy {
  background: rgba(255, 255, 255, .06);
  border-radius: 14px;
  padding: 12px;
}
.scene-smart .energy .head2 {
  display: flex; justify-content: space-between;
  margin-bottom: 8px;
  font-size: 11px;
}
.scene-smart .energy .head2 b { font-weight: 800; }
.scene-smart .energy .head2 span { color: rgba(255, 255, 255, .55); font-size: 10px; }
.scene-smart .energy .track {
  height: 6px;
  background: rgba(255, 255, 255, .1);
  border-radius: 3px;
  overflow: hidden;
}
.scene-smart .energy .track .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ill-teal), var(--ill-purple-lt));
  border-radius: 3px;
}

/* ============================================
   SCENE 9: Kanban / Task board
============================================ */
.scene-kanban {
  min-height: 380px;
  background: linear-gradient(180deg, #FBFDFF 0%, #F4F8FC 100%);
  padding: 14px;
  direction: rtl;
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif;
}
.scene-kanban .kb-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.scene-kanban .kb-head h3 {
  margin: 0;
  font-size: 14px; font-weight: 800;
  color: var(--ill-navy);
}
.scene-kanban .kb-head .avs {
  display: flex;
}
.scene-kanban .kb-head .avs .av {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ill-teal), var(--ill-teal-dk));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 9.5px; font-weight: 800;
  margin-left: -6px;
  border: 2px solid #fff;
}
.scene-kanban .kb-head .avs .av:nth-child(2) { background: linear-gradient(135deg, var(--ill-blue), var(--ill-navy-2)); }
.scene-kanban .kb-head .avs .av:nth-child(3) { background: linear-gradient(135deg, var(--ill-purple-lt), var(--ill-purple)); }
.scene-kanban .kb-head .avs .av:nth-child(4) {
  background: rgba(11, 36, 71, .08);
  color: var(--ill-navy);
}
.scene-kanban .cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.scene-kanban .col {
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 1px 3px rgba(11, 36, 71, .06);
}
.scene-kanban .col-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px;
  margin-bottom: 8px;
}
.scene-kanban .col-head b {
  font-weight: 800;
  color: var(--ill-navy);
  display: flex; align-items: center; gap: 6px;
}
.scene-kanban .col-head b::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c, var(--ill-orange));
}
.scene-kanban .col.todo b::before { background: var(--ill-orange); }
.scene-kanban .col.prog b::before { background: var(--ill-blue); }
.scene-kanban .col.done b::before { background: var(--ill-green); }
.scene-kanban .col-head .count {
  background: #F1F5F9;
  border-radius: 4px;
  padding: 1px 7px;
  font-size: 9px;
  font-weight: 800;
  color: var(--ill-ink-2);
}
.scene-kanban .task {
  background: #FBFDFF;
  border: 1px solid var(--ill-line);
  border-radius: 10px;
  padding: 9px;
  margin-bottom: 6px;
}
.scene-kanban .task:last-child { margin-bottom: 0; }
.scene-kanban .task .tag {
  display: inline-block;
  background: rgba(26, 163, 154, .14);
  color: var(--ill-teal-dk);
  font-size: 8.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 5px;
}
.scene-kanban .task .tag.b { background: rgba(87, 108, 188, .14); color: var(--ill-navy-2); }
.scene-kanban .task .tag.p { background: rgba(110, 63, 243, .14); color: #5B2DD9; }
.scene-kanban .task .tag.o { background: rgba(251, 146, 60, .14); color: #C2410C; }
.scene-kanban .task h5 {
  margin: 0 0 6px;
  font-size: 10.5px; font-weight: 700;
  color: var(--ill-navy);
  line-height: 1.4;
}
.scene-kanban .task .bar {
  height: 4px;
  background: #F1F5F9;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}
.scene-kanban .task .bar .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ill-teal), var(--ill-teal-dk));
  border-radius: 2px;
}
.scene-kanban .task .foot {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 9px;
  color: var(--ill-ink-3);
}
.scene-kanban .task .foot .a {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ill-teal), var(--ill-teal-dk));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 8.5px; font-weight: 800;
}

/* ============================================
   SCENE 10: Restaurant / Menu storefront
============================================ */
.scene-menu {
  min-height: 380px;
  padding: 16px;
  background: linear-gradient(135deg, #FFF7ED 0%, #FED7AA 100%);
  direction: rtl;
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif;
}
.scene-menu .top {
  background: #fff;
  border-radius: 14px;
  padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(11, 36, 71, .06);
}
.scene-menu .top .brand {
  display: flex; align-items: center; gap: 8px;
}
.scene-menu .top .brand .mk {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #C2410C, #FB923C);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 13px;
}
.scene-menu .top .brand b {
  font-size: 13px; font-weight: 800; color: var(--ill-navy);
}
.scene-menu .top .cart {
  background: linear-gradient(135deg, #EA580C, #C2410C);
  color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}
.scene-menu .cats {
  display: flex; gap: 6px;
  margin-bottom: 12px;
  overflow: hidden;
}
.scene-menu .cats .c {
  background: #fff;
  border: 1px solid rgba(234, 88, 12, .15);
  padding: 5px 12px;
  font-size: 10.5px; font-weight: 700;
  color: var(--ill-ink-2);
  border-radius: 999px;
}
.scene-menu .cats .c.on {
  background: linear-gradient(135deg, #EA580C, #C2410C);
  color: #fff;
  border-color: transparent;
}
.scene-menu .items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.scene-menu .item {
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 4px 14px rgba(194, 65, 12, .08);
}
.scene-menu .item .img {
  height: 70px;
  border-radius: 10px;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}
.scene-menu .item.a .img { background: linear-gradient(135deg, #FED7AA, #FB923C); }
.scene-menu .item.b .img { background: linear-gradient(135deg, #FCD34D, #F59E0B); }
.scene-menu .item.c .img { background: linear-gradient(135deg, #D9F99D, #84CC16); }
.scene-menu .item.d .img { background: linear-gradient(135deg, #FBCFE8, #EC4899); }
.scene-menu .item .img::after {
  content: '';
  position: absolute;
  width: 36px; height: 36px;
  background: rgba(255, 255, 255, .4);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.scene-menu .item .nm {
  font-size: 11px; font-weight: 800;
  color: var(--ill-navy);
  margin-bottom: 2px;
}
.scene-menu .item .desc {
  font-size: 9px;
  color: var(--ill-ink-3);
  margin-bottom: 6px;
}
.scene-menu .item .footp {
  display: flex; justify-content: space-between; align-items: center;
}
.scene-menu .item .price {
  font-size: 12px; font-weight: 800;
  color: #C2410C;
}
.scene-menu .item .add {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, #EA580C, #C2410C);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

/* ============================================
   SCENE 11: HR / Employee grid
============================================ */
.scene-hr {
  min-height: 380px;
  padding: 16px;
  background: linear-gradient(180deg, #FBFDFF 0%, #EEF2FF 100%);
  direction: rtl;
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif;
}
.scene-hr .head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.scene-hr .head h3 {
  margin: 0;
  font-size: 14px; font-weight: 800;
  color: var(--ill-navy);
}
.scene-hr .head h3 small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--ill-ink-3);
  margin-top: 2px;
}
.scene-hr .head .filters {
  display: flex; gap: 6px;
}
.scene-hr .head .filters .f {
  background: #fff;
  border: 1px solid var(--ill-line);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 10px;
  font-weight: 700;
  color: var(--ill-ink-2);
}
.scene-hr .head .filters .f.on {
  background: linear-gradient(135deg, var(--ill-purple-lt), var(--ill-purple));
  color: #fff;
  border-color: transparent;
}
.scene-hr .stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.scene-hr .stat {
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 1px 3px rgba(11, 36, 71, .06);
}
.scene-hr .stat b {
  display: block;
  font-size: 18px; font-weight: 800;
  color: var(--ill-navy);
}
.scene-hr .stat span {
  font-size: 10px;
  color: var(--ill-ink-3);
}
.scene-hr .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.scene-hr .emp {
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  position: relative;
  box-shadow: 0 1px 3px rgba(11, 36, 71, .06);
}
.scene-hr .emp .av {
  width: 38px; height: 38px;
  border-radius: 50%;
  margin: 0 auto 6px;
  background: linear-gradient(135deg, var(--ill-teal), var(--ill-teal-dk));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 800;
  position: relative;
}
.scene-hr .emp.b .av { background: linear-gradient(135deg, var(--ill-blue), var(--ill-navy-2)); }
.scene-hr .emp.p .av { background: linear-gradient(135deg, var(--ill-purple-lt), var(--ill-purple)); }
.scene-hr .emp.o .av { background: linear-gradient(135deg, var(--ill-orange), #EA580C); }
.scene-hr .emp .av::after {
  content: '';
  position: absolute;
  width: 9px; height: 9px;
  background: var(--ill-green);
  border: 2px solid #fff;
  border-radius: 50%;
  bottom: -1px; right: -1px;
}
.scene-hr .emp.off .av::after { background: #94A3B8; }
.scene-hr .emp b {
  display: block;
  font-size: 10.5px; font-weight: 800;
  color: var(--ill-navy);
  line-height: 1.2;
}
.scene-hr .emp span {
  display: block;
  font-size: 8.5px;
  color: var(--ill-ink-3);
  margin-top: 2px;
}
.scene-hr .emp .role {
  background: rgba(167, 139, 250, .12);
  color: #5B2DD9;
  font-size: 8.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 5px;
}

/* ============================================
   SCENE 12: Course / Edu mobile app
============================================ */
.scene-edu {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #FDF2F8 0%, #FCE7F3 50%, #DBEAFE 100%);
  padding: 28px 0;
  min-height: 380px;
  position: relative;
  overflow: hidden;
  direction: ltr;
}
.scene-edu::before {
  content: '';
  position: absolute;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(236, 72, 153, .25), transparent 60%);
  border-radius: 50%;
  top: 20%; left: 50%;
  transform: translate(-50%, -50%);
}
.scene-edu .phone {
  background: linear-gradient(135deg, #1B1340, #3B1F8B);
}
.scene-edu .phone::before {
  background: #1B1340;
}
.scene-edu .phone .scr {
  background: linear-gradient(180deg, #FDF2F8 0%, #FFFFFF 60%);
  padding: 28px 12px 12px;
}
.scene-edu .phone .scr .top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.scene-edu .phone .scr .top .av {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #EC4899, #BE185D);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 11px;
}
.scene-edu .phone .scr .top .bell {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: #fff;
  position: relative;
  box-shadow: 0 2px 6px rgba(11, 36, 71, .1);
}
.scene-edu .phone .scr .top .bell::after {
  content: '';
  position: absolute;
  width: 6px; height: 6px;
  background: #EC4899;
  border-radius: 50%;
  top: 4px; right: 4px;
}
.scene-edu .phone .scr h4 {
  margin: 0 0 2px;
  font-size: 11px; font-weight: 600;
  color: var(--ill-ink-3);
}
.scene-edu .phone .scr h3 {
  margin: 0 0 12px;
  font-size: 16px; font-weight: 800;
  color: var(--ill-navy);
}
.scene-edu .phone .scr .pgrs {
  background: linear-gradient(135deg, #BE185D, #EC4899);
  border-radius: 14px;
  padding: 12px;
  color: #fff;
  margin-bottom: 12px;
}
.scene-edu .phone .scr .pgrs .l { font-size: 9.5px; opacity: .8; }
.scene-edu .phone .scr .pgrs b {
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin: 2px 0 8px;
}
.scene-edu .phone .scr .pgrs .bar {
  height: 5px;
  background: rgba(255, 255, 255, .25);
  border-radius: 3px;
  overflow: hidden;
}
.scene-edu .phone .scr .pgrs .bar .fill {
  height: 100%;
  width: 65%;
  background: #fff;
  border-radius: 3px;
}
.scene-edu .phone .scr .pgrs .stats {
  display: flex; justify-content: space-between;
  margin-top: 8px;
  font-size: 9px;
  opacity: .9;
}
.scene-edu .phone .scr .cs {
  font-size: 11px; font-weight: 800;
  color: var(--ill-navy);
  margin-bottom: 8px;
  display: flex; justify-content: space-between;
}
.scene-edu .phone .scr .cs a { color: #EC4899; font-size: 9.5px; font-weight: 700; }
.scene-edu .phone .scr .crs {
  background: #fff;
  border: 1px solid #F1F5F9;
  border-radius: 12px;
  padding: 9px;
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 9px;
}
.scene-edu .phone .scr .crs .tn {
  width: 36px; height: 36px;
  border-radius: 9px;
  flex-shrink: 0;
}
.scene-edu .phone .scr .crs.a .tn { background: linear-gradient(135deg, #C7D2FE, #6366F1); }
.scene-edu .phone .scr .crs.b .tn { background: linear-gradient(135deg, #FBCFE8, #EC4899); }
.scene-edu .phone .scr .crs.c .tn { background: linear-gradient(135deg, #BAE6FD, #0EA5E9); }
.scene-edu .phone .scr .crs .meta { flex: 1; min-width: 0; }
.scene-edu .phone .scr .crs .meta b {
  display: block;
  font-size: 10.5px; font-weight: 800;
  color: var(--ill-navy);
}
.scene-edu .phone .scr .crs .meta span {
  font-size: 8.5px;
  color: var(--ill-ink-3);
}

/* ============================================
   Responsive
============================================ */
@media (max-width: 880px) {
  .scene-admin { grid-template-columns: 1fr; }
  .scene-admin .side { display: none; }
  .scene-flow .node.n3, .scene-flow .node.n4 { display: none; }
}
