/* app/modules/demo/assets/demo.css — نوار دمو روی صفحات عمومی */

.avdemo-bar,
.avdemo-pill {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 10400;
  font-family: inherit;
  direction: rtl;
}

.avdemo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem;
  padding: .8rem 1.1rem;
  background: #111827;
  color: #f9fafb;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, .28);
  transform: translateY(110%);
  transition: transform .35s cubic-bezier(.22, .9, .3, 1);
}

.avdemo-bar.is-in { transform: translateY(0); }

.avdemo-bar__mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .25rem .6rem;
  border-radius: 999px;
  background: #f59e0b;
  color: #1f2937;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.avdemo-bar__copy { flex: 1 1 16rem; min-width: 0; line-height: 1.6; }
.avdemo-bar__title { font-size: .95rem; font-weight: 700; }
.avdemo-bar__text  { font-size: .82rem; color: #cbd5e1; }

.avdemo-bar__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.avdemo-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: .6rem;
  padding: .52rem 1.05rem;
  font-size: .86rem;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: filter .15s, background .15s;
}

.avdemo-btn--primary { background: #f59e0b; color: #1f2937; }
.avdemo-btn--primary:hover { filter: brightness(1.08); color: #1f2937; }

.avdemo-btn--ghost {
  background: rgba(255, 255, 255, .09);
  color: #e5e7eb;
}
.avdemo-btn--ghost:hover { background: rgba(255, 255, 255, .17); color: #fff; }

.avdemo-bar__close {
  appearance: none;
  background: transparent;
  border: 0;
  color: #94a3b8;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: .25rem .4rem;
}
.avdemo-bar__close:hover { color: #fff; }

.avdemo-bar__note {
  flex-basis: 100%;
  font-size: .72rem;
  color: #94a3b8;
}

/* قرص کوچک بعد از بستن نوار */
.avdemo-pill {
  inset-inline: auto;
  inset-inline-end: 1rem;
  bottom: 1rem;
  display: none;
  align-items: center;
  gap: .4rem;
  padding: .5rem .95rem;
  border-radius: 999px;
  background: #f59e0b;
  color: #1f2937;
  font-size: .8rem;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
.avdemo-pill.is-in { display: inline-flex; }

/* فرم ثبت شماره */
.avdemo-form {
  flex-basis: 100%;
  display: none;
  flex-wrap: wrap;
  gap: .5rem;
  padding-top: .7rem;
  margin-top: .2rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.avdemo-form.is-open { display: flex; }

.avdemo-form input {
  flex: 1 1 11rem;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  color: #f9fafb;
  border-radius: .55rem;
  padding: .5rem .8rem;
  font-size: .85rem;
  font-family: inherit;
}
.avdemo-form input::placeholder { color: #94a3b8; }
.avdemo-form input:focus { outline: 2px solid #f59e0b; outline-offset: 1px; }

.avdemo-hp { position: absolute !important; inset-inline-start: -9999px !important; }

.avdemo-msg { flex-basis: 100%; font-size: .82rem; padding-top: .35rem; }
.avdemo-msg--ok  { color: #6ee7b7; }
.avdemo-msg--err { color: #fca5a5; }

@media (max-width: 640px) {
  .avdemo-bar { gap: .55rem; padding: .7rem .8rem; }
  .avdemo-bar__text { display: none; }
  .avdemo-bar__actions { flex: 1 1 100%; }
  .avdemo-btn { flex: 1 1 auto; justify-content: center; }
}

@media print { .avdemo-bar, .avdemo-pill { display: none !important; } }
