.elementor .nc-demo-trigger, .nc-demo-trigger {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px; border: 1.5px solid #218698;
  border-radius: 40px; background: transparent; color: #218698;
  font-family: Tajawal, sans-serif; font-size: 18px; font-weight: 700;
  line-height: 1.25; cursor: pointer; transition: background .2s, color .2s;
}
.elementor .nc-demo-trigger:hover, .nc-demo-trigger:hover { background: #218698; color: #fff; }
.nc-demo-trigger:focus-visible, .nc-demo-close:focus-visible, .nc-demo-card:focus-visible {
  outline: 3px solid #218698; outline-offset: 5px;
}
html.nc-demo-is-open { overflow: hidden; }
dialog.nc-demo-dialog {
  box-sizing: border-box; position: fixed; inset: 0; margin: auto;
  width: min(880px, calc(100% - 40px)); max-width: none;
  max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 22px;
  background: #fff; color: #24313c; box-shadow: 0 24px 100px #142a3c40;
  overflow-y: auto; overscroll-behavior: contain;
  font-family: Tajawal, sans-serif; text-align: center;
}
.nc-demo-dialog:not([open]) { display: none; }
.nc-demo-dialog::backdrop { background: #15252fb3; backdrop-filter: blur(6px); }
.nc-demo-dialog *, .nc-demo-dialog *::before, .nc-demo-dialog *::after { box-sizing: border-box; }
.nc-demo-shell { position: relative; padding: 22px 24px 14px; }
.nc-demo-dialog .nc-demo-close {
  position: absolute; z-index: 1; top: 16px; left: 16px;
  display: grid; place-items: center; width: 40px; height: 40px;
  padding: 9px; border: 0; border-radius: 50%; background: transparent;
  color: #697782; cursor: pointer;
}
.nc-demo-dialog .nc-demo-close:hover { background: #edf6f7; color: #218698; }
.nc-demo-close svg { width: 24px; height: 24px; }
.nc-demo-dialog .nc-demo-header h2 { margin: 0 40px 4px; color: #24313c; font: 800 34px/1.4 Tajawal, sans-serif; }
.nc-demo-dialog .nc-demo-header p { margin: 0; color: #667382; font: 500 19px/1.6 Tajawal, sans-serif; }
.nc-demo-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 18px; }
.nc-demo-dialog a.nc-demo-card {
  display: flex; flex-direction: column; align-items: center;
  min-width: 0; padding: 8px 16px 16px; border: 1px solid #dce6ea;
  border-radius: 16px; background: #fff; color: #24313c; text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}
.nc-demo-dialog a.nc-demo-card:hover { border-color: #218698; box-shadow: 0 6px 24px #21869812; }
.nc-demo-dialog .nc-demo-art { display: block; width: 100%; height: clamp(140px, 23vh, 190px); object-fit: contain; margin: 0 0 4px; border-radius: 8px; }
.nc-demo-dialog .nc-demo-card h3 { margin: 0 0 10px; color: #24313c; font: 800 27px/1.3 Tajawal, sans-serif; }
.nc-demo-badge { padding: 4px 14px; border-radius: 10px; background: #e8f5f5; color: #167586; font-size: 17px; font-weight: 700; line-height: 1.5; }
.nc-demo-dialog .nc-demo-description { margin: 10px 0; color: #617080; font: 500 16px/1.7 Tajawal, sans-serif; }
.nc-demo-dialog .nc-demo-platforms { display: flex; align-items: center; justify-content: center; gap: 10px; margin: auto 0 14px; color: #425568; font: 500 16px/1.5 Tajawal, sans-serif; }
.nc-demo-devices { display: flex; gap: 7px; color: #218698; }
.nc-demo-devices svg { width: 24px; height: 24px; }
.nc-demo-cta { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: 46px; padding: 10px; border-radius: 11px; background: #218698; color: #fff; font-size: 19px; font-weight: 700; line-height: 1.3; }
.nc-demo-cta svg { width: 22px; height: 22px; }
.nc-demo-card:hover .nc-demo-cta { background: #186d7c; }
.nc-demo-dialog .nc-demo-note { margin: 12px 0 0; color: #75828e; font: 400 14px/1.6 Tajawal, sans-serif; }
.nc-demo-note span { padding: 0 5px; }
@media (max-width: 640px) {
  dialog.nc-demo-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 16px; }
  .nc-demo-shell { padding: 24px 16px 16px; }
  .nc-demo-dialog .nc-demo-close { top: 10px; left: 8px; }
  .nc-demo-dialog .nc-demo-header h2 { font-size: 29px; }
  .nc-demo-dialog .nc-demo-header p { font-size: 17px; }
  .nc-demo-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 18px; }
  .nc-demo-dialog a.nc-demo-card { padding: 8px 16px 16px; }
  .nc-demo-dialog .nc-demo-art { max-width: 260px; height: 155px; object-fit: contain; }
  .nc-demo-dialog .nc-demo-card h3 { font-size: 25px; }
  .nc-demo-dialog .nc-demo-description { font-size: 16px; margin: 10px 0; }
  .nc-demo-dialog .nc-demo-platforms { font-size: 15px; margin-bottom: 14px; gap: 8px; }
  .nc-demo-devices svg { width: 21px; height: 21px; }
  .nc-demo-dialog .nc-demo-note { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .nc-demo-trigger, .nc-demo-dialog a.nc-demo-card { transition: none; }
}
