/* ═══════════════════════════════════════════════════════════════
   صفحة رفع البلاغ — هوية أداة منتج (موازية للكاشف، بلون بلاغ)
   Scoped تحت #report-tool / .page-type-report — لا يكسر مودال البلاغ
   ═══════════════════════════════════════════════════════════════ */

.report-page-wrap {
  max-width: none;
  margin: 0;
}
.page-objection {
  max-width: none;
}
/* رأس أداة الاعتراض — نفس توسيط البلاغ/الكاشف */
#objection-tool .hb-tool-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.15rem;
}
#objection-tool .hb-tool-head .tool-section-label {
  position: static;
  left: auto;
  right: auto;
  transform: none;
  justify-content: center;
  margin: 0 auto 0.65rem;
  width: fit-content;
  max-width: 100%;
}
#objection-tool .hb-tool-head h2 {
  text-align: center;
  width: 100%;
}
#objection-tool .hb-tool-form-wrap {
  width: 100%;
  max-width: min(46rem, 100%);
  margin-inline: auto;
  box-sizing: border-box;
}
#objection-tool .hb-tool-form-wrap > .card {
  width: 100%;
  max-width: 100%;
}

/* ── رأس الأداة (مثل الكاشف) ── */
.report-tool-section {
  position: relative;
  z-index: 2;
  text-align: center;
}
.report-tool-wrap {
  width: 100%;
  max-width: min(46rem, 100%);
  margin-inline: auto;
  box-sizing: border-box;
}
.report-tool-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.15rem;
}
.report-tool-head .tool-section-label {
  position: static;
  left: auto;
  right: auto;
  transform: none;
  justify-content: center;
  margin: 0 auto 0.65rem;
  width: fit-content;
  max-width: 100%;
  color: var(--report-accent, #f07167);
  border-color: color-mix(in srgb, var(--report-accent, #f07167) 35%, transparent);
  background: color-mix(in srgb, var(--report-accent, #f07167) 12%, transparent);
}
.report-tool-title {
  font-size: clamp(1.45rem, 3.2vw, 1.95rem);
  font-weight: 800;
  margin: 0 0 0.55rem;
  color: var(--clr-txt);
  line-height: 1.25;
}
.report-tool-desc {
  margin: 0 auto;
  max-width: 36rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--clr-txt2);
}
.report-tool-desc p:last-child {
  margin-bottom: 0;
}

/* ── خطوات مرقّمة ── */
.report-tool-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 34rem;
  margin: 0 auto 1.35rem;
  flex-wrap: wrap;
}
.report-tool-step {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--clr-txt3);
  font-size: 0.82rem;
  font-weight: 600;
  transition: color 0.25s;
}
.report-tool-step.is-active {
  color: var(--report-accent, #f07167);
}
.report-tool-step.is-done {
  color: var(--clr-green, #34d399);
}
.report-tool-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-surface2, rgba(255, 255, 255, 0.06));
  border: 1.5px solid var(--clr-border);
  font-size: 0.78rem;
  font-weight: 800;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.report-tool-step.is-active .report-tool-step-num {
  background: color-mix(in srgb, var(--report-accent, #f07167) 18%, transparent);
  border-color: var(--report-accent, #f07167);
  color: var(--report-accent, #f07167);
}
.report-tool-step.is-done .report-tool-step-num {
  background: rgba(52, 211, 153, 0.15);
  border-color: var(--clr-green, #34d399);
  color: var(--clr-green, #34d399);
}
.report-tool-step-line {
  flex: 1;
  height: 2px;
  min-width: 1.25rem;
  max-width: 3rem;
  background: var(--clr-border);
  margin: 0 0.4rem;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.report-tool-step-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--report-accent, #f07167);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
html[dir="rtl"] .report-tool-step-line::after {
  transform-origin: right;
}
.report-tool-step-line.is-filled::after {
  transform: scaleX(1);
}

/* ── غلاف النموذج ── */
.report-tool-shell {
  text-align: start;
  border-radius: 22px;
  padding: 1.35rem 1.4rem 1.5rem;
  background: var(--clr-surface, #12122a);
  border: 1px solid color-mix(in srgb, var(--report-accent, #f07167) 22%, var(--clr-border));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 22px 56px rgba(0, 0, 0, 0.4);
}
html[data-bs-theme="light"] .report-tool-shell {
  background: var(--clr-surface, #fff);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.04) inset,
    0 16px 40px rgba(15, 23, 42, 0.08);
}
.report-tool-panel {
  width: 100%;
}

/* توافق أسماء قديمة */
.report-page-hero {
  border: 0;
  background: transparent;
  padding: 0;
  margin-bottom: 1.15rem;
  border-radius: 0;
}
.report-page-card {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  border-radius: 0;
}
.report-page-steps {
  display: none;
}

/* ── حقول الصفحة (scoped) ── */
#report-tool .rm-group {
  margin-bottom: 1.15rem;
  text-align: start;
}
#report-tool .rm-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--clr-txt2);
  margin-bottom: 0.45rem;
}
#report-tool .rm-label .rm-req {
  color: var(--report-accent, #f07167);
}
#report-tool .rm-input,
#report-tool .rm-select,
#report-tool .rm-textarea {
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  border-color: var(--clr-border);
  background: var(--clr-surface2, rgba(255, 255, 255, 0.04));
}
#report-tool .rm-input:focus,
#report-tool .rm-select:focus,
#report-tool .rm-textarea:focus {
  border-color: color-mix(in srgb, var(--report-accent, #f07167) 55%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--report-accent, #f07167) 14%, transparent);
}
#report-tool .rm-textarea {
  min-height: 7rem;
  line-height: 1.6;
}
#report-tool .rm-options-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.55rem;
}
#report-tool .rm-option-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--clr-border);
  background: var(--clr-surface2, rgba(255, 255, 255, 0.04));
  color: var(--clr-txt2);
  font-size: 0.84rem;
  font-weight: 650;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  user-select: none;
}
#report-tool .rm-option-btn input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
#report-tool .rm-option-btn:hover {
  border-color: color-mix(in srgb, var(--report-accent, #f07167) 45%, transparent);
  color: var(--report-accent, #f07167);
}
#report-tool .rm-option-btn.selected {
  border-color: color-mix(in srgb, var(--report-accent, #f07167) 65%, transparent);
  background: color-mix(in srgb, var(--report-accent, #f07167) 14%, transparent);
  color: var(--clr-txt);
}
#report-tool .rm-evidence-zone {
  border: 1.5px dashed color-mix(in srgb, var(--report-accent, #f07167) 35%, var(--clr-border));
  border-radius: 14px;
  padding: 1.25rem 1rem;
  background: color-mix(in srgb, var(--report-accent, #f07167) 4%, transparent);
}
#report-tool .rm-evidence-zone i {
  color: var(--report-accent, #f07167);
  font-size: 1.35rem;
  margin-bottom: 0.45rem;
  display: inline-block;
}
#report-tool .rm-evidence-drop {
  font-size: 0.88rem;
  color: var(--clr-txt2);
  font-weight: 600;
}
#report-tool .rm-evidence-zone:hover,
#report-tool .rm-evidence-zone.drag-over {
  border-color: var(--report-accent, #f07167);
  background: color-mix(in srgb, var(--report-accent, #f07167) 10%, transparent);
}
#report-tool .rm-btn-row {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.35rem;
  align-items: stretch;
}
#report-tool .rm-btn {
  flex: 1;
  border-radius: 12px;
  font-weight: 700;
  min-height: 2.75rem;
}
#report-tool .rm-btn-primary {
  background: var(--report-accent, #f07167);
  border-color: var(--report-accent, #f07167);
  color: #fff;
}
#report-tool .rm-btn-primary:hover {
  filter: brightness(1.06);
}
#report-tool .rm-btn-verify {
  background: #3b82f6;
  border-color: #3b82f6;
}
#report-tool .rm-btn-secondary {
  background: transparent;
  border: 1px solid var(--clr-border);
  color: var(--clr-txt2);
}
#report-tool .rm-btn-success {
  flex: none;
  padding: 0.65rem 1.75rem;
  background: var(--clr-green, #22c55e);
  border-color: var(--clr-green, #22c55e);
  color: #fff;
}
#report-tool .rm-success-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--clr-txt);
  margin-bottom: 0.35rem;
}
#report-tool .rm-success-note {
  font-size: 0.88rem;
  color: var(--clr-txt2);
  margin-bottom: 1rem;
}
#report-tool .rm-verify-box {
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, #f59e0b 28%, var(--clr-border));
  background: color-mix(in srgb, #f59e0b 8%, transparent);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  text-align: start;
}
#report-tool .rm-verify-title {
  font-weight: 800;
  margin-bottom: 0.35rem;
}
#report-tool .rm-verify-title i {
  color: #f59e0b;
}
#report-tool .rm-otp-hint {
  font-size: 0.9rem;
  color: var(--clr-txt2);
}
#report-tool .rm-otp-validity {
  color: var(--clr-sf, #3b82f6);
  font-weight: 600;
}
#report-tool .rm-success-icon--verified {
  color: #3b82f6;
}
#report-tool .rm-success-icon--verified i {
  color: #3b82f6;
}

/* صف الهاتف: LTR — مفتاح الدولة يسار، الرقم يمين */
.phone-cc-group {
  width: 100%;
}
.phone-cc-row-ltr {
  display: grid;
  grid-template-columns: minmax(8.75rem, 0.85fr) minmax(0, 1.65fr);
  align-items: end;
  gap: 0.5rem;
  width: 100%;
}
.phone-cc-prefix {
  width: 100%;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.phone-cc-group.is-open .phone-cc-prefix {
  z-index: 80;
}
.phone-cc-national {
  width: 100%;
  min-width: 0;
}
.phone-cc-input-digits {
  font-family: ui-monospace, monospace, system-ui;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.phone-country-picker-wrap {
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
  width: 100%;
}
.phone-country-toggle {
  flex: 1 1 auto;
  width: 100%;
  min-width: 6.25rem;
  border: 1px solid var(--bs-border-color, rgba(255, 255, 255, 0.2));
  background: var(--bs-tertiary-bg, rgba(255, 255, 255, 0.04));
  color: inherit;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0 0.55rem;
  height: 2.4rem;
}
.phone-cc-group.is-open .phone-country-toggle {
  border-color: color-mix(in srgb, var(--report-accent, #f07167) 45%, transparent);
  background: color-mix(in srgb, var(--report-accent, #f07167) 12%, transparent);
}
.phone-country-flag {
  font-size: 1rem;
  line-height: 1;
}
.phone-country-code-fixed {
  font-family: ui-monospace, monospace, system-ui;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.phone-country-arrow {
  font-size: 0.7rem;
  opacity: 0.8;
}
.phone-country-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 100;
  min-width: min(18rem, calc(100vw - 2rem));
  width: max(100%, 16rem);
  border: 1px solid var(--bs-border-color, rgba(255, 255, 255, 0.2));
  border-radius: 0.75rem;
  background: var(--clr-bg, var(--bs-body-bg, #0f1424));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
  padding: 0.5rem;
}
html[data-bs-theme="light"] .phone-country-menu {
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(15, 23, 42, 0.06);
}
.phone-country-search {
  margin-bottom: 0.45rem;
}
.phone-country-options {
  max-height: 260px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.phone-country-dynamic-options {
  display: contents;
}
.phone-country-option {
  border: none;
  background: transparent;
  color: inherit;
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: 1.7rem 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  font: inherit;
  line-height: 1.3;
}
.phone-country-option[hidden] {
  display: none !important;
}
a.phone-country-option:visited {
  color: inherit;
}
.phone-country-option:hover,
.phone-country-option:focus-visible {
  background: color-mix(in srgb, var(--report-accent, #f07167) 12%, transparent);
  outline: none;
  color: inherit;
  text-decoration: none;
}
.phone-country-option-flag {
  font-size: 1.05rem;
}
.phone-country-option-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.phone-country-option-code {
  font-family: ui-monospace, monospace, system-ui;
  opacity: 0.85;
}
html[dir="rtl"] .phone-cc-group .phone-cc-row-ltr label.text-end {
  text-align: right !important;
}

@media (max-width: 576px) {
  .report-tool-shell {
    padding: 1.05rem 0.95rem 1.2rem;
    border-radius: 18px;
  }
  .report-tool-step-label {
    font-size: 0.72rem;
  }
  .phone-cc-row-ltr {
    grid-template-columns: 1fr;
  }
  #report-tool .rm-options-row {
    grid-template-columns: 1fr 1fr;
  }
  #report-tool .rm-btn-row {
    flex-direction: column;
  }
}

/* ── صفحة الاعتراض — اختيار أسماء/بلاغات ── */
.objection-page-wrap {
  max-width: 640px;
}
.obj-target-section {
  border: 1px solid var(--bs-border-color, rgba(255, 255, 255, 0.1));
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.12);
}
.obj-target-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 280px;
  overflow-y: auto;
}
.obj-target-card {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bs-body-bg, #0f172a);
  margin: 0;
}
.obj-target-card__main {
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  margin: 0;
}
.obj-target-card--report .obj-target-card__main {
  grid-template-columns: auto 1fr;
}
.obj-target-card:has(input:checked) {
  border-color: rgba(59, 130, 246, 0.55);
  background: rgba(59, 130, 246, 0.08);
}
.obj-target-card--locked {
  opacity: 0.78;
}
.obj-target-card__main--disabled {
  cursor: not-allowed;
}
.obj-target-card--locked:has(input:disabled) {
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}
.obj-mode-section .obj-mode-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.obj-mode-option {
  flex: 1 1 12rem;
  margin: 0;
  cursor: pointer;
}
.obj-mode-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.obj-mode-option__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--bs-body-bg, #0f172a);
  font-weight: 600;
  font-size: 0.9rem;
  transition: border-color 0.15s, background 0.15s;
}
.obj-mode-option input:checked + .obj-mode-option__inner {
  border-color: rgba(59, 130, 246, 0.65);
  background: rgba(59, 130, 246, 0.12);
}
.obj-mode-option input:focus-visible + .obj-mode-option__inner {
  outline: 2px solid rgba(59, 130, 246, 0.45);
  outline-offset: 2px;
}
.obj-target-num {
  width: 1.6rem;
  text-align: center;
  font-weight: 700;
  opacity: 0.7;
  font-size: 0.85rem;
}
.obj-target-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
}
.obj-target-label {
  font-weight: 600;
  word-break: break-word;
}
.obj-target-meta {
  font-size: 0.85rem;
  line-height: 1.35;
}
