@font-face {
  font-family: "ML Vazirmatn";
  src: url("/___melolearn-demo-font/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ML Vazirmatn";
  src: url("/___melolearn-demo-font/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* بنر ثابت دمو — فقط داخل .ml-demo-topbar؛ فونت محلی بدون CDN */
.ml-demo-topbar,
.ml-demo-topbar * {
  box-sizing: border-box;
  font-family: "ML Vazirmatn", Tahoma, sans-serif;
}

.ml-demo-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2147483647;
  direction: rtl;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 12px 18px;
  font-size: 15px;
  line-height: 1.45;
  background: linear-gradient(180deg, #1e222b 0%, #14171d 100%);
  color: #e8eaef;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.ml-demo-topbar a {
  color: inherit;
  text-decoration: none;
}

.ml-demo-topbar .logo-col {
  flex: 0 0 auto;
}

.ml-demo-topbar .logo-link {
  display: inline-flex;
  align-items: center;
}

.ml-demo-topbar .logo-word {
  font-weight: 600;
  font-size: 1.1rem;
  color: #f4d03f;
  letter-spacing: 0.02em;
}

.ml-demo-topbar .title-col {
  flex: 1 1 auto;
  min-width: 0;
}

.ml-demo-topbar .title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  color: #f2f4f8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ml-demo-topbar .btn-col {
  flex: 0 0 auto;
}

.ml-demo-topbar .buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f1218 !important;
  background: linear-gradient(180deg, #f4d03f 0%, #c9a227 100%);
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset;
  white-space: nowrap;
}

.ml-demo-topbar .buy-btn:hover {
  filter: brightness(1.07);
}

.ml-demo-topbar .close-col {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ml-demo-topbar .close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  color: #c5cad3;
  background: rgba(255, 255, 255, 0.06);
  line-height: 1;
  transition: color 0.15s ease, background 0.15s ease;
}

.ml-demo-topbar .close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.ml-demo-topbar .close-btn:focus-visible {
  outline: 2px solid #f4d03f;
  outline-offset: 2px;
}

.ml-demo-topbar .close-btn-icon {
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1;
  margin-top: -2px;
}

@media (max-width: 767px) {
  .ml-demo-topbar {
    min-height: 68px;
    padding: 10px 12px;
    gap: 10px;
  }

  .ml-demo-topbar .title {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
  }

  .ml-demo-topbar .logo-word {
    font-size: 1rem;
  }

  .ml-demo-topbar .close-btn {
    width: 36px;
    height: 36px;
  }

  .ml-demo-topbar .close-btn-icon {
    font-size: 1.45rem;
  }
}
