/* مُولَّد آليًا من pages.css — لا تحرّره يدويًا.
   أعد التوليد بـ:  py -3.12 scripts/build_css_shared_subset.py
   يحوي فقط القواعد التي يمكن أن تنطبق على الصفحات التي لا تحمّل
   الحزمة الكاملة، بترتيبها الأصلي وفي نفس موضع التتالي. */

.hidden { display: none !important; }

.spinner-inline {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: var(--radius-full);
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin: 0 4px;
}

body.nw-submit-overlay-open {
  overflow: hidden;
}

.nw-submit-overlay {
  position: fixed;
  inset: 0;
  z-index: 1800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.nw-submit-overlay.visible {
  opacity: 1;
}

.nw-submit-overlay-card {
  width: min(100%, 420px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(219, 228, 238, 0.92);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 255, 0.96) 100%);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.18);
}

.nw-submit-overlay-spinner-wrap {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(103, 58, 183, 0.12) 0%, rgba(103, 58, 183, 0.04) 100%);
  border: 1px solid rgba(103, 58, 183, 0.12);
}

.nw-submit-overlay-spinner.spinner-inline {
  width: 24px;
  height: 24px;
  margin: 0;
  border-width: 3px;
  border-color: rgba(103, 58, 183, 0.16);
  border-top-color: var(--color-primary);
}

.nw-submit-overlay-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.nw-submit-overlay-title {
  color: #1f2937;
  font-size: 16px;
  font-weight: 900;
}

.nw-submit-overlay-message {
  margin: 0;
  color: #52606d;
  font-size: 13px;
  line-height: 1.8;
  font-weight: 700;
}

@media (max-width: 640px) {
  .nw-submit-overlay {
    padding: 16px;
  }

  .nw-submit-overlay-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 16px;
  }

  .nw-submit-overlay-copy {
    justify-items: center;
  }
}

.footer-brand { display: flex; flex-direction: column; }


.auth-page {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - var(--navbar-height));
  padding: var(--space-xl);
  background: var(--color-bg);
}
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2xl);
  border: 1px solid var(--color-border);
}
.auth-card-wide { max-width: 560px; }
.auth-header { text-align: center; margin-bottom: var(--space-xl); }
.auth-title {
  font-size: 22px; font-weight: 800;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}
.auth-desc {
  font-size: 14px; color: var(--color-text-secondary);
  line-height: 1.6;
}
.auth-card .btn-primary,
.auth-card .btn-secondary,
.auth-card .btn-primary-lg,
.auth-card .btn-outlined {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}
.auth-card .btn-primary .spinner,
.auth-card .btn-primary-lg .spinner {
  width: 18px;
  height: 18px;
  border-width: 2px;
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
}
.auth-card .btn-secondary .spinner,
.auth-card .btn-outlined .spinner {
  width: 18px;
  height: 18px;
  border-width: 2px;
  border-color: rgba(103, 58, 183, 0.25);
  border-top-color: var(--color-primary);
}
.auth-grid { display: grid; gap: var(--space-md); }
.auth-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 500px) { .auth-grid-2 { grid-template-columns: 1fr; } }


.auth-page {
  padding: clamp(14px, 4vw, var(--space-xl));
}

.auth-card {
  max-width: min(100%, 420px);
  padding: clamp(18px, 4vw, var(--space-2xl));
  overflow-x: clip;
}

.auth-card-wide {
  max-width: min(100%, 560px);
}

@media (max-width: 420px) {
  .auth-title {
    font-size: 20px;
  }

  .auth-desc,
  .page-subtitle {
    font-size: 13px;
  }

  .auth-divider {
    gap: 10px;
    margin-block: 18px;
  }
}

@media (max-width: 360px) {
  .auth-page {
    padding: 12px;
  }

  .auth-card {
    border-radius: 20px;
    padding: 16px 14px;
  }

  .auth-grid-2 {
    grid-template-columns: 1fr;
  }

  .auth-card .btn-primary,
  .auth-card .btn-secondary,
  .auth-card .btn-primary-lg,
  .auth-card .btn-outlined {
    min-height: 50px;
    font-size: 14px;
  }
}

.terms-check {
  display: flex; align-items: flex-start; gap: var(--space-sm);
  font-size: 13px; color: var(--color-text-secondary);
  margin-bottom: var(--space-lg); line-height: 1.5;
}
.terms-check input[type="checkbox"] {
  width: 18px; height: 18px; flex-shrink: 0;
  accent-color: var(--color-primary);
  margin-top: 2px;
}
.terms-check a { color: var(--color-primary); text-decoration: underline; }


.auth-gate.auth-gate-unified {
  width: min(100%, 760px);
  margin-inline: auto;
  min-height: clamp(340px, 56vh, 540px);
  gap: 14px;
  padding: clamp(22px, 3vw, 34px) clamp(16px, 2.6vw, 26px);
  border-radius: 28px;
  border: 1px solid rgba(77, 74, 138, 0.2);
  background:
    radial-gradient(circle at 14% 8%, rgba(14, 116, 144, 0.16), transparent 42%),
    radial-gradient(circle at 90% 100%, rgba(103, 58, 183, 0.18), transparent 44%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(244, 247, 255, 0.95));
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.auth-gate.auth-gate-unified::before {
  content: "";
  position: absolute;
  inset-inline: 18px;
  top: 0;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(14, 116, 144, 0), rgba(14, 116, 144, 0.6), rgba(103, 58, 183, 0.62), rgba(103, 58, 183, 0));
  pointer-events: none;
}

.auth-gate.auth-gate-unified .auth-gate-unified-kicker {
  margin: 0;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 12px;
  border: 1px solid rgba(14, 116, 144, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: #0c5f73;
  font-family: 'Cairo', sans-serif;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
}

.auth-gate.auth-gate-unified .auth-gate-unified-icon {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 24% 18%, rgba(14, 116, 144, 0.22), rgba(14, 116, 144, 0.08)),
    linear-gradient(145deg, #ffffff, #eef5ff);
  border: 1px solid rgba(14, 116, 144, 0.2);
  color: #0f5e8a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 12px 24px rgba(14, 116, 144, 0.16);
}

.auth-gate.auth-gate-unified .auth-gate-unified-title {
  margin: 0;
  color: #0f172a;
  font-family: 'Cairo', sans-serif;
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 900;
  line-height: 1.35;
}

.auth-gate.auth-gate-unified .auth-gate-unified-desc {
  margin: 0;
  color: #475569;
  font-family: 'Cairo', sans-serif;
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.8;
  max-width: 56ch;
}

.auth-gate.auth-gate-unified .auth-gate-unified-btn {
  min-width: 210px;
  min-height: 56px;
  border-radius: 16px;
  padding-inline: 28px;
  margin-top: 4px;
}

.auth-gate.auth-gate-unified .auth-gate-unified-note {
  margin: 2px 0 0;
  font-family: 'Cairo', sans-serif;
  color: #64748b;
  font-size: 12px;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .auth-gate.auth-gate-unified {
    min-height: clamp(300px, 52vh, 420px);
    padding: 20px 14px;
    gap: 11px;
    border-radius: 22px;
  }

  .auth-gate.auth-gate-unified .auth-gate-unified-icon {
    width: 78px;
    height: 78px;
  }

  .auth-gate.auth-gate-unified .auth-gate-unified-kicker {
    min-height: 26px;
    font-size: 10.5px;
    padding-inline: 10px;
  }

  .auth-gate.auth-gate-unified .auth-gate-unified-title {
    font-size: 22px;
  }

  .auth-gate.auth-gate-unified .auth-gate-unified-desc {
    font-size: 14px;
  }

  .auth-gate.auth-gate-unified .auth-gate-unified-btn {
    min-width: 184px;
    min-height: 52px;
  }
}


.form-error {
  font-size: 12px; color: var(--color-error);
  margin-top: var(--space-xs); font-weight: 600;
}
.form-hint {
  font-size: 12px; color: var(--color-text-tertiary);
  margin-top: var(--space-xs);
}
.form-actions {
  display: flex; gap: var(--space-md);
  padding-top: var(--space-lg);
  flex-wrap: wrap;
}
.success-card {
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  max-width: 420px; width: 100%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: scaleIn 0.3s ease forwards;
}
.success-icon {
  width: 72px; height: 72px;
  border-radius: var(--radius-full);
  background: #E8F5E9; color: var(--color-success);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-lg);
}
.success-title { font-size: 20px; font-weight: 800; color: var(--color-text); margin-bottom: var(--space-sm); }

.btn-danger {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  font-family: 'Cairo', sans-serif;
  font-size: 14px; font-weight: 700;
  background: var(--color-error); color: #fff;
  border: none; cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-danger:hover { filter: brightness(1.1); }

.btn-danger-outline {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  font-family: 'Cairo', sans-serif;
  font-size: 14px; font-weight: 700;
  background: transparent;
  color: var(--color-error);
  border: 2px solid var(--color-error);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-danger-outline:hover { background: rgba(239,68,68,.06); }

@keyframes urToastTimer {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

@keyframes rqToastTimer {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

@keyframes rqSubmitSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes pd-reviews-scroll {
  0% { transform: translateX(calc(-50% - (var(--space-md) / 2))); }
  100% { transform: translateX(0); }
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes pv2spin { to { transform: rotate(360deg); } }
@keyframes nw-onb-media-shimmer {
  from { background-position: 180% 0; }
  to   { background-position: -80% 0; }
}

@keyframes ob-float {
  0%, 100% { transform: translateY(0) scale(1); opacity: .4; }
  50%      { transform: translateY(-40px) scale(1.5); opacity: .8; }
}
@keyframes ob-spin { to { transform: rotate(360deg); } }
@keyframes ob-card-in {
  from { opacity: 0; transform: translateY(40px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes ob-icon-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 16px 40px rgba(103,58,183,.2); }
  50%      { transform: scale(1.06); box-shadow: 0 20px 52px rgba(103,58,183,.28); }
}
@keyframes ob-fadeUp {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}


@keyframes ob-shake {
  0%, 100% { transform: translateX(0); }
  20%  { transform: translateX(-6px); }
  40%  { transform: translateX(6px); }
  60%  { transform: translateX(-4px); }
  80%  { transform: translateX(4px); }
}

.pd-report-backdrop {
  position: fixed;
  inset: 0;
  z-index: 490;
  background: rgba(0, 0, 0, 0.44);
  opacity: 0;
  transition: opacity 0.18s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}
.pd-report-backdrop.open {
  opacity: 1;
}
.pd-report-dialog {
  width: min(520px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  background: var(--color-surface);
  border-radius: 16px;
  padding: 14px;
  transform: translateY(14px);
  transition: transform 0.18s ease;
}
.pd-report-backdrop.open .pd-report-dialog {
  transform: translateY(0);
}
.pd-report-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.pd-report-title-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 152, 0, 0.14);
  color: #F57C00;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pd-report-title {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--color-text);
}
.pd-report-info {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface-alt);
  padding: 10px;
  margin-bottom: 12px;
}
.pd-report-info-label {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: var(--color-text);
}
.pd-report-info-value {
  margin: 6px 0 0;
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text);
}
.pd-report-context {
  margin: 6px 0 0;
  font-family: 'Cairo', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-tertiary);
}
.pd-report-label {
  display: block;
  margin: 10px 0 6px;
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text);
}
.pd-report-select,
.pd-report-textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  color: var(--color-text);
  padding: 10px;
}
.pd-report-textarea {
  resize: vertical;
  min-height: 96px;
}
.pd-report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}
.pd-report-btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.pd-report-btn-cancel {
  background: transparent;
  color: var(--color-text-tertiary);
}
.pd-report-btn-submit {
  background: #F57C00;
  color: #fff;
}

@keyframes pdPremiumRise {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}