/* ==========================================================
   POYACITY — auth.css (v2)
   استایل دکمه ورود، مودال OTP و مدیریت نشست
   ========================================================== */

.poya-auth-fab {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--primary, #1769aa);
  color: #fff;
  border: none;
  font-size: 22px;
  box-shadow: var(--shadow, 0 10px 30px rgba(0,0,0,.15));
  cursor: pointer;
  z-index: 9998;
  transition: transform .2s ease;
}

.poya-auth-fab:hover { transform: scale(1.08); }
.poya-auth-fab:focus-visible,
.poya-auth-btn:focus-visible,
.poya-auth-btn-secondary:focus-visible,
.poya-auth-btn-danger:focus-visible,
.poya-auth-close:focus-visible,
.poya-auth-modal input:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary, #1769aa) 35%, transparent);
  outline-offset: 2px;
}

.poya-auth-fab-logged { background: var(--green, #00C853); }

.poya-auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

body.poya-auth-open { overflow: hidden; }

.poya-auth-modal {
  background: #fff;
  border-radius: var(--radius, 18px);
  padding: 28px 24px;
  width: 100%;
  max-width: 400px;
  max-height: min(88vh, 720px);
  overflow-y: auto;
  position: relative;
  direction: rtl;
  font-family: var(--font-family, "Vazirmatn", sans-serif);
  box-shadow: var(--shadow-hover, 0 18px 45px rgba(0,0,0,.2));
}

.poya-auth-close {
  position: absolute;
  top: 10px;
  left: 14px;
  border: none;
  background: none;
  font-size: 24px;
  cursor: pointer;
  color: #667085;
}

.poya-auth-modal h3 { margin: 0 0 8px; font-size: 19px; }
.poya-auth-eyebrow { margin: 0 0 6px; color: var(--primary, #1769aa); font-size: 12px; font-weight: 800; }
.poya-auth-label { display: block; margin: 0 0 6px; color: #344054; font-size: 13px; font-weight: 700; }
.poya-auth-hint { font-size: 13px; color: #667085; margin: 0 0 14px; line-height: 1.8; }
.poya-auth-register-hint { text-align: center; margin-top: 4px; }
.poya-auth-inline-action { border: 0; padding: 0; background: transparent; color: var(--primary, #1769aa); font: inherit; font-weight: 800; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.poya-auth-inline-action:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary, #1769aa) 35%, transparent); outline-offset: 2px; }

/* Owner-requested UI copy cleanup. The recovery request remains anti-enumeration-safe in auth.js; only the redundant explanatory sentence is not rendered. */
#poyaAuthStepRecoveryRequest > .poya-auth-hint { display: none; }

.poya-auth-modal input {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border, #E6EAF0);
  border-radius: 12px;
  margin-bottom: 12px;
  font-family: inherit;
  font-size: 15px;
  background: #fff;
  color: #101828;
}

.poya-auth-modal input[aria-invalid="true"] { border-color: var(--red, #E53935); }

.poya-auth-btn,
.poya-auth-btn-secondary,
.poya-auth-btn-danger {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 8px;
  transition: filter .15s ease, opacity .15s ease, transform .15s ease;
}

.poya-auth-btn {
  border: none;
  background: var(--primary, #1769aa);
  color: #fff;
  font-size: 15px;
}

.poya-auth-btn-secondary {
  border: 1px solid var(--border, #E6EAF0);
  background: #fff;
  color: #344054;
}

.poya-auth-btn-danger {
  border: 1px solid color-mix(in srgb, var(--red, #E53935) 35%, #fff);
  background: color-mix(in srgb, var(--red, #E53935) 8%, #fff);
  color: #b42318;
}

.poya-auth-btn:hover,
.poya-auth-btn-secondary:hover,
.poya-auth-btn-danger:hover { filter: brightness(.97); }

.poya-auth-btn:active,
.poya-auth-btn-secondary:active,
.poya-auth-btn-danger:active { transform: translateY(1px); }

.poya-auth-btn:disabled,
.poya-auth-btn-secondary:disabled,
.poya-auth-btn-danger:disabled {
  cursor: not-allowed;
  opacity: .55;
  transform: none;
}

.poya-auth-error {
  color: var(--red, #E53935);
  font-size: 13px;
  min-height: 20px;
  margin-top: 4px;
  line-height: 1.7;
}

.poya-auth-status {
  min-height: 20px;
  margin: 2px 0 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f2f4f7;
  color: #475467;
  font-size: 12px;
  line-height: 1.7;
}

@media (max-width: 480px) {
  .poya-auth-overlay { padding: 10px; align-items: flex-end; }
  .poya-auth-modal { max-width: none; border-radius: 18px 18px 0 0; padding: 28px 18px max(22px, env(safe-area-inset-bottom)); }
  .poya-auth-fab { bottom: max(16px, env(safe-area-inset-bottom)); left: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .poya-auth-fab,
  .poya-auth-btn,
  .poya-auth-btn-secondary,
  .poya-auth-btn-danger { transition: none; }
}

/* ==========================================================
   استایل بخش نظرات و امتیازدهی روی گزارش‌ها (comments.js)
   ========================================================== */
.report-comments-btn {
  margin-top: 10px;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--primary, #1769aa);
  background: #fff;
  color: var(--primary, #1769aa);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
}
.report-comments-btn:hover { background: var(--primary, #1769aa); color: #fff; }
.poya-cm-modal { max-width: 460px; max-height: 85vh; overflow-y: auto; }
.poya-cm-summary { display: flex; align-items: center; gap: 10px; background: #f8fafc; border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: 14px; }
.poya-cm-avg { font-size: 20px; font-weight: 800; color: #f9a825; }
.poya-cm-count { color: #777; font-size: 13px; }
.poya-cm-stars { font-size: 28px; letter-spacing: 4px; margin-bottom: 10px; cursor: pointer; color: #ddd; direction: ltr; text-align: center; }
.poya-cm-stars span { transition: .15s; }
.poya-cm-star-active { color: #f9a825 !important; }
.poya-cm-form textarea { width: 100%; border: 1px solid var(--border, #E6EAF0); border-radius: 10px; padding: 10px 12px; font-family: inherit; margin-bottom: 10px; resize: vertical; }
.poya-cm-list { margin-top: 16px; border-top: 1px solid var(--border, #E6EAF0); padding-top: 12px; }
.poya-cm-loading { color: #888; text-align: center; }
.poya-cm-item { padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.poya-cm-item-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.poya-cm-item-stars { color: #f9a825; font-size: 14px; letter-spacing: 2px; direction: ltr; }
.poya-cm-item-date { color: #999; font-size: 12px; }
.poya-cm-item-body { font-size: 14px; color: #444; line-height: 1.7; }