/* ==========================================================================
   غرفة الأخبار (Newsroom v6.0) — حُجرية بريس (Hujariya Press)
   الهوية التحريرية بأسلوب الجزيرة + اللمسة الزجاجية (Glassmorphism)
   - تصميم مدمج، واسع، وسريع الاستجابة مع مؤشرات تحميل تفاعلية للأزرار
   - متغيرات لونية ديناميكية تتحدث فوراً من غرفة التحكم
   ========================================================================== */

@font-face {
  font-family: 'AlJazeeraCustom';
  src: local('Al-Jazeera-Arabic-Regular'), local('Al-Jazeera-Arabic'), local('Al Jazeera Arabic');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'AlJazeeraCustom';
  src: local('Al-Jazeera-Arabic-Bold'), local('Al Jazeera Arabic Bold');
  font-weight: 700;
  font-display: swap;
}

:root {
  --brand-primary: #b80d38;
  --brand-dark: #8e0729;
  --brand-soft: rgba(184, 13, 56, 0.08);
  --brand-border: rgba(184, 13, 56, 0.22);
  --brand-shadow: 0 12px 32px -8px rgba(184, 13, 56, 0.16);

  --bg-page: #f3f5f9;
  --bg-surface: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.84);
  --bg-subtle: #edf0f6;

  --text-main: #0c0d0e;
  --text-body: #262932;
  --text-muted: #666c78;

  --border-light: #e5e8f0;
  --border-med: #cfd5e2;
  --border-glass: rgba(255, 255, 255, 0.65);

  --verified-blue: #0284c7;
  --success-green: #15803d;
  --warning-amber: #b45309;
  --danger-red: #b91c1c;

  --radius-xs: 7px;
  --radius-sm: 11px;
  --radius-md: 15px;
  --radius-lg: 20px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-editorial: 'AlJazeeraCustom', 'Almarai', 'Alexandria', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body.nr-body {
  font-family: var(--font-editorial);
  background:
    radial-gradient(circle at 12% 8%, var(--brand-soft), transparent 34%),
    radial-gradient(circle at 88% 90%, rgba(2, 132, 199, 0.04), transparent 36%),
    var(--bg-page);
  color: var(--text-main);
  direction: rtl;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

img {
  max-width: 100%;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
}

button {
  cursor: pointer;
  transition: all 0.22s var(--ease-out);
}

button:active:not(:disabled) {
  transform: scale(0.96);
}

button:disabled {
  opacity: 0.68;
  cursor: not-allowed;
}

.nr-container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 16px;
}

.nr-title-row {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.aj-pillar {
  width: 4.5px;
  height: 22px;
  background: linear-gradient(180deg, var(--brand-primary), var(--brand-dark));
  border-radius: 99px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px var(--brand-border);
}

.nr-brand-icon {
  color: var(--brand-primary);
  flex-shrink: 0;
}

/* ==================== 1. الأنيميشن وحالة التحميل التفاعلية للأزرار ==================== */
@keyframes nrFadeUp {
  from { opacity: 0; transform: translateY(10px) scale(0.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes nrSpin {
  to { transform: rotate(360deg); }
}

.nr-btn.is-loading {
  pointer-events: none;
  position: relative;
}

.nr-btn.is-loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2.2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  display: inline-block;
  animation: nrSpin 0.65s linear infinite;
}

/* ==================== 2. الأزرار، الحقول، والتبويبات المدمجة ==================== */
.nr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.87rem;
  font-weight: 800;
  border: 1px solid transparent;
  white-space: nowrap;
  max-width: 100%;
}

.nr-btn-primary {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(184, 13, 56, 0.22);
}

.nr-btn-primary:hover:not(:disabled) {
  box-shadow: 0 8px 22px rgba(184, 13, 56, 0.32);
  transform: translateY(-1px);
}

.nr-btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-med);
}

.nr-btn-secondary:hover:not(:disabled) {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background-color: var(--brand-soft);
}

.nr-btn-ghost {
  background-color: var(--bg-subtle);
  color: var(--text-body);
}

.nr-btn-ghost:hover:not(:disabled) {
  background-color: var(--brand-soft);
  color: var(--brand-primary);
}

.nr-btn-danger {
  background-color: #fef2f2;
  color: var(--danger-red);
  border-color: #fecaca;
}

.nr-btn-danger:hover:not(:disabled) {
  background-color: var(--danger-red);
  color: #ffffff;
}

.nr-btn-sm {
  padding: 6px 12px;
  font-size: 0.77rem;
  border-radius: var(--radius-xs);
}

.nr-btn-lg {
  padding: 12px 24px;
  font-size: 0.94rem;
}

.nr-btn-full {
  width: 100%;
}

.nr-link-btn {
  background: transparent;
  border: none;
  color: var(--brand-primary);
  font-size: 0.81rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nr-field {
  margin-bottom: 16px;
  width: 100%;
  min-width: 0;
}

.nr-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.nr-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.nr-label-row label {
  margin-bottom: 0;
}

.nr-counter-pill {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--text-muted);
  background-color: var(--bg-subtle);
  padding: 2px 9px;
  border-radius: 99px;
}

.nr-input,
.nr-textarea,
.nr-select {
  width: 100%;
  max-width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--text-main);
  font-size: 0.92rem;
  font-weight: 700;
  transition: all 0.2s var(--ease-out);
}

.nr-input-title {
  font-size: 1.08rem;
  font-weight: 900;
  padding: 14px 16px;
}

.nr-input:focus,
.nr-textarea:focus,
.nr-select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3.5px var(--brand-soft);
  outline: none;
}

.nr-textarea {
  resize: vertical;
  line-height: 1.75;
}

.nr-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

.nr-segmented-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  background-color: var(--bg-subtle);
  padding: 5px;
  border-radius: var(--radius-sm);
}

.nr-seg-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.nr-seg-tab.active {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(184, 13, 56, 0.22);
}

/* ==================== 3. بوابة تسجيل الدخول الزجاجية ==================== */
.nr-auth-gate {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top right, #280813 0%, #0b0c0e 74%);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
}

.nr-auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  opacity: 0.35;
}

.nr-orb-1 {
  width: 280px;
  height: 280px;
  background: var(--brand-primary);
  top: -60px;
  right: -60px;
}

.nr-orb-2 {
  width: 240px;
  height: 240px;
  background: #0284c7;
  bottom: -60px;
  left: -60px;
}

.nr-auth-card {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  border-top: 5px solid var(--brand-primary);
  padding: 28px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: nrFadeUp 0.3s var(--ease-out);
}

.nr-auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.nr-logo-capsule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.nr-logo-img {
  max-height: 28px;
  width: auto;
  object-fit: contain;
}

.nr-auth-titles h1 {
  font-size: 1.14rem;
  font-weight: 900;
}

.nr-auth-titles p {
  font-size: 0.77rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-top: 2px;
}

.nr-auth-form {
  margin-top: 18px;
}

.nr-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.nr-input-icon {
  position: absolute;
  right: 12px;
  color: var(--text-muted);
  font-size: 20px;
  pointer-events: none;
}

.nr-input-with-icon {
  padding-right: 40px;
  padding-left: 40px;
}

.nr-input-action {
  position: absolute;
  left: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 4px;
  display: inline-flex;
}

.nr-security-notice {
  background-color: #fff8eb;
  border: 1px solid #fde68a;
  border-right: 4px solid var(--warning-amber);
  border-radius: var(--radius-sm);
  padding: 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
}

.nr-security-notice .material-symbols-rounded {
  color: var(--warning-amber);
  font-size: 22px;
}

.nr-bound-account-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.nr-bound-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-primary);
}

.nr-bound-info {
  flex: 1;
  min-width: 0;
}

.nr-bound-info strong {
  display: block;
  font-size: 0.86rem;
}

.nr-bound-info span {
  font-family: monospace;
  font-size: 0.76rem;
  color: var(--brand-primary);
  font-weight: 900;
}

.nr-pin-field {
  text-align: center;
  font-size: 1.45rem;
  letter-spacing: 8px;
  font-weight: 900;
}

/* ==================== 4. الهيدر الزجاجي العلوي + الشريط السفلي الزجاجي ==================== */
.nr-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  border-bottom: 1.5px solid var(--border-light);
}

.nr-header-glass-bg {
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: -1;
}

.nr-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-dark));
}

.nr-header-inner {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nr-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nr-brand-main {
  font-size: 1.12rem;
  font-weight: 900;
}

.nr-brand-sub {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-muted);
  display: block;
  margin-right: 13px;
}

.nr-desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nr-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-body);
  font-size: 0.85rem;
  font-weight: 800;
}

.nr-nav-btn .material-symbols-rounded {
  font-size: 20px;
  color: var(--text-muted);
  transition: transform 0.22s var(--ease-spring), color 0.2s ease;
}

.nr-nav-btn:hover {
  background-color: var(--bg-subtle);
  color: var(--brand-primary);
}

.nr-nav-btn.active {
  background-color: var(--brand-soft);
  border-color: var(--brand-border);
  color: var(--brand-primary);
}

.nr-nav-btn.active .material-symbols-rounded {
  color: var(--brand-primary);
  transform: translateY(-1px);
}

.nr-badge-pill {
  background-color: var(--brand-primary);
  color: #ffffff;
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: 99px;
}

.nr-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nr-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 12px;
  border-radius: 99px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  text-align: right;
}

.nr-user-chip:hover {
  border-color: var(--brand-primary);
}

.nr-user-chip-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--brand-primary);
}

.nr-user-chip-meta span {
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.15;
}

.nr-user-chip-meta small {
  font-family: monospace;
  font-size: 0.68rem;
  font-weight: 900;
  color: var(--brand-primary);
}

.nr-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background-color: #ffffff;
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nr-icon-btn:hover {
  background-color: var(--brand-primary);
  color: #ffffff;
}

.nr-mobile-bottom-nav {
  display: none;
}

/* ==================== 5. مساحة العمل، الإحصائيات المدمجة (Bento)، والبحث الذكي ==================== */
.nr-workspace {
  flex: 1;
  padding-top: 18px;
  padding-bottom: 48px;
  width: 100%;
  min-width: 0;
}

.nr-view {
  animation: nrFadeUp 0.26s var(--ease-out);
}

.nr-glass-banner {
  background: rgba(255, 241, 242, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid #fecdd3;
  border-right: 4px solid var(--brand-primary);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.nr-banner-amber {
  background: rgba(255, 251, 235, 0.92);
  border-color: #fde68a;
  border-right-color: var(--warning-amber);
}

.nr-banner-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 800;
  flex: 1;
  min-width: 200px;
}

.nr-banner-info .material-symbols-rounded {
  color: var(--brand-primary);
}

.nr-hero-strip {
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: 0 4px 18px rgba(12, 13, 14, 0.03);
}

.nr-hero-meta h1 {
  font-size: 1.15rem;
  font-weight: 900;
}

.nr-hero-meta p {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-top: 2px;
}

.nr-hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* شبكة الإحصائيات المدمجة (Bento Grid) */
.nr-stats-bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.nr-stat-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row-reverse;
  gap: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(12, 13, 14, 0.025);
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out);
}

.nr-stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 3.5px;
  background-color: var(--brand-primary);
}

.nr-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--brand-shadow);
}

.nr-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background-color: var(--brand-soft);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nr-icon-amber { background-color: #fef3c7; color: #b45309; }
.nr-icon-slate { background-color: #e2e8f0; color: #334155; }
.nr-icon-blue { background-color: #e0f2fe; color: #0369a1; }

.nr-stat-info {
  flex: 1;
  min-width: 0;
}

.nr-stat-info span {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nr-stat-info strong {
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.2;
}

.nr-surface-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 0 4px 18px rgba(12, 13, 14, 0.03);
}

.nr-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.nr-card-header h2 {
  font-size: 1.04rem;
  font-weight: 900;
}

.nr-filter-scroll {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
}

.nr-filter-scroll::-webkit-scrollbar {
  display: none;
}

.nr-filter-chip {
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid var(--border-light);
  background-color: var(--bg-subtle);
  color: var(--text-body);
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.nr-filter-chip.active {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
  border-color: var(--brand-primary);
  color: #ffffff;
}

.nr-smart-search {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.nr-search-icon {
  position: absolute;
  right: 13px;
  color: var(--brand-primary);
  pointer-events: none;
}

.nr-search-input {
  padding-right: 42px;
  padding-left: 38px;
  background-color: var(--bg-page);
}

.nr-search-clear {
  position: absolute;
  left: 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
}

.nr-articles-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nr-article-row {
  border: 1px solid var(--border-light);
  border-right: 3.5px solid var(--brand-primary);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background-color: #ffffff;
  transition: all 0.22s var(--ease-out);
}

.nr-article-row:hover {
  border-color: var(--brand-border);
  box-shadow: var(--brand-shadow);
  transform: translateY(-1px);
}

.nr-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 800;
}

.st-published { background: #dcfce7; color: #15803d; }
.st-pending { background: #fef3c7; color: #b45309; }
.st-draft { background: #e2e8f0; color: #334155; }
.st-rejected { background: #fee2e2; color: #b91c1c; }

.nr-pagination-bar {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.nr-page-indicator {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-muted);
}

.nr-empty-state {
  border: 1.5px dashed var(--border-med);
  border-radius: var(--radius-sm);
  padding: 30px 16px;
  text-align: center;
  color: var(--text-muted);
  font-weight: 800;
}

.nr-empty-state .material-symbols-rounded {
  font-size: 38px;
  color: var(--brand-primary);
  opacity: 0.65;
  margin-bottom: 6px;
}

/* ==================== 6. استديو النشر المرحلي + وضع ملء الشاشة ==================== */
.nr-studio-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 6px 26px rgba(12, 13, 14, 0.04);
}

/* وضع ملء الشاشة للتركيز أثناء الكتابة */
.nr-studio-card.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 8000;
  border-radius: 0;
  overflow-y: auto;
  background-color: var(--bg-page);
}

.nr-studio-header {
  padding: 15px 20px;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.nr-studio-header h2 {
  font-size: 1.06rem;
  font-weight: 900;
}

.nr-studio-top-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nr-autosave-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  padding: 4px 11px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 800;
}

.nr-autosave-chip .material-symbols-rounded {
  font-size: 16px;
}

/* التبويبات المرحلية الثلاثة */
.nr-step-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
}

.nr-step-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  border-left: 1px solid var(--border-light);
  text-align: right;
  color: var(--text-body);
  min-width: 0;
}

.nr-step-tab:last-child {
  border-left: none;
}

.nr-step-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 2px solid var(--border-med);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 900;
  flex-shrink: 0;
}

.nr-step-text {
  flex: 1;
  min-width: 0;
}

.nr-step-text strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nr-step-text small {
  display: block;
  font-size: 0.71rem;
  color: var(--text-muted);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nr-step-lock-icon {
  font-size: 18px;
  color: var(--text-muted);
}

.nr-step-tab.active {
  background-color: #ffffff;
  border-bottom-color: var(--brand-primary);
  color: var(--brand-primary);
}

.nr-step-tab.active .nr-step-badge {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #ffffff;
}

.nr-step-tab.completed .nr-step-badge {
  background-color: var(--success-green);
  border-color: var(--success-green);
  color: #ffffff;
}

.nr-step-tab.locked {
  opacity: 0.58;
}

.nr-studio-body {
  padding: 24px 20px;
}

.nr-focused-stage {
  max-width: 760px;
  margin: 0 auto;
}

.nr-category-lock-banner {
  background-color: var(--brand-soft);
  border: 1px solid var(--brand-border);
  color: var(--brand-primary);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 800;
}

.nr-media-merged-box {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.nr-upload-tile {
  border: 2px dashed var(--brand-border);
  background-color: var(--brand-soft);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  margin-bottom: 0 !important;
  transition: all 0.2s ease;
}

.nr-upload-tile:hover {
  background-color: rgba(184, 13, 56, 0.13);
}

.nr-upload-tile .material-symbols-rounded {
  font-size: 30px;
  color: var(--brand-primary);
  margin-bottom: 4px;
}

.nr-upload-tile strong {
  font-size: 0.82rem;
  color: var(--brand-primary);
}

.nr-upload-tile small {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.nr-media-preview-strip {
  margin-top: 10px;
  padding: 8px 12px;
  background-color: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
}

.nr-media-preview-strip img {
  width: 68px;
  height: 46px;
  object-fit: cover;
  border-radius: 6px;
}

.nr-media-preview-info {
  flex: 1;
  min-width: 0;
}

.nr-media-preview-info strong {
  display: block;
  font-size: 0.82rem;
}

.nr-media-preview-info small {
  font-size: 0.72rem;
  color: var(--success-green);
  font-weight: 800;
}

.nr-tags-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.nr-tag-chip {
  padding: 4px 11px;
  border-radius: 99px;
  border: 1px solid var(--border-light);
  background-color: var(--bg-subtle);
  color: var(--text-body);
  font-size: 0.75rem;
  font-weight: 800;
}

.nr-tag-chip:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background-color: var(--brand-soft);
}

/* المرحلة 3: المحرر وشريط الأولويات المدمج */
.nr-editor-summary-bar {
  background-color: var(--bg-page);
  border: 1px solid var(--border-light);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.nr-editor-summary-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.nr-cat-badge {
  background-color: var(--brand-primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 5px;
  flex-shrink: 0;
}

.nr-editor-summary-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nr-editor-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  padding: 9px 10px;
  background: rgba(237, 240, 246, 0.92);
  backdrop-filter: blur(12px);
  border: 1.5px solid var(--border-med);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  position: sticky;
  top: 62px;
  z-index: 25;
}

.nr-tool-btn {
  height: 35px;
  min-width: 35px;
  padding: 0 8px;
  border-radius: 7px;
  border: 1px solid var(--border-light);
  background-color: #ffffff;
  color: var(--text-body);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.76rem;
  font-weight: 800;
}

.nr-tool-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.nr-tool-accent {
  background-color: var(--brand-soft);
  border-color: var(--brand-border);
  color: var(--brand-primary);
}

.nr-tool-divider {
  width: 1px;
  height: 22px;
  background-color: var(--border-med);
  margin: 0 2px;
}

.nr-rich-editor {
  min-height: 430px;
  padding: 24px;
  border: 1.5px solid var(--border-med);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background-color: #ffffff;
  font-size: 1.08rem;
  line-height: 1.95;
  outline: none;
  overflow-wrap: break-word;
}

.nr-rich-editor:focus {
  border-color: var(--brand-primary);
}

.nr-rich-editor[placeholder]:empty::before {
  content: attr(placeholder);
  color: #9ca3af;
  pointer-events: none;
}

.nr-rich-editor p { margin-bottom: 14px; }
.nr-rich-editor h2, .nr-rich-editor h3 {
  margin: 20px 0 10px;
  padding-right: 10px;
  border-right: 4px solid var(--brand-primary);
  font-weight: 900;
}
.nr-rich-editor blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  background: var(--brand-soft);
  border-right: 4px solid var(--brand-primary);
  border-radius: 6px;
  font-weight: 700;
}
.nr-rich-editor figure,
.nr-rich-editor .inline-article-figure {
  margin: 18px auto;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.nr-rich-editor img {
  max-width: 100%;
  max-height: 440px;
  margin: 0 auto;
}
.nr-rich-editor figcaption {
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
}

/* شريط الأولويات والنشر المدمج أسفل المحرر */
.nr-merged-publish-dock {
  margin-top: 18px;
  padding: 14px 16px;
  background-color: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.nr-priority-chips-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nr-dock-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-muted);
}

.nr-prio-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid var(--border-med);
  background-color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.nr-prio-toggle input {
  accent-color: var(--brand-primary);
}

.nr-prio-toggle .material-symbols-rounded {
  font-size: 17px;
  color: var(--brand-primary);
}

.nr-publish-buttons-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nr-stage-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nr-footer-end { justify-content: flex-end; }
.nr-footer-split { justify-content: space-between; }

/* ==================== 7. الدرج الزجاجي المنزلق لدفتر الملاحظات الذكي ==================== */
.nr-drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(12, 13, 14, 0.55);
  backdrop-filter: blur(4px);
  z-index: 8800;
}

.nr-notes-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-light);
  z-index: 8900;
  display: flex;
  flex-direction: column;
  box-shadow: 16px 0 44px rgba(0, 0, 0, 0.22);
  animation: nrFadeUp 0.24s var(--ease-out);
}

.nr-drawer-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nr-drawer-header h2 {
  font-size: 1.02rem;
  font-weight: 900;
}

.nr-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
}

.nr-note-composer {
  background-color: var(--bg-page);
  border: 1px solid var(--border-light);
  padding: 14px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}

.nr-note-composer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nr-drawer-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.84rem;
  font-weight: 900;
  color: var(--text-muted);
}

.nr-notes-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nr-note-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-right: 3.5px solid var(--brand-primary);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.nr-note-card h3 {
  font-size: 0.92rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.nr-note-card p {
  font-size: 0.82rem;
  color: var(--text-body);
  margin-bottom: 10px;
  white-space: pre-line;
}

.nr-note-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}

/* ==================== 8. ملفي الشخصي، بطاقة الهوية (HP#####)، والتبويبات المدمجة ==================== */
.nr-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 330px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.nr-id-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(12, 13, 14, 0.05);
}

.nr-id-card-header {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
  color: #ffffff;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
  font-weight: 900;
}

.nr-id-brand-tag {
  font-size: 0.7rem;
  opacity: 0.9;
}

.nr-id-card-body {
  padding: 20px 16px;
  text-align: center;
}

.nr-avatar-ring {
  position: relative;
  width: 106px;
  height: 106px;
  margin: 0 auto 12px;
}

.nr-profile-avatar {
  width: 106px;
  height: 106px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--brand-primary);
}

.nr-avatar-cam-btn {
  position: absolute;
  bottom: 2px;
  left: 2px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--brand-primary);
  color: #ffffff;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.nr-id-name-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nr-id-name-wrap h2 {
  font-size: 1.15rem;
  font-weight: 900;
}

.nr-verified-badge {
  color: var(--verified-blue);
  font-size: 20px;
}

.nr-id-job {
  font-size: 0.79rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 14px;
}

.nr-press-id-banner {
  background-color: #111317;
  color: #ffffff;
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.nr-press-id-banner small {
  display: block;
  font-size: 0.7rem;
  color: #a1a1aa;
  margin-bottom: 4px;
}

.nr-press-id-code-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.nr-press-id-code-row strong {
  font-family: monospace;
  font-size: 1.35rem;
  letter-spacing: 2px;
}

.nr-copy-btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nr-age-highlight-box {
  background-color: var(--brand-soft);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: right;
}

.nr-age-highlight-box .material-symbols-rounded {
  color: var(--brand-primary);
  font-size: 22px;
}

.nr-age-highlight-box small {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 700;
}

.nr-age-highlight-box strong {
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--brand-primary);
}

.nr-id-meta-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8rem;
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
}

.nr-id-meta-row {
  display: flex;
  justify-content: space-between;
}

.nr-id-contact-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.nr-helper-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 16px;
}

.nr-linked-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nr-quick-contact-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nr-wa-btn { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.nr-mail-btn { background: var(--brand-soft); color: var(--brand-primary); border: 1px solid var(--brand-border); }

.nr-live-age-pill {
  min-height: 45px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background-color: var(--brand-soft);
  border: 1px solid var(--brand-border);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  font-weight: 900;
}

.nr-kyc-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr));
  gap: 12px;
}

.nr-kyc-drop-card {
  border: 1.5px dashed var(--border-med);
  border-radius: var(--radius-sm);
  padding: 12px;
  background-color: var(--bg-page);
  text-align: center;
}

.nr-kyc-drop-label {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  margin-bottom: 0 !important;
}

.nr-kyc-drop-label .material-symbols-rounded {
  font-size: 26px;
  color: var(--brand-primary);
}

.nr-kyc-preview-box {
  margin-top: 8px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.nr-kyc-preview-box img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

/* ==================== 9. النوافذ الزجاجية (المعاينة الحية، الميثاق، والتأكيد الآمن) ==================== */
.nr-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(12, 13, 14, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.nr-modal-card {
  background: rgba(255, 255, 255, 0.97);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  border-top: 5px solid var(--brand-primary);
  padding: 22px 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  animation: nrFadeUp 0.25s var(--ease-out);
}

.nr-modal-lg {
  max-width: 820px;
}

.nr-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.nr-modal-header h2 {
  font-size: 1.08rem;
  font-weight: 900;
}

.nr-modal-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* نافذة التأكيد التفاعلية الموحدة */
.nr-confirm-card {
  max-width: 420px;
  text-align: center;
  padding: 26px 22px;
}

.nr-confirm-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--brand-soft);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.nr-confirm-icon-wrap .material-symbols-rounded {
  font-size: 30px;
}

.nr-confirm-card h3 {
  font-size: 1.12rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.nr-confirm-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  font-weight: 700;
}

.nr-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

/* قارئ المعاينة الحية للمقال */
.nr-preview-reader {
  background-color: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px;
}

.nr-preview-reader h1 {
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.45;
  margin: 10px 0 12px;
}

.nr-preview-summary {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-body);
  padding: 12px 14px;
  background-color: #ffffff;
  border-right: 4px solid var(--brand-primary);
  border-radius: 6px;
  margin-bottom: 16px;
}

.nr-preview-content {
  font-size: 1.05rem;
  line-height: 1.9;
}

/* عناصر ميثاق الشرف والتوقيع */
.nr-pledge-lead {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-body);
  margin-bottom: 10px;
}

.nr-charter-box {
  height: 160px;
  overflow-y: auto;
  background-color: var(--bg-page);
  border: 1px solid var(--border-med);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 0.85rem;
  line-height: 1.75;
  margin-bottom: 12px;
}

.nr-charter-box h3 {
  color: var(--brand-primary);
  font-size: 0.92rem;
  margin: 8px 0 4px;
}

.nr-sig-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.nr-sig-slot {
  height: 56px;
  border: 1px dashed var(--border-med);
  border-radius: var(--radius-xs);
  background-color: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  overflow: hidden;
}

.nr-sig-slot.filled {
  border-style: solid;
  border-color: var(--success-green);
  background-color: #f0fdf4;
}

.nr-sig-slot img {
  max-height: 48px;
  width: auto;
}

.nr-sig-pad-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 800;
}

.nr-signature-canvas {
  width: 100%;
  height: 155px;
  background-color: #ffffff;
  border: 2px dashed var(--brand-primary);
  border-radius: var(--radius-sm);
  cursor: crosshair;
  touch-action: none;
}

/* ==================== 10. التذييل والتوست (Toast) ==================== */
.nr-footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 14px 0;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.nr-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.nr-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nr-footer-logo {
  max-height: 24px;
  width: auto;
}

.nr-toast {
  position: fixed;
  bottom: 76px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(12, 13, 14, 0.94);
  backdrop-filter: blur(10px);
  color: #ffffff;
  border-right: 4px solid var(--brand-primary);
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.83rem;
  font-weight: 800;
  z-index: 12000;
  width: max-content;
  max-width: calc(100vw - 28px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}

/* ==================== 11. التجاوب مع الجوال والشاشات الصغيرة ==================== */
@media (max-width: 940px) {
  .nr-profile-layout,
  .nr-grid-2,
  .nr-media-merged-box {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 780px) {
  .nr-container {
    padding: 0 12px;
  }

  .nr-header-inner {
    height: 54px;
  }

  .nr-desktop-nav,
  .nr-brand-sub,
  .nr-user-chip-meta {
    display: none;
  }

  .nr-user-chip {
    padding: 3px;
    border-radius: 50%;
  }

  /* شريط الجوال السفلي الزجاجي الفاخر */
  .nr-mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    height: 62px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--border-light);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 5px 6px;
    z-index: 900;
    box-shadow: 0 -4px 20px rgba(12, 13, 14, 0.06);
  }

  .nr-mob-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: 10px;
    padding: 3px 2px;
    position: relative;
    min-width: 0;
  }

  .nr-mob-nav-item .material-symbols-rounded {
    font-size: 21px;
    padding: 2px 12px;
    border-radius: 99px;
    transition: all 0.24s var(--ease-spring);
  }

  .nr-mob-nav-label {
    font-size: 0.65rem;
    font-weight: 800;
    white-space: nowrap;
  }

  .nr-mob-nav-item.active {
    color: var(--brand-primary);
  }

  .nr-mob-nav-item.active .material-symbols-rounded {
    background-color: var(--brand-soft);
    color: var(--brand-primary);
    transform: translateY(-1px);
  }

  .nr-mob-badge {
    position: absolute;
    top: 3px;
    left: 20%;
    background-color: var(--brand-primary);
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 0 5px;
    border-radius: 99px;
  }

  /* تحويل الإحصائيات الأربع إلى شبكة 2x2 مدمجة على الجوال */
  .nr-stats-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .nr-stat-card {
    padding: 11px 12px;
  }

  .nr-stat-icon {
    width: 36px;
    height: 36px;
  }

  .nr-stat-info strong {
    font-size: 1.18rem;
  }

  .nr-step-tab {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding: 10px 4px;
  }

  .nr-step-text small,
  .nr-step-lock-icon {
    display: none;
  }

  .nr-step-text strong {
    font-size: 0.74rem;
  }

  .nr-workspace {
    padding-top: 12px;
    padding-bottom: 84px;
  }

  .nr-footer {
    padding-bottom: 76px;
  }

  .nr-surface-card,
  .nr-studio-body {
    padding: 14px;
  }

  .nr-rich-editor {
    min-height: 330px;
    padding: 14px;
  }
}
