/* jarchi before the class (prejoin.js): the open-in-browser screen, the mic and sound checks on the join page,
   and in the class the big «برای شنیدن صدای کلاس بزن», the iPhone hint and the mic permission guide. */

.pj-ic { display: inline-flex; width: 20px; height: 20px; flex: none; }
.pj-ic svg { width: 100%; height: 100%; }
.pj-ic.pj-big { width: 30px; height: 30px; }

/* ---------- the screen before the join page ---------- */
.pj-gate { text-align: center; padding-top: 22px; }
.pj-gate > .pj-ic.pj-big { width: 52px; height: 52px; color: var(--accent); margin-bottom: 8px; }
.pj-gate h2 { font-size: 20px; line-height: 1.5; margin-bottom: 6px; }
.pj-actions { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 4px; }
a.btn { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.pj-said { margin: 0; min-height: 0; }
.pj-said:empty { display: none; }
.pj-link { flex: none; user-select: all; -webkit-user-select: all; }
.pj-steps { text-align: start; margin: 10px 0 0; padding-inline-start: 22px; font-size: 14px; list-style-type: persian; }
.pj-steps li { margin-bottom: 4px; }
.pj-here { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.pj-here .hint { margin: 8px 0 0; }

/* ---------- the checks on the join page ---------- */
.pj-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 6px 0 14px;
}
form > .pj-box:last-child { margin: 16px 0 0; }
.pj-box h3 { font-size: 15px; margin: 0 0 2px; font-weight: 700; }
.pj-box .hint { margin-bottom: 10px; }
.pj-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pj-row:empty { display: none; }
.pj-row > .btn { flex: 1 1 auto; }
.btn.pj-iconbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn.pj-iconbtn .pj-ic { width: 18px; height: 18px; }
.pj-live { margin: 4px 0 12px; }
.pj-box .pj-said { margin-top: 8px; }
.pj-meter {
  height: 14px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.pj-bar {
  display: block;
  height: 100%;
  background: var(--ring);
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: right center;
  will-change: transform;
}
.pj-status { margin: 6px 0 10px; font-size: 15px; font-weight: 700; }
.pj-status.ok { color: var(--accent); }
.pj-status.warn { color: var(--warn); }
.pj-pick { display: flex; flex-direction: column; gap: 4px; font-weight: 400; font-size: 14px; margin-bottom: 10px; }
.pj-pick select {
  font: inherit;
  color: inherit;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  max-width: 100%;
}
.pj-tip { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.pj-tip .pj-ic { color: var(--accent); }

/* ---------- in the class ---------- */
/* The old small «صدا قفله» line: the big button below replaces it. */
.unlock { display: none !important; }
.pj-unlock {
  position: sticky;
  top: max(8px, env(safe-area-inset-top));
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 88px;
  margin-bottom: 14px;
  padding: 14px 18px;
  border: 0;
  border-radius: 18px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18), 0 0 0 0 var(--ring);
  animation: pj-nudge 1.8s ease-in-out infinite;
}
/* A ring that pulses around the button (the box itself stays put, so a tap never misses). */
@keyframes pj-nudge { 50% { box-shadow: 0 6px 20px rgba(0, 0, 0, .18), 0 0 0 6px var(--ring); } }
@media (prefers-reduced-motion: reduce) { .pj-unlock { animation: none; } }
.pj-unlock:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.pj-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  background: var(--accent-soft);
  color: var(--ink);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 14px;
}
.pj-note > span { flex: 1 1 220px; }
.pj-note.warn { background: var(--live-soft); }
.pj-note .pj-actions { flex: 1 1 100%; margin: 4px 0 0; }

.pj-guide {
  background: var(--card);
  border: 1px solid var(--live);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 10px 0 14px;
}
.pj-guide h3 { font-size: 15px; margin: 0 0 4px; color: var(--warn); }
.pj-guide .pj-steps { margin-top: 4px; }
.pj-guide .hint { margin: 6px 0 8px; }
.pj-guide-slot[hidden] { display: none; }
.pj-line { display: block; }
.pj-path { display: inline-block; direction: ltr; font-size: 13px; }
