/* ============================================
   Namayeshgah Frontend — Premium Design System
   Smooth animations · RTL-first
   ============================================ */

@font-face {
  font-family: 'IRANYekan';
  src: url('/wp-content/themes/carchii-skin/fonts/iranyekanwebregularfanum.woff') format('woff'),
       url('/wp-content/themes/carchii-skin/fonts/iranyekanwebregularfanum.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANYekan';
  src: url('/wp-content/themes/carchii-skin/fonts/iranyekanwebmediumfanum.woff') format('woff'),
       url('/wp-content/themes/carchii-skin/fonts/iranyekanwebmediumfanum.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANYekan';
  src: url('/wp-content/themes/carchii-skin/fonts/iranyekanwebboldfanum.woff') format('woff'),
       url('/wp-content/themes/carchii-skin/fonts/iranyekanwebboldfanum.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANYekan';
  src: url('/wp-content/themes/carchii-skin/fonts/iranyekanwebextraboldfanum.woff') format('woff'),
       url('/wp-content/themes/carchii-skin/fonts/iranyekanwebextraboldfanum.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --nm-primary: #C74B50;
  --nm-primary-hover: #b03e43;
  --nm-primary-light: #f5e4e5;
  --nm-primary-glow: rgba(199, 75, 80, 0.18);
  --nm-gradient: linear-gradient(135deg, #C74B50 0%, #b03e43 100%);

  --nm-surface: #f5f5f4;
  --nm-surface-alt: #f0f0f0;

  --nm-success: #059669;
  --nm-success-light: #d1fae5;
  --nm-success-glow: rgba(5, 150, 105, 0.2);

  --nm-danger: #dc2626;
  --nm-danger-light: #fee2e2;
  --nm-danger-glow: rgba(220, 38, 38, 0.2);

  --nm-warning: #d97706;
  --nm-warning-light: #fef3c7;

  --nm-info: #0284c7;
  --nm-info-light: #e0f2fe;

  --nm-text: #3a3a3a;
  --nm-text-secondary: #616161;
  --nm-text-muted: #999999;

  --nm-bg: #f5f5f4;
  --nm-bg-card: #ffffff;
  --nm-bg-elevated: #f0f0f0;

  --nm-border: #e3e3e3;
  --nm-border-light: #eaeaea;

  --nm-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --nm-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --nm-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --nm-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.07);
  --nm-shadow-xl: 0 20px 50px -8px rgba(0, 0, 0, 0.1);

  --nm-radius-sm: 6px;
  --nm-radius: 10px;
  --nm-radius-lg: 16px;
  --nm-radius-xl: 24px;

  --nm-font: 'IRANYekan', 'Vazirmatn', tahoma, 'Segoe UI', system-ui, sans-serif;
  --nm-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --nm-transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --nm-transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

:root[data-theme="night"] {
  --nm-primary: #C74B50;
  --nm-primary-hover: #d85c61;
  --nm-primary-light: #2a1a1a;
  --nm-primary-glow: rgba(199, 75, 80, 0.2);

  --nm-surface: #1a1c1e;
  --nm-surface-alt: #222426;

  --nm-success: #4ade80;
  --nm-success-light: #1a2e1a;
  --nm-success-glow: rgba(74, 222, 128, 0.15);
  --nm-danger: #f87171;
  --nm-danger-light: #2e1a1a;
  --nm-danger-glow: rgba(248, 113, 113, 0.15);
  --nm-warning: #fbbf24;
  --nm-warning-light: #2e2a1a;
  --nm-info: #60a5fa;
  --nm-info-light: #1a2633;

  --nm-text: #e2e8f0;
  --nm-text-secondary: #a0aec0;
  --nm-text-muted: #6b7280;

  --nm-bg: #15171c;
  --nm-bg-card: #22252b;
  --nm-bg-elevated: #1c1f25;

  --nm-border: #33373e;
  --nm-border-light: #2a2d33;

  --nm-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --nm-shadow: 0 1px 3px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.3);
  --nm-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --nm-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.45);
  --nm-shadow-xl: 0 20px 50px -8px rgba(0, 0, 0, 0.5);
}

html[data-theme="night"] {
  color-scheme: dark;
}

html[data-theme="night"] body,
html[data-theme="night"] body.namayeshgah-frontend,
html[data-theme="night"] .wp-site-blocks,
html[data-theme="night"] .wp-site-blocks > *,
html[data-theme="night"] .site,
html[data-theme="night"] .site-content,
html[data-theme="night"] .content-area,
html[data-theme="night"] .entry-content,
html[data-theme="night"] .page-wrapper,
html[data-theme="night"] .container,
html[data-theme="night"] main,
html[data-theme="night"] main > * {
  background: var(--nm-bg) !important;
  color: var(--nm-text) !important;
}

html[data-theme="night"] body.namayeshgah-frontend .nm-section-card,
html[data-theme="night"] body.namayeshgah-frontend .nm-card,
html[data-theme="night"] body.namayeshgah-frontend .nm-form-card,
html[data-theme="night"] body.namayeshgah-frontend .nm-modal-content {
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

html[data-theme="night"] h1,
html[data-theme="night"] h2,
html[data-theme="night"] h3,
html[data-theme="night"] h4,
html[data-theme="night"] h5,
html[data-theme="night"] h6,
html[data-theme="night"] p,
html[data-theme="night"] li,
html[data-theme="night"] label,
html[data-theme="night"] th,
html[data-theme="night"] td,
html[data-theme="night"] blockquote,
html[data-theme="night"] figcaption {
  color: var(--nm-text);
}

html[data-theme="night"] a:not(.nm-btn) {
  color: var(--nm-primary);
}

html[data-theme="night"] input,
html[data-theme="night"] textarea,
html[data-theme="night"] select {
  background: var(--nm-bg-card) !important;
  color: var(--nm-text) !important;
  border-color: var(--nm-border) !important;
}

html[data-theme="night"] table,
html[data-theme="night"] .wp-block-table {
  background: var(--nm-bg-card);
  color: var(--nm-text);
}

html[data-theme="night"] th,
html[data-theme="night"] td {
  border-color: var(--nm-border);
}

html[data-theme="night"] .site,
html[data-theme="night"] .site-content,
html[data-theme="night"] .content-area,
html[data-theme="night"] .entry-content,
html[data-theme="night"] .page-wrapper,
html[data-theme="night"] .container,
html[data-theme="night"] .wp-block-cover {
  background: var(--nm-bg);
  color: var(--nm-text);
}

html[data-theme="night"] .nm-panel-tab-primary.active {
  background: var(--nm-primary);
  color: var(--nm-bg-card);
}

body.namayeshgah-frontend {
  font-family: var(--nm-font);
  color: var(--nm-text);
  background: var(--nm-bg);
  direction: rtl;
  overflow-x: hidden;
  transition: background .25s ease, color .25s ease;
}

body.namayeshgah-frontend .nm-section-card,
body.namayeshgah-frontend .nm-card,
body.namayeshgah-frontend .nm-form-card,
body.namayeshgah-frontend .nm-modal-content {
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

/* ==================== MARKET ==================== */
.nm-market {
  font-family: var(--nm-font);
  direction: rtl;
  background: var(--nm-bg);
  min-height: 100vh;
}
/* ── Search Location Button ── */
.nm-search-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 44px;
  height: 44px;
  background: transparent;
  color: var(--nm-primary);
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  padding: 0 10px;
  font-size: 12px;
  font-family: var(--nm-font);
  font-weight: 500;
}
.nm-search-location span {
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nm-location-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: auto;
  background: var(--nm-bg-card);
  border: 1px solid var(--nm-border);
  border-radius: 10px;
  box-shadow: var(--nm-shadow-lg);
  max-height: 260px;
  overflow-y: auto;
  z-index: 300;
  min-width: 200px;
}
.nm-location-dropdown.open {
  display: block;
}
.nm-location-option {
  padding: 10px 16px;
  font-size: 13px;
  font-family: var(--nm-font);
  color: var(--nm-text);
  cursor: pointer;
  transition: background var(--nm-transition);
  text-align: right;
}
.nm-location-option:hover {
  background: var(--nm-surface);
}
.nm-location-option.active {
  color: var(--nm-primary);
  font-weight: 600;
  background: var(--nm-primary-light);
}
.nm-location-dropdown::-webkit-scrollbar { width: 4px; }
.nm-location-dropdown::-webkit-scrollbar-thumb { background: var(--nm-border); border-radius: 2px; }

/* ── Location Popup ── */
.nm-location-popup-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  animation: nmFadeIn 0.2s ease;
}
.nm-location-popup-overlay.visible {
  display: flex;
}
.nm-location-popup {
  background: var(--nm-bg-card);
  border-radius: 16px;
  width: 400px;
  max-width: calc(100% - 32px);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  animation: nmScaleIn 0.2s ease;
}
.nm-location-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--nm-border-light);
}
.nm-location-popup-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--nm-text);
}
.nm-location-popup-close {
  background: none;
  border: none;
  color: var(--nm-text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.nm-location-popup-close:hover { color: var(--nm-text); }
.nm-location-popup-search {
  padding: 12px 20px;
  border-bottom: 1px solid var(--nm-border-light);
}
.nm-location-popup-search input {
  width: 100%;
  border: 1px solid var(--nm-border);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: var(--nm-font);
  font-size: 14px;
  color: var(--nm-text);
  background: var(--nm-surface);
  outline: none;
  box-sizing: border-box;
}
.nm-location-popup-search input:focus {
  border-color: var(--nm-primary);
}
.nm-location-popup-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.nm-location-popup-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 14px;
  color: var(--nm-text);
  transition: background 0.15s;
}
.nm-location-popup-item:hover {
  background: var(--nm-surface-alt);
}
.nm-location-popup-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--nm-primary);
  flex-shrink: 0;
  cursor: pointer;
}
.nm-location-popup-item span {
  flex: 1;
}
.nm-location-popup-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--nm-border-light);
}
.nm-location-popup-footer .nm-btn-block {
  width: 100%;
  box-sizing: border-box;
}
.nm-location-popup-list::-webkit-scrollbar { width: 4px; }
.nm-location-popup-list::-webkit-scrollbar-thumb { background: var(--nm-border); border-radius: 2px; }

.nm-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--nm-font);
  font-size: 14px;
  color: var(--nm-text);
  padding: 12px 14px;
  direction: rtl;
  min-width: 0;
}
.nm-search-input::placeholder {
  color: var(--nm-text-muted);
}
.nm-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  color: var(--nm-text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: color var(--nm-transition);
}
.nm-search-btn:hover {
  color: var(--nm-primary);
}

.nm-topbar {
  background: var(--nm-bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--nm-border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--nm-shadow-sm);
}

.nm-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--nm-primary);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.5px;
  transition: opacity var(--nm-transition);
}
.nm-logo:hover { opacity: 0.8; }

.nm-search-box { flex: 1; display: flex; max-width: 500px; }

.nm-search-box input {
  flex: 1;
  padding: 10px 16px;
  border: 2px solid var(--nm-border);
  border-left: none;
  border-radius: var(--nm-radius) 0 0 var(--nm-radius);
  font-size: 14px;
  font-family: var(--nm-font);
  outline: none;
  transition: border-color var(--nm-transition), box-shadow var(--nm-transition);
}
.nm-search-box input:focus {
  border-color: var(--nm-primary);
  box-shadow: 0 0 0 3px var(--nm-primary-glow);
}

.nm-search-box button {
  padding: 10px 22px;
  background: var(--nm-primary);
  color: #fff;
  border: none;
  border-radius: 0 var(--nm-radius) var(--nm-radius) 0;
  cursor: pointer;
  font-size: 14px;
  font-family: var(--nm-font);
  font-weight: 600;
  transition: all var(--nm-transition);
}
.nm-search-box button:hover {
  background: var(--nm-primary-hover);
  box-shadow: 0 2px 8px var(--nm-primary-glow);
}

.nm-topbar-actions { display: flex; gap: 8px; align-items: center; }

.nm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border: none;
  border-radius: var(--nm-radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--nm-font);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--nm-transition);
  line-height: 1.4;
  position: relative;
  overflow: hidden;
}

.nm-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 50%);
  pointer-events: none;
}

.nm-btn:hover { transform: translateY(-1px); }
.nm-btn:active { transform: translateY(0) scale(0.98); }

.nm-btn-primary {
  background: var(--nm-primary);
  color: #fff;
  box-shadow: 0 2px 6px var(--nm-primary-glow);
}
.nm-btn-primary:hover {
  background: var(--nm-primary-hover);
  color: #fff;
  box-shadow: 0 4px 14px var(--nm-primary-glow);
}

.nm-btn-success {
  background: var(--nm-success);
  color: #fff;
  box-shadow: 0 2px 6px var(--nm-success-glow);
}
.nm-btn-success:hover {
  background: var(--nm-success);
  filter: brightness(0.85);
  color: #fff;
  box-shadow: 0 4px 14px var(--nm-success-glow);
}

.nm-btn-outline {
  background: transparent;
  border: 1.5px solid var(--nm-primary);
  color: var(--nm-primary);
  box-shadow: none;
}
.nm-btn-outline::after { display: none; }

.nm-btn-ghost {
  background: transparent;
  border: 1px solid var(--nm-border);
  color: var(--nm-text-secondary);
  box-shadow: none;
}
.nm-btn-ghost::after { display: none; }
.nm-btn-ghost:hover {
  background: var(--nm-bg);
  border-color: var(--nm-text-muted);
  color: var(--nm-text);
  transform: none;
}

.nm-btn-lg { padding: 15px 34px; font-size: 16px; border-radius: var(--nm-radius); }
.nm-btn-sm { padding: 7px 16px; font-size: 12px; }
.nm-btn-block { width: 100%; justify-content: center; }
.nm-btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* ==================== FORM CARDS ==================== */
.nm-form-card {
  max-width: 460px;
  margin: 48px auto;
  direction: rtl;
  font-family: var(--nm-font);
  padding: 0 16px;
}

.nm-form-card-wide { max-width: 700px; }

.nm-stars { display: inline-flex; align-items: center; gap: 1px; }
.nm-stars .star-empty { color: var(--nm-text-muted); }

.nm-form-card-inner {
  background: var(--nm-bg-card);
  border-radius: var(--nm-radius-xl);
  box-shadow: var(--nm-shadow-lg);
  padding: 44px 40px;
  animation: nmFormEnter 0.45s ease-out;
  position: relative;
  overflow: hidden;
}

.nm-form-card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
   background: var(--nm-gradient);
   background-size: 200% 100%;
   animation: nmGradientShift 3s ease infinite;
 }

@keyframes nmGradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

@keyframes nmFormEnter {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.nm-form-title {
  text-align: center;
  margin: 0 0 32px;
  font-size: 24px;
  font-weight: 800;
  color: var(--nm-text);
  letter-spacing: -0.3px;
}

.nm-form-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--nm-primary);
  border-radius: 2px;
  margin: 12px auto 0;
}

/* ==================== FORM ELEMENTS ==================== */
.nm-form-group { margin-bottom: 22px; }

.nm-form-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.nm-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--nm-text);
  margin-bottom: 6px;
}

.nm-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--nm-border);
  border-radius: var(--nm-radius-sm);
  font-size: 14px;
  font-family: var(--nm-font);
  color: var(--nm-text);
  background: var(--nm-bg-card);
  outline: none;
  transition: all var(--nm-transition);
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.nm-input::placeholder { color: var(--nm-text-muted); }
.nm-input:hover { border-color: var(--nm-border); }
.nm-input:focus {
  border-color: var(--nm-primary);
  box-shadow: 0 0 0 3px var(--nm-primary-glow), 0 1px 2px rgba(0,0,0,0.02);
}

.nm-input-ltr { direction: rtl; text-align: left; }
.nm-input-center { text-align: center; }
.nm-input-code {
  letter-spacing: 10px;
  font-weight: 700;
  text-align: center;
  font-size: 20px;
  direction: rtl;
  padding: 12px;
}

textarea.nm-input {
  min-height: 110px;
  resize: vertical;
  line-height: 1.8;
}

.nm-select {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border: 1.5px solid var(--nm-border);
  border-radius: var(--nm-radius-sm);
  font-size: 14px;
  font-family: var(--nm-font);
  color: var(--nm-text);
  background:
    var(--nm-bg-card)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E")
    no-repeat left 12px center;
  background-size: 16px;
  outline: none;
  cursor: pointer;
  appearance: none;
  transition: all var(--nm-transition);
  box-sizing: border-box;
}

.nm-select:hover { border-color: var(--nm-border); }
.nm-select:focus {
  border-color: var(--nm-primary);
  box-shadow: 0 0 0 3px var(--nm-primary-glow);
}

.nm-checkbox,
.nm-radio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--nm-text);
  user-select: none;
  padding: 6px 10px;
  border-radius: var(--nm-radius-sm);
  transition: background var(--nm-transition);
}

.nm-checkbox:hover,
.nm-radio:hover { background: var(--nm-bg-elevated); }

.nm-checkbox input[type="checkbox"],
.nm-radio input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--nm-primary);
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}

.nm-checkbox-group,
.nm-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.nm-form-text {
  font-size: 12px;
  color: var(--nm-text-muted);
  margin-top: 6px;
  line-height: 1.5;
}

.nm-form-divider {
  border: none;
  border-top: 1px solid var(--nm-border);
  margin: 24px 0;
}

/* ==================== NOTICES ==================== */
.nm-notice,
.nm-error-box,
.nm-success-box {
  padding: 16px 20px;
  border-radius: var(--nm-radius-sm);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: center;
  animation: nmNoticeEnter 0.3s ease;
}

@keyframes nmNoticeEnter {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nm-notice-success,
.nm-success-box {
  background: var(--nm-success-light);
  border: 1px solid var(--nm-success);
  color: var(--nm-success);
}

.nm-notice-error,
.nm-error-box {
  background: var(--nm-danger-light);
  border: 1px solid var(--nm-danger);
  color: var(--nm-danger);
}

.nm-notice-warning {
  background: var(--nm-warning-light);
  border: 1px solid var(--nm-warning);
  color: var(--nm-warning);
}

.nm-notice-info {
  background: var(--nm-info-light);
  border: 1px solid var(--nm-info);
  color: var(--nm-info);
}

.nm-success-icon {
  font-size: 52px;
  margin-bottom: 16px;
  display: block;
  animation: nmBounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes nmBounceIn {
  from { opacity: 0; transform: scale(0.3); }
  50%  { transform: scale(1.1); }
  to   { opacity: 1; transform: scale(1); }
}

.nm-success-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--nm-success);
}

.nm-success-text {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--nm-text-secondary);
  line-height: 1.8;
}

.nm-success-hint {
  margin: 0;
  font-size: 12px;
  color: var(--nm-warning);
}

/* ==================== REFERRAL CODE ==================== */
.nm-referral-code {
  font-size: 30px;
  font-weight: 800;
  direction: rtl;
  letter-spacing: 5px;
  background: var(--nm-bg-card);
  display: inline-block;
  padding: 10px 28px;
  border-radius: var(--nm-radius-sm);
  border: 2.5px dashed var(--nm-success);
  color: var(--nm-success);
  font-family: 'Courier New', 'Consolas', monospace;
  box-shadow: 0 2px 8px var(--nm-success-glow);
}

/* ==================== AUTH LINKS ==================== */
.nm-auth-links {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--nm-text-muted);
}

.nm-auth-links a {
  color: var(--nm-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--nm-transition);
}

.nm-auth-links a:hover {
  color: var(--nm-primary-hover);
  text-decoration: underline;
}

.nm-auth-separator {
  margin: 0 10px;
  color: var(--nm-border);
}

/* ==================== GATEWAY ==================== */
.nm-gateway {
  max-width: 560px;
  margin: 48px auto;
  direction: rtl;
  font-family: var(--nm-font);
  padding: 0 16px;
}

.nm-gateway-card {
  background: var(--nm-bg-card);
  border-radius: var(--nm-radius-xl);
  box-shadow: var(--nm-shadow-lg);
  padding: 44px 40px;
  text-align: center;
  animation: nmFormEnter 0.45s ease-out;
}

.nm-gateway-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
   background: var(--nm-gradient);
   background-size: 200% 100%;
   animation: nmGradientShift 3s ease infinite;
 }

.nm-gateway-title {
  margin: 0 0 28px;
  font-size: 24px;
  font-weight: 800;
  color: var(--nm-text);
}

.nm-gateway-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nm-gateway-link {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--nm-bg-elevated);
  border: 1.5px solid var(--nm-border);
  border-radius: var(--nm-radius-lg);
  padding: 22px 24px;
  text-decoration: none;
  transition: all var(--nm-transition-slow);
  color: var(--nm-text);
  position: relative;
  overflow: hidden;
}

.nm-gateway-link::after {
  content: '←';
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--nm-text-muted);
  transition: all var(--nm-transition);
}

.nm-gateway-link:hover {
  border-color: var(--nm-primary);
  box-shadow: var(--nm-shadow-md);
  transform: translateX(-4px);
}

.nm-gateway-link:hover::after {
  color: var(--nm-primary);
  transform: translateY(-50%) translateX(-4px);
}

.nm-gateway-link-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.nm-gateway-link-text { text-align: right; flex: 1; }

.nm-gateway-link-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: var(--nm-text);
}

.nm-gateway-link-desc {
  font-size: 12px;
  color: var(--nm-text-muted);
  margin: 4px 0 0;
}

/* ==================== USER CARD (Logged-in) ==================== */
.nm-user-card {
  max-width: 420px;
  margin: 48px auto;
  text-align: center;
  font-family: var(--nm-font);
  padding: 0 16px;
}

.nm-user-card-inner {
  background: var(--nm-bg-card);
  border-radius: var(--nm-radius-xl);
  box-shadow: var(--nm-shadow-lg);
  padding: 44px 36px;
  animation: nmFormEnter 0.45s ease-out;
  position: relative;
  overflow: hidden;
}

.nm-user-card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--nm-gradient);
}

.nm-user-avatar {
  font-size: 60px;
  margin-bottom: 16px;
  display: block;
}

.nm-user-name {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--nm-text);
}

.nm-user-role {
  font-size: 13px;
  color: var(--nm-text-muted);
  margin: 0 0 4px;
}

.nm-user-phone {
  font-size: 13px;
  color: var(--nm-text-muted);
  margin: 0 0 28px;
  direction: rtl;
}

.nm-user-panel-link {
  display: inline-block;
  padding: 14px 32px;
  background: var(--nm-primary);
  color: #fff;
  border-radius: var(--nm-radius);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all var(--nm-transition);
  box-shadow: 0 2px 6px var(--nm-primary-glow);
}

.nm-user-panel-link:hover {
  background: var(--nm-primary-hover);
  color: #fff;
  box-shadow: 0 4px 14px var(--nm-primary-glow);
  transform: translateY(-2px);
}

.nm-user-logout {
  margin-top: 20px;
}

.nm-user-logout a {
  color: var(--nm-text-muted);
  font-size: 13px;
  text-decoration: none;
  transition: color var(--nm-transition);
}

.nm-user-logout a:hover {
  color: var(--nm-danger);
}

/* ==================== TAGS ==================== */
.nm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.nm-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 16px;
  background: var(--nm-bg-elevated);
  border-radius: 100px;
  font-size: 12px;
  color: var(--nm-text-secondary);
  border: 1px solid var(--nm-border);
  transition: all var(--nm-transition);
}

.nm-tag:hover {
  border-color: var(--nm-primary);
  color: var(--nm-primary);
  background: var(--nm-primary-light);
}

/* ==================== BADGES ==================== */
.nm-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}

.nm-badge-success { background: var(--nm-success-light); color: var(--nm-success); }
.nm-badge-danger  { background: var(--nm-danger-light); color: var(--nm-danger); }
.nm-badge-warning { background: var(--nm-warning-light); color: var(--nm-warning); }
.nm-badge-info    { background: var(--nm-info-light); color: var(--nm-info); }
.nm-badge-neutral { background: var(--nm-bg-elevated); color: var(--nm-text-secondary); }

/* ==================== EXHIBITOR PANEL ==================== */
.nm-panel {
  font-family: var(--nm-font);
  direction: rtl;
  background: var(--nm-bg);
  min-height: 100vh;
}
.nm-panel-header {
  background: var(--nm-bg-card);
  border-bottom: 1px solid var(--nm-border);
  box-shadow: var(--nm-shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nm-panel-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nm-panel-brand { display: flex; align-items: center; gap: 12px; }
.nm-panel-logo { font-size: 18px; font-weight: 800; color: var(--nm-primary); }
.nm-panel-role { font-size: 12px; color: var(--nm-text-muted); background: var(--nm-bg-elevated); padding: 3px 12px; border-radius: 100px; border: 1px solid var(--nm-border); }
.nm-panel-body { max-width: 1200px; margin: 0 auto; padding: 24px; }

.nm-panel-tabs-primary {
  display: flex;
  gap: 4px;
  background: var(--nm-bg-card);
  border-radius: var(--nm-radius-lg);
  padding: 4px;
  border: 1px solid var(--nm-border);
  margin-bottom: 24px;
  box-shadow: var(--nm-shadow-sm);
}
.nm-panel-tab-primary {
  flex: 1;
  padding: 14px 20px;
  text-align: center;
  border-radius: var(--nm-radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--nm-text-secondary);
  text-decoration: none;
  transition: all var(--nm-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.nm-panel-tab-primary:hover { background: var(--nm-bg-elevated); color: var(--nm-text); }
.nm-panel-tab-primary.active {
  background: var(--nm-primary);
  color: #fff;
  box-shadow: 0 2px 8px var(--nm-primary-glow);
}
.nm-panel-tab-primary .dashicons { font-size: 18px; width: 18px; height: 18px; }

.nm-dealer-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--nm-warning-light);
  border: 1px solid var(--nm-warning);
  border-radius: var(--nm-radius);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.nm-dealer-badge-icon { font-size: 24px; }
.nm-dealer-badge-name { font-weight: 700; font-size: 15px; color: var(--nm-warning); }
.nm-dealer-badge-phone { font-size: 13px; color: var(--nm-warning); direction: rtl; }
.nm-dealer-badge-code { font-size: 12px; color: var(--nm-warning); background: rgba(255,255,255,0.5); padding: 2px 10px; border-radius: 100px; }

.nm-panel-tabs-secondary {
  display: flex;
  gap: 2px;
  background: var(--nm-bg-elevated);
  border-radius: var(--nm-radius);
  padding: 4px;
  border: 1px solid var(--nm-border);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.nm-panel-tab-secondary {
  padding: 10px 18px;
  border-radius: var(--nm-radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--nm-text-secondary);
  text-decoration: none;
  transition: all var(--nm-transition);
  white-space: nowrap;
}
.nm-panel-tab-secondary:hover { background: var(--nm-bg-card); color: var(--nm-text); }
.nm-panel-tab-secondary.active {
  background: var(--nm-bg-card);
  color: var(--nm-primary);
  font-weight: 600;
  box-shadow: var(--nm-shadow-sm);
}

.nm-section-card {
  background: var(--nm-bg-card);
  border-radius: var(--nm-radius-lg);
  border: 1px solid var(--nm-border);
  box-shadow: var(--nm-shadow-sm);
  margin-bottom: 24px;
}
.nm-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--nm-border);
  gap: 12px;
  flex-wrap: wrap;
}
.nm-section-header h2 { margin: 0; font-size: 16px; font-weight: 700; color: var(--nm-text); }
.nm-section-body { padding: 24px; }

.nm-panel-form .nm-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .nm-panel-form .nm-form-row-2 { grid-template-columns: 1fr; }
}

.nm-form-msg { display: inline-block; margin-right: 16px; font-size: 13px; font-weight: 500; }

.nm-stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.nm-stat-box {
  text-align: center;
  padding: 20px 16px;
  background: var(--nm-bg-elevated);
  border-radius: var(--nm-radius);
  border: 1px solid var(--nm-border);
}
.nm-stat-number { display: block; font-size: 28px; font-weight: 800; color: var(--nm-primary); }
.nm-stat-label { display: block; font-size: 12px; color: var(--nm-text-muted); margin-top: 4px; }

.nm-table-wrap { overflow-x: auto; }
.nm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.nm-table th, .nm-table td { text-align: right; padding: 12px 14px; border-bottom: 1px solid var(--nm-border); }
.nm-table th { background: var(--nm-bg-elevated); font-weight: 600; color: var(--nm-text-secondary); font-size: 12px; white-space: nowrap; }
.nm-table tr:hover td { background: var(--nm-bg-elevated); }

.nm-empty-state { text-align: center; padding: 48px 24px; color: var(--nm-text-muted); }

.nm-wallet-display {
  text-align: center;
  padding: 36px 24px;
  background: linear-gradient(135deg, var(--nm-primary-light) 0%, #fff 100%);
  border-radius: var(--nm-radius-lg);
  border: 2px dashed var(--nm-primary);
}
html[data-theme="night"] .nm-wallet-display {
  background: linear-gradient(135deg, var(--nm-primary-light) 0%, var(--nm-bg-card) 100%);
}
.nm-wallet-label { display: block; font-size: 13px; color: var(--nm-text-secondary); margin-bottom: 8px; }
.nm-wallet-balance { display: block; font-size: 36px; font-weight: 800; color: var(--nm-primary); }

.nm-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.nm-plan-card {
  padding: 24px;
  background: var(--nm-bg-card);
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius);
  text-align: center;
}
.nm-plan-card h4 { margin: 0 0 12px; font-size: 16px; font-weight: 700; }
.nm-plan-price { font-size: 24px; font-weight: 800; color: var(--nm-primary); margin-bottom: 16px; }
.nm-plan-price small { font-size: 13px; font-weight: 400; color: var(--nm-text-muted); }
.nm-plan-features { list-style: none; padding: 0; margin: 0 0 20px; font-size: 13px; color: var(--nm-text-secondary); }
.nm-plan-features li { padding: 6px 0; border-bottom: 1px solid var(--nm-border-light); }
.nm-plan-features li:last-child { border-bottom: none; }

.nm-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.nm-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}
.nm-modal-content {
  position: relative;
  background: var(--nm-bg-card);
  border-radius: var(--nm-radius-lg);
  width: 90%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--nm-shadow-xl);
  animation: nmFormEnter 0.25s ease-out;
}
.nm-modal-content-wide { max-width: 720px; }
.nm-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--nm-border);
}
.nm-modal-header h3 { margin: 0; font-size: 16px; font-weight: 700; }
.nm-modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--nm-text-muted); padding: 0; line-height: 1; }
.nm-modal-close:hover { color: var(--nm-text); }
.nm-modal-body { padding: 24px; }

/* ==================== LOGIN PAGE ==================== */
.nm-login-page {
  font-family: var(--nm-font);
  direction: rtl;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
   background: var(--nm-bg);
  padding: 24px;
}
.nm-login-card {
  width: 100%;
  max-width: 440px;
}
.nm-login-brand {
  text-align: center;
  margin-bottom: 28px;
}
.nm-login-logo {
  font-size: 26px;
  font-weight: 800;
  color: var(--nm-primary);
  letter-spacing: -0.5px;
}
.nm-login-desc {
  font-size: 14px;
  color: var(--nm-text-muted);
  margin: 8px 0 0;
}
.nm-login-theme-btn {
  margin-top: 12px;
  width: 36px;
  height: 36px;
  font-size: 18px;
}
.nm-login-card-inner {
  background: var(--nm-bg-card);
  border-radius: var(--nm-radius-xl);
  box-shadow: var(--nm-shadow-lg);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  animation: nmFormEnter 0.45s ease-out;
}
.nm-login-card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--nm-gradient);
  background-size: 200% 100%;
  animation: nmGradientShift 3s ease infinite;
}

 .nm-login-error {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--nm-danger-light);
  border: 1px solid var(--nm-danger);
  border-radius: var(--nm-radius-sm);
  color: var(--nm-danger);
  font-size: 13px;
  text-align: center;
}

html[data-theme="night"] .nm-login-page {
  background: var(--nm-bg);
}
html[data-theme="night"] .nm-login-card-inner {
  background: var(--nm-bg-card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
html[data-theme="night"] .nm-login-error {
  border-color: var(--nm-danger);
  color: var(--nm-danger);
}

/* ==================== VISITOR REGISTER ==================== */
.nm-visitor-welcome {
  text-align: center;
  margin-bottom: 24px;
}
.nm-visitor-welcome-icon {
  width: 72px; height: 72px;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--nm-primary-light);
  border-radius: 50%;
  color: var(--nm-primary);
}
.nm-visitor-welcome-title {
  font-size: 20px; font-weight: 800; color: var(--nm-text);
  margin: 0 0 6px;
}
.nm-visitor-welcome-desc {
  font-size: 13px; color: var(--nm-text-muted); margin: 0; line-height: 1.7;
}
.nm-visitor-benefits {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--nm-surface);
  border-radius: var(--nm-radius);
}
.nm-visitor-benefit {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; color: var(--nm-text-secondary);
}
.nm-visitor-benefit-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--nm-primary-light);
  border-radius: 8px;
  color: var(--nm-primary);
}
.nm-visitor-success {
  text-align: center;
}
.nm-visitor-success-icon {
  width: 80px; height: 80px;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--nm-success-light);
  border-radius: 50%;
  color: var(--nm-success);
  animation: nmBounceIn 0.5s ease-out;
}
.nm-visitor-success-title {
  font-size: 18px; font-weight: 700; color: var(--nm-success);
  margin: 0 0 8px;
}
.nm-visitor-success-text {
  font-size: 14px; color: var(--nm-text-secondary); margin: 0 0 12px;
}
.nm-visitor-referral-code {
  display: inline-block;
  font-size: 28px; font-weight: 800; font-family: monospace;
  letter-spacing: 6px; direction: ltr;
  padding: 14px 24px;
  background: var(--nm-bg-elevated);
  border: 2px dashed var(--nm-border);
  border-radius: var(--nm-radius);
  margin-bottom: 16px;
  color: var(--nm-primary);
}
.nm-visitor-success-hint {
  font-size: 13px; color: var(--nm-text-muted); margin: 0 0 24px; line-height: 1.6;
}

/* ==================== WIZARD (Exhibitor Register) ==================== */
.nm-wizard-card { padding: 32px 28px 28px; }
.nm-wizard-progress {
  height: 4px; background: var(--nm-border); border-radius: 4px; margin-bottom: 8px; overflow: hidden;
}
.nm-wizard-progress-fill {
  height: 100%; width: 0; background: var(--nm-gradient); background-size: 200% 100%;
  border-radius: 4px; transition: width 0.4s ease;
}
.nm-wizard-steps-label {
  text-align: center; font-size: 12px; color: var(--nm-text-muted); margin-bottom: 24px; direction: rtl;
}
.nm-wizard-step { display: none; text-align: center; animation: nmFormEnter 0.35s ease-out; padding-bottom: 8px; }
.nm-wizard-step.active { display: block; }
.nm-wizard-step-icon {
  width: 72px; height: 72px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center;
  background: var(--nm-surface); border-radius: 20px; color: var(--nm-primary);
}
.nm-wizard-step-title {
  font-size: 20px; font-weight: 700; color: var(--nm-text); margin: 0 0 6px;
}
.nm-wizard-step-desc {
  font-size: 14px; color: var(--nm-text-muted); margin: 0 0 24px; line-height: 1.5;
}
.nm-input-wizard {
  width: 100%; font-size: 16px; padding: 14px 16px; text-align: center;
}
.nm-wizard-nav {
  display: flex; gap: 10px; margin-top: 24px; direction: rtl;
}
.nm-wizard-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 14px 20px; border-radius: 14px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all 0.25s; border: none; font-family: inherit;
}
.nm-wizard-btn-prev {
  background: var(--nm-surface); color: var(--nm-text-secondary);
}
.nm-wizard-btn-prev:hover { background: var(--nm-surface-hover); }
.nm-wizard-btn-next {
  background: var(--nm-gradient); background-size: 200% 100%; color: #fff;
  animation: nmGradientShift 3s ease infinite;
}
.nm-wizard-btn-next:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 15px rgba(210,120,110,0.4); }
.nm-wizard-btn-submit {
  background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff;
}
.nm-wizard-btn-submit:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 15px rgba(34,197,94,0.4); }
.nm-wizard-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.nm-wizard-choices {
  display: flex; gap: 12px; margin-top: 8px;
}
.nm-wizard-choice-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 24px 16px; border-radius: 16px; border: 2px solid var(--nm-border);
  background: var(--nm-surface); color: var(--nm-text); font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all 0.25s; font-family: inherit;
}
.nm-wizard-choice-btn:hover { border-color: var(--nm-primary); }
.nm-wizard-choice-yes.selected {
  border-color: #22c55e; background: rgba(34,197,94,0.08); color: #22c55e;
}
.nm-wizard-choice-no.selected {
  border-color: var(--nm-danger); background: rgba(239,68,68,0.08); color: var(--nm-danger);
}
.nm-wizard-choice-hint {
  font-size: 13px; color: var(--nm-text-muted); margin-top: 12px; text-align: center;
}
.nm-wizard-upload-tips {
  display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; text-align: right;
}
.nm-wizard-upload-tip {
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--nm-text-muted);
}
.nm-wizard-dropzone {
  border: 2px dashed var(--nm-border); border-radius: 16px; padding: 32px 20px;
  cursor: pointer; transition: all 0.25s; text-align: center; position: relative; overflow: hidden;
}
.nm-wizard-dropzone:hover, .nm-wizard-dropzone.dragover {
  border-color: var(--nm-primary); background: rgba(210,120,110,0.04);
}
.nm-wizard-dropzone-content { pointer-events: none; }
.nm-wizard-dropzone-text { font-size: 15px; font-weight: 600; color: var(--nm-text); margin: 12px 0 4px; }
.nm-wizard-dropzone-sub { font-size: 13px; color: var(--nm-text-muted); margin: 0; }
.nm-wizard-dropzone-preview {
  position: relative; display: flex; align-items: center; justify-content: center;
}
.nm-wizard-dropzone-preview img {
  max-width: 100%; max-height: 200px; border-radius: 8px; object-fit: contain;
}
.nm-wizard-dropzone-remove {
  position: absolute; top: 8px; left: 8px; width: 32px; height: 32px;
  border-radius: 50%; background: rgba(0,0,0,0.6); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background 0.2s;
}
.nm-wizard-dropzone-remove:hover { background: rgba(0,0,0,0.8); }
.nm-spinner-sm {
  display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff; border-radius: 50%; animation: nmSpin 0.6s linear infinite;
}
@keyframes nmSpin { to { transform: rotate(360deg); } }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .nm-form-card {
    margin: 24px auto;
    padding: 0 12px;
  }

  .nm-form-card-inner,
  .nm-gateway-card,
  .nm-user-card-inner {
    padding: 28px 20px;
  }

  .nm-form-title {
    font-size: 20px;
  }

  .nm-gateway {
    margin: 24px auto;
    padding: 0 12px;
  }

  .nm-form-row {
    flex-direction: column;
  }

  .nm-referral-code {
    font-size: 24px;
    padding: 8px 20px;
  }

  .nm-user-card {
    margin: 24px auto;
  }

  .nm-topbar {
    padding: 10px 16px;
    flex-wrap: wrap;
  }

  .nm-search-box {
    order: 3;
    max-width: 100%;
    flex-basis: 100%;
  }
}

.nm-visitor-stat-card {
  background: var(--nm-bg-elevated);
  padding: 16px;
  border-radius: var(--nm-radius);
  text-align: center;
  border: 1px solid var(--nm-border);
}
.nm-visitor-stat-num {
  font-size: 28px;
  font-weight: 700;
}
.nm-visitor-stat-label {
  font-size: 13px;
  color: var(--nm-text-secondary);
}
.nm-visitor-task-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius-sm);
  margin-bottom: 8px;
}
.nm-visitor-task-badge {
  color: var(--nm-text-muted);
  font-size: 12px;
  margin-right: 8px;
}
.nm-visitor-table thead tr,
.nm-visitor-table-head {
  background: var(--nm-bg-elevated);
}
.nm-visitor-table-row {
  border-bottom: 1px solid var(--nm-border);
}

/* ============================================
   Mobile-First Design System
   Bottom Tab Bar · Pill Filters
   ============================================ */

/* ── Mobile Shell ── */
.nm-mobile-shell {
  max-width: 100%;
  margin: 0;
  min-height: 100vh;
  background: var(--nm-surface);
  display: flex;
  flex-direction: column;
  position: relative;
  padding-top: 4px;
}

.nm-mobile-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nm-bg-card);
  border-bottom: 1px solid var(--nm-border);
}
.nm-mobile-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 6px;
}
.nm-mobile-header-top .nm-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
  font-weight: 800;
  color: var(--nm-primary);
  text-decoration: none;
}
.nm-mobile-search {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 12px 10px;
  background: var(--nm-surface);
  border: 1px solid var(--nm-border);
  border-radius: 12px;
  overflow: visible;
  position: relative;
}

.nm-app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nm-bg-card);
  border-bottom: 1px solid var(--nm-border);
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 8px 48px;
}

.nm-app-header > :first-child {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.nm-app-header > :last-child {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.nm-app-header-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--nm-text);
}

/* ── Tab Filters (همه · آگهی‌های من · آگهی‌های دیگران) ── */
.nm-tab-filters {
  display: flex;
  gap: 2px;
  padding: 8px 16px;
  background: var(--nm-bg-card);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid var(--nm-border);
}

.nm-tab-filters::-webkit-scrollbar {
  display: none;
}

.nm-tab-filter {
  flex-shrink: 0;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--nm-text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--nm-transition);
  font-family: var(--nm-font);
  white-space: nowrap;
}

.nm-tab-filter.active {
  background: var(--nm-primary-light);
  color: var(--nm-primary);
  font-weight: 600;
}

/* ── Category Pills (خودرو کلاسیک · سرویس و اتوت · ...) ── */
.nm-category-pills {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nm-category-pills::-webkit-scrollbar {
  display: none;
}

.nm-category-pill {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--nm-bg-card);
  border: 1px solid var(--nm-border-light);
  font-size: 12px;
  font-weight: 500;
  color: var(--nm-text);
  cursor: pointer;
  transition: all var(--nm-transition);
  font-family: var(--nm-font);
  white-space: nowrap;
  box-shadow: var(--nm-shadow-sm);
}

.nm-category-pill.active {
  border-color: var(--nm-primary);
  background: var(--nm-primary-light);
  color: var(--nm-primary);
}

.nm-category-pill .nm-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.nm-category-pill .nm-pill-icon svg {
  width: 16px;
  height: 16px;
}

/* ── Ad Cards ── */
.nm-market-grid {
  display: flex;
  flex-direction: column;
}

.nm-market-main {
  background: transparent;
  border-radius: 0;
  padding: 0;
  border: none;
  margin-top: 0;
}

/* ── List Card ── */
.nm-ad-card {
  background: var(--nm-bg-card);
  overflow: hidden;
  text-decoration: none;
  display: flex !important;
  flex-direction: row-reverse !important;
  align-items: stretch;
  color: inherit;
  min-height: 130px;
  border-bottom: 1px solid var(--nm-border-light);
  transition: background 0.15s ease;
}
.nm-ad-card:active {
  background: #f9f9f9;
}
.nm-ad-card:hover {
  transform: none;
  box-shadow: none;
}

.nm-ad-card-img-wrap {
  position: relative;
  flex-shrink: 0;
  background: var(--nm-surface);
  overflow: hidden;
  margin: 10px;
  border-radius: 8px;
  width: 50%;
}
.nm-ad-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 130px;
  transition: none;
}
.nm-ad-card:hover .nm-ad-card-img {
  transform: none;
}
.nm-ad-card-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 130px;
  background: linear-gradient(135deg, var(--nm-primary-light), var(--nm-surface));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nm-primary);
  opacity: 0.4;
}

/* ── Icons on image ── */
.nm-ad-card-icons {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 4px;
  z-index: 2;
}
.nm-ad-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255,255,255,0.9);
  color: var(--nm-text-secondary);
  backdrop-filter: blur(4px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.nm-ad-card-icon svg {
  width: 16px;
  height: 16px;
}
html[data-theme="night"] .nm-ad-card-icon {
  background: rgba(30,33,39,0.92);
}
.nm-ad-card-icon-featured {
  background: rgba(199,75,80,0.9) !important;
  color: #fff !important;
}

/* ── Info section ── */
.nm-ad-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 14px;
  min-width: 0;
  width: 50% !important;
}

.nm-ad-card-title {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nm-ad-card-star {
  flex-shrink: 0;
  color: var(--nm-primary);
  display: none;
  align-items: center;
}
.nm-ad-card-star svg {
  width: 16px;
  height: 16px;
  fill: var(--nm-primary);
  stroke: none;
}
.nm-ad-card-star.visible {
  display: flex;
}
.nm-ad-card-title-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--nm-text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nm-ad-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}
.nm-ad-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--nm-text-muted);
}
.nm-ad-card-meta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.7;
}

.nm-ad-card-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--nm-primary);
  text-align: right;
  margin-top: 8px;
}

/* ── Bookmark (hidden in new layout, keep for functionality) ── */
.nm-ad-bookmark {
  display: none;
}

/* ── Action buttons (hidden in new layout) ── */
.nm-ad-card-actions {
  display: none !important;
}

/* ── Login popup (unchanged) ── */
.nm-login-popup-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: nmFadeIn 0.2s ease;
}
.nm-login-popup {
  background: var(--nm-bg-card);
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius-lg);
  padding: 32px 24px;
  max-width: 360px;
  width: calc(100% - 48px);
  text-align: center;
  box-shadow: var(--nm-shadow-lg);
  animation: nmScaleIn 0.2s ease;
}
.nm-login-popup-icon {
  color: var(--nm-primary);
  margin-bottom: 12px;
}
.nm-login-popup h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--nm-text);
}
.nm-login-popup p {
  font-size: 14px;
  color: var(--nm-text-secondary);
  margin: 0 0 20px;
}
.nm-login-popup-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.nm-login-popup-actions .nm-btn-block {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}
.nm-login-popup-actions .nm-link-btn {
  background: none;
  border: none;
  color: var(--nm-text-muted);
  cursor: pointer;
  font-size: 13px;
  font-family: var(--nm-font);
  padding: 4px 0;
  transition: color 0.2s;
}
.nm-login-popup-actions .nm-link-btn:hover {
  color: var(--nm-text);
}
@keyframes nmFadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes nmScaleIn {
  from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); }
}

/* ── Bottom Tab Bar (Mobile) ── */
.nm-bottom-tabs {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--nm-bg-card);
  border-top: 1px solid var(--nm-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 6px 0 env(safe-area-inset-bottom, 6px);
}

@media (max-width: 767px) {
  body.namayeshgah-frontend { padding-bottom: 70px; }
}

.nm-bottom-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--nm-text-secondary);
  transition: color var(--nm-transition);
  font-family: var(--nm-font);
  text-decoration: none;
  position: relative;
}

.nm-bottom-tab.active {
  color: var(--nm-primary);
}

.nm-bottom-tab .nm-tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
}

.nm-bottom-tab .nm-tab-icon svg {
  width: 24px;
  height: 24px;
}

.nm-bottom-tab .nm-tab-label {
  font-size: 11px;
  font-weight: 600;
}

.nm-bottom-tab .nm-tab-badge {
  position: absolute;
  top: 0;
  right: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nm-danger);
}

.nm-bottom-tab-wrap {
  position: relative;
}

/* ── Desktop Top Nav ── */
.nm-desktop-nav {
  display: none;
}

/* ── Featured Exhibitor ── */
.nm-featured-card {
  margin: 8px 16px;
  background: var(--nm-primary-light);
  border: 1px solid var(--nm-primary);
  border-radius: var(--nm-radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.nm-featured-card .nm-featured-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--nm-bg-card);
  border: 2px solid var(--nm-bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nm-featured-card .nm-featured-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nm-featured-card .nm-featured-info {
  flex: 1;
  min-width: 0;
}

.nm-featured-card .nm-featured-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--nm-primary-hover);
}

.nm-featured-card .nm-featured-desc {
  font-size: 11px;
  color: var(--nm-primary);
  opacity: 0.8;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Loading & Empty States ── */
.nm-loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--nm-text-muted);
}

.nm-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--nm-border);
  border-top-color: var(--nm-primary);
  border-radius: 50%;
  animation: nm-spin 0.7s linear infinite;
  margin: 0 auto 12px;
}

@keyframes nm-spin {
  to { transform: rotate(360deg); }
}

.nm-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--nm-text-muted);
}

.nm-empty-state .nm-empty-icon {
  margin-bottom: 12px;
  color: var(--nm-text-muted);
}
.nm-empty-state .nm-empty-icon svg {
  width: 48px;
  height: 48px;
}

.nm-gallery-thumbs {
  display: flex;
  gap: 6px;
  padding: 8px 16px;
  overflow-x: auto;
}

.nm-gallery-thumbs img {
  width: 60px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.nm-gallery-thumbs img.active {
  opacity: 1;
  border: 2px solid var(--nm-primary);
}

.nm-seller-card {
  background: var(--nm-surface);
  border-radius: var(--nm-radius-lg);
  padding: 16px;
  overflow: hidden;
}

.nm-empty-state p {
  font-size: 14px;
  color: var(--nm-text-muted);
  margin: 0;
}

.nm-result-count {
  font-size: 12px;
  color: var(--nm-text-muted);
  padding: 4px 16px;
}

/* ── Sell Button (FAB) ── */
.nm-fab {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  background: var(--nm-gradient);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--nm-font);
  box-shadow: 0 4px 20px var(--nm-primary-glow);
  cursor: pointer;
  transition: transform var(--nm-transition), box-shadow var(--nm-transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nm-fab:active {
  transform: translateX(-50%) scale(0.95);
}

/* ── Divider ── */
.nm-divider {
  height: 8px;
  background: var(--nm-surface);
}

/* ── Filter Toggle (mobile) ── */
.nm-filter-toggle-btn {
  display: none;
}
.nm-market-sidebar {
  display: block;
}

@media (max-width: 767px) {
  .nm-filter-toggle-btn {
    display: inline-flex;
  }
  .nm-market-sidebar {
    display: none;
  }
  .nm-market-sidebar.nm-sidebar-open {
    display: block;
  }
}

/* ── Sidebar (all sizes) ── */
.nm-market-sidebar {
  padding: 0;
  position: relative;
  z-index: 10;
}
.nm-market-sidebar .nm-filter-group {
  margin-bottom: 16px;
}
.nm-market-sidebar .nm-filter-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--nm-text-secondary);
  display: block;
  margin-bottom: 4px;
}

/* ── Dual Range Slider ── */
.nm-range-slider {
  position: relative;
  width: 100%;
  height: 36px;
  margin: 4px 0;
}
.nm-range-slider input[type="range"] {
  position: absolute;
  width: 100%;
  height: 6px;
  top: 14px;
  margin: 0;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  z-index: 2;
}
.nm-range-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--nm-primary);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  cursor: pointer;
  pointer-events: all;
  position: relative;
  z-index: 3;
}
.nm-range-slider input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--nm-primary);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  cursor: pointer;
  pointer-events: all;
}
.nm-range-track {
  position: absolute;
  width: 100%;
  height: 6px;
  top: 14px;
  background: var(--nm-border);
  border-radius: 3px;
  overflow: hidden;
}
.nm-range-fill {
  position: absolute;
  height: 100%;
  background: var(--nm-primary);
  border-radius: 3px;
}
.nm-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--nm-text-muted);
  margin-top: 2px;
}

/* ── Market Grid Container ── */

/* ── Custom Select Dropdown ── */
.nm-custom-select {
  position: relative;
  width: 100%;
  z-index: 1;
}
.nm-custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius);
  background: var(--nm-bg-card);
  color: var(--nm-text);
  font-size: 13px;
  font-family: var(--nm-font);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.nm-custom-select-trigger:hover {
  border-color: var(--nm-primary);
}
.nm-custom-select.open {
  z-index: 10;
}
.nm-custom-select.open .nm-custom-select-trigger {
  border-color: var(--nm-primary);
  box-shadow: 0 0 0 2px var(--nm-primary-glow);
}
.nm-custom-select-trigger svg {
  flex-shrink: 0;
  opacity: 0.5;
  transition: transform 0.25s ease;
  pointer-events: none;
}
.nm-custom-select.open .nm-custom-select-trigger svg {
  transform: rotate(180deg);
}
.nm-custom-select-dropdown {
  display: none;
  position: fixed;
  background: var(--nm-bg-card);
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius);
  box-shadow: var(--nm-shadow-lg);
  max-height: 240px;
  overflow-y: auto;
  z-index: 99999;
}
.nm-custom-select-dropdown.open {
  display: block;
  animation: nmDropdownIn 0.15s ease;
}
@keyframes nmDropdownIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.nm-custom-select-option {
  padding: 10px 14px;
  font-size: 13px;
  font-family: var(--nm-font);
  color: var(--nm-text);
  cursor: pointer;
  transition: background 0.15s;
  text-align: right;
}
.nm-custom-select-option:hover {
  background: var(--nm-surface);
}
.nm-custom-select-option.active {
  color: var(--nm-primary);
  font-weight: 600;
  background: var(--nm-primary-light);
}
.nm-custom-select-dropdown::-webkit-scrollbar { width: 4px; }
.nm-custom-select-dropdown::-webkit-scrollbar-thumb { background: var(--nm-border); border-radius: 2px; }

/* ── Theme Toggle in Desktop Nav ── */
.nm-theme-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--nm-border-light);
  background: var(--nm-surface);
  cursor: pointer;
  color: var(--nm-text-secondary);
  font-size: 16px;
  transition: all var(--nm-transition);
  text-decoration: none;
}
.nm-theme-nav-btn:hover {
  background: var(--nm-bg-elevated);
  color: var(--nm-primary);
}

/* ═══════════════════════════════════════════
   Landing Page (front-page)
   ═══════════════════════════════════════════ */
.nm-ld {
  font-family: var(--nm-font);
  direction: rtl;
  min-height: 100vh;
  background: var(--nm-bg);
  color: var(--nm-text);
}
.nm-ld * { box-sizing: border-box; }
.nm-ld a { text-decoration: none; color: inherit; }

.nm-ld-container { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* ── Mobile: full-bleed layout ── */
@media (max-width: 639px) {
  .nm-ld-container { padding: 0; max-width: 100%; }
  .nm-ld-header-inner { padding: 10px 12px; gap: 8px; }
  .nm-ld-logo-icon { width: 34px; height: 34px; border-radius: 8px; }
  .nm-ld-logo-icon svg { width: 18px; height: 18px; }
  .nm-ld-logo-text { font-size: 15px; }
  .nm-ld-search-bar { border-radius: 10px; }
  .nm-ld-search-bar .nm-search-location { width: 36px; height: 36px; }
  .nm-ld-search-bar .nm-search-input { font-size: 13px; padding: 8px 10px; }
  .nm-ld-search-bar .nm-search-btn { width: 36px; height: 36px; }
  .nm-ld-pills { padding: 8px 0; }
  .nm-ld-pill { padding: 7px 14px; font-size: 12px; }
  .nm-ld-listings { padding: 8px 0 20px; }
  .nm-ld-listings-header { padding: 0 12px; margin-bottom: 10px; }
  .nm-ld-grid { gap: 0; }

  .nm-ld-grid .nm-ad-card {
    width: 100%;
    border-bottom: 1px solid var(--nm-border-light);
    border-radius: 0;
    min-height: 110px;
    border-left: none;
    border-right: none;
    border-top: none;
  }
  .nm-ld-grid .nm-ad-card-img-wrap {
    width: 110px;
    min-width: 110px;
    height: 110px;
    margin: 8px;
    border-radius: 8px;
  }
  .nm-ld-grid .nm-ad-card-img,
  .nm-ld-grid .nm-ad-card-img-placeholder {
    min-height: 100%;
    height: 100%;
  }
  .nm-ld-grid .nm-ad-card-body { padding: 10px 10px 10px 0; }
  .nm-ld-grid .nm-ad-card-title-text { font-size: 13px; }
  .nm-ld-grid .nm-ad-card-price { font-size: 13px; }
  .nm-ld-grid .nm-ad-card-meta span { font-size: 11px; }
}

/* Header */
/* ── Landing Page Header ── */
.nm-ld-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--nm-bg-card);
  border-bottom: 1px solid var(--nm-border);
}
.nm-ld-header-inner {
  width: 100%;
  display: flex; align-items: center;
  padding: 12px 8px 12px 6px;
  gap: 10px;
}
.nm-ld-header-right {
  flex-shrink: 0;
}
.nm-ld-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.nm-ld-logo-icon {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--nm-primary);
  color: #fff;
}
.nm-ld-logo-text {
  font-size: 18px; font-weight: 800; color: var(--nm-primary);
}
.nm-ld-header-search {
  flex: 1;
  min-width: 0;
}
.nm-ld-search-bar {
  display: flex; align-items: center;
  background: var(--nm-surface);
  border: 1px solid var(--nm-border);
  border-radius: 12px;
  overflow: visible;
  position: relative;
  flex: 1;
}
.nm-ld-search-bar .nm-search-location {
  display: flex; align-items: center; justify-content: center;
  border-radius: 0;
  height: 42px;
  width: 42px;
  flex-shrink: 0;
  color: var(--nm-text-muted);
  cursor: pointer;
  background: transparent;
  transition: color 0.2s;
}
.nm-ld-search-bar .nm-search-location:hover { color: var(--nm-primary); }
.nm-ld-search-bar .nm-search-location.active-filter { color: var(--nm-primary); }
.nm-search-location-label { display: none; }
.nm-ld-search-bar .nm-search-input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: var(--nm-font); font-size: 14px; color: var(--nm-text);
  padding: 10px 12px; direction: rtl; min-width: 0;
}
.nm-ld-search-bar .nm-search-input::placeholder { color: var(--nm-text-muted); }
.nm-ld-search-bar .nm-search-btn {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; background: transparent; border: none;
  color: var(--nm-text-muted); cursor: pointer; flex-shrink: 0;
  transition: color var(--nm-transition);
}
.nm-ld-search-bar .nm-search-btn:hover { color: var(--nm-primary); }
.nm-ld-header-left {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.nm-ld-header-link {
  font-size: 14px; font-weight: 500; color: var(--nm-text-secondary);
  transition: color 0.2s; text-decoration: none; white-space: nowrap;
}
.nm-ld-header-link:hover { color: var(--nm-primary); }
.nm-ld-btn-login {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px;
  background: var(--nm-primary); color: #fff !important;
  border-radius: 10px;
  font-family: var(--nm-font); font-size: 13px; font-weight: 600;
  transition: all 0.25s;
}
.nm-ld-btn-login:hover { background: var(--nm-primary-hover); transform: translateY(-1px); box-shadow: 0 4px 12px var(--nm-primary-glow); }
.nm-ld-btn-visitor {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px;
  background: transparent; color: var(--nm-primary);
  border: 1.5px solid var(--nm-primary);
  border-radius: 10px;
  font-family: var(--nm-font); font-size: 13px; font-weight: 600;
  transition: all 0.25s; text-decoration: none; white-space: nowrap;
}
.nm-ld-btn-visitor:hover {
  background: var(--nm-primary-light);
  transform: translateY(-1px);
}

/* ── Category Pills ── */
.nm-ld-pills {
  background: var(--nm-bg-card);
  border-bottom: 1px solid var(--nm-border);
  padding: 10px 0;
}
.nm-ld-pills .nm-ld-container {
  max-width: 100%;
  margin: 0;
  padding: 0 16px 0 0;
}
.nm-ld-pills-scroll {
  display: flex; gap: 8px; overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  direction: rtl;
}
.nm-ld-pills-scroll::-webkit-scrollbar { display: none; }
.nm-ld-pill {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 10px;
  border: none;
  background: var(--nm-surface);
  color: var(--nm-text-secondary);
  font-family: var(--nm-font); font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.nm-ld-pill.active {
  background: var(--nm-primary);
  color: #fff;
}
.nm-ld-pill:hover:not(.active) {
  background: var(--nm-border-light);
}

/* ── Mobile: hide desktop-only header buttons ── */
@media (max-width: 767px) {
  .nm-ld-header-left-desktop { display: none !important; }
  .nm-ld-header-inner { padding: 10px 12px; gap: 8px; }
  .nm-ld-logo-icon { width: 34px; height: 34px; }
  .nm-ld-logo-icon svg { width: 18px; height: 18px; }
  .nm-ld-logo-text { font-size: 16px; }
  .nm-ld-search-bar .nm-search-location { width: 38px; height: 38px; }
  .nm-ld-search-bar .nm-search-btn { width: 38px; height: 38px; }
}

/* Listings Section */
.nm-ld-listings { padding: 20px 0 36px; }
.nm-ld-listings-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.nm-ld-listings-header h2 { font-size: 17px; font-weight: 700; color: var(--nm-text); margin: 0; }
.nm-ld-see-all {
  display: flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 500; color: var(--nm-primary);
  transition: gap 0.2s;
}
.nm-ld-see-all:hover { gap: 8px; }

/* ── Landing Page Cards ── */
.nm-ld-grid {
  display: flex;
  flex-direction: column;
}
.nm-ld-grid .nm-ad-card-meta span:first-child {
  display: none;
}
@media (min-width: 640px) {
  .nm-ld-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }
  .nm-ld-grid .nm-ad-card {
    width: calc(33.333% - 11px);
    border-radius: 12px;
    border: 1px solid var(--nm-border-light);
    min-height: 0;
    border-bottom: none;
  }
  .nm-ld-grid .nm-ad-card-img-wrap { width: 50%; min-width: unset; height: auto; }
  .nm-ld-grid .nm-ad-card-img,
  .nm-ld-grid .nm-ad-card-img-placeholder { min-height: 180px; height: 180px; }
  .nm-ld-grid .nm-ad-card:active { background: var(--nm-bg-card); }
}
@media (min-width: 1024px) {
  .nm-ld-grid .nm-ad-card { width: calc(25% - 12px); }
}

/* Footer */
.nm-ld-footer {
  padding: 0; border-top: 1px solid var(--nm-border);
  width: 100%;
  box-sizing: border-box;
}
.nm-ld-footer-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}
.nm-ld-footer-inner {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px;
  text-align: right;
  width: 100%;
  box-sizing: border-box;
  padding: 40px 0 0;
}
.nm-ld-footer-col { display: flex; flex-direction: column; gap: 10px; }
.nm-ld-footer-brand {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 18px; font-weight: 800; color: var(--nm-primary);
}
.nm-ld-footer-tagline { font-size: 13px; color: var(--nm-text-muted); margin: 0; line-height: 1.7; }
.nm-ld-footer-heading {
  font-size: 14px; font-weight: 700; color: var(--nm-text);
  margin: 0 0 4px;
}
.nm-ld-footer-links { display: flex; flex-direction: column; gap: 8px; }
.nm-ld-footer-links a, .nm-ld-footer-links span {
  font-size: 13px; color: var(--nm-text-secondary); transition: color 0.2s;
}
.nm-ld-footer-links a:hover { color: var(--nm-primary); }
.nm-ld-footer-links-col { gap: 8px; }
.nm-ld-footer-bottom {
  margin-top: 32px; padding: 16px 0;
  border-top: 1px solid var(--nm-border);
  text-align: center; font-size: 12px; color: var(--nm-text-muted);
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 640px) {
  .nm-ld-footer-inner { grid-template-columns: 1fr; text-align: center; }
  .nm-ld-footer-brand { justify-content: center; }
  .nm-ld-footer-links { align-items: center; }
}

/* Responsive */

/* ═══════════════════════════════════════════
   Desktop (≥768px)
   ═══════════════════════════════════════════ */
@media (min-width: 768px) {
  .nm-mobile-shell {
    max-width: 100%;
  }

  .nm-bottom-tabs {
    display: none;
  }

  .nm-mobile-header {
    display: none;
  }

  .nm-tab-filters {
    display: none;
  }

  .nm-category-pills {
    display: none;
  }

  .nm-desktop-nav {
    display: flex;
    align-items: center;
    padding: 0 48px;
    height: 64px;
    background: var(--nm-bg-card);
    border-bottom: 1px solid var(--nm-border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    box-sizing: border-box;
    gap: 16px;
  }

  .nm-desktop-nav-right {
    flex-shrink: 0;
  }

  .nm-desktop-nav .nm-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 800;
    color: var(--nm-primary);
    text-decoration: none;
  }

  .nm-desktop-search-wrap {
    flex: 1;
    min-width: 0;
  }
  .nm-desktop-search {
    display: flex;
    align-items: center;
    background: var(--nm-surface);
    border: 1px solid var(--nm-border);
    border-radius: 12px;
    overflow: visible;
    position: relative;
  }
  .nm-desktop-search .nm-search-location {
    border-left: 1px solid var(--nm-border);
    border-bottom: none;
    border-top: none;
    border-right: none;
    border-radius: 0;
    height: 40px;
  }
  .nm-desktop-search .nm-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--nm-font);
    font-size: 13px;
    color: var(--nm-text);
    padding: 10px 12px;
    direction: rtl;
    min-width: 0;
  }
  .nm-desktop-search .nm-search-input::placeholder { color: var(--nm-text-muted); }
  .nm-desktop-search .nm-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: transparent;
    border: none;
    color: var(--nm-text-muted);
    cursor: pointer;
    flex-shrink: 0;
    transition: color var(--nm-transition);
  }
  .nm-desktop-search .nm-search-btn:hover { color: var(--nm-primary); }

  .nm-desktop-nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
  }

  .nm-desktop-nav-left a {
    font-size: 14px;
    font-weight: 500;
    color: var(--nm-text-secondary);
    text-decoration: none;
    transition: color var(--nm-transition);
    font-family: var(--nm-font);
    white-space: nowrap;
  }

  .nm-desktop-nav-left a:hover,
  .nm-desktop-nav-left a.active {
    color: var(--nm-primary);
  }

  .nm-desktop-nav-left .nm-btn-primary {
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 13px;
  }

  .nm-nav-visitor-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--nm-primary) !important;
    font-weight: 600 !important;
    padding: 6px 14px;
    border: 1.5px solid var(--nm-primary);
    border-radius: 10px;
    transition: all 0.25s;
  }
  .nm-nav-visitor-link:hover {
    background: var(--nm-primary-light);
  }

  .nm-nav-register-link {
    color: var(--nm-text) !important;
    font-weight: 600 !important;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.25s;
  }
  .nm-nav-register-link:hover {
    color: var(--nm-primary) !important;
    background: var(--nm-primary-light);
  }

  .nm-nav-login-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--nm-text) !important;
    font-weight: 600 !important;
    padding: 6px 14px;
    border: 1.5px solid var(--nm-border);
    border-radius: 10px;
    transition: all 0.25s;
  }
  .nm-nav-login-link:hover {
    color: var(--nm-primary) !important;
    border-color: var(--nm-primary);
    background: var(--nm-primary-light);
  }

  .nm-tab-filters,
  .nm-category-pills {
    padding: 12px 32px;
  }

  .nm-market-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
    box-sizing: border-box;
  }

  .nm-market-sidebar {
    align-self: start;
    position: relative;
    z-index: 10;
  }

  .nm-market-sidebar .nm-filter-group {
    margin-bottom: 20px;
  }

.nm-market-sidebar .nm-filter-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--nm-text);
  margin-bottom: 6px;
}

  .nm-market-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    background: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }

  .nm-ad-card {
    width: calc(33.333% - 11px);
    border-radius: 12px;
    border: 1px solid var(--nm-border-light);
    min-height: 0;
    border-bottom: none;
  }

  .nm-ad-card-img-wrap {
    width: 50%;
    min-width: unset;
    height: auto;
  }

  .nm-ad-card-img,
  .nm-ad-card-img-placeholder {
    min-height: 180px;
    height: 180px;
  }

  .nm-ad-card-body {
    padding: 12px 14px 14px;
  }

  .nm-ad-card:active {
    background: var(--nm-bg-card);
  }

  .nm-market-header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
  }

  .nm-market-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--nm-text);
    margin: 0;
  }

  .nm-featured-card {
    max-width: 1400px;
    margin: 8px auto;
    padding: 16px 32px;
  }

  .nm-fab {
    display: none;
  }

  .nm-form-card {
    max-width: 460px;
    margin: 48px auto;
  }
}

.nm-page-btn {
  padding: 8px 14px;
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius-sm);
  background: var(--nm-bg-card);
  color: var(--nm-text);
  font-size: 13px;
  font-family: var(--nm-font);
  cursor: pointer;
  transition: all var(--nm-transition);
}

.nm-page-btn.active {
  background: var(--nm-primary);
  color: #fff;
  border-color: var(--nm-primary);
}

@media (min-width: 1024px) {
  .nm-market-grid .nm-ad-card {
    width: calc(25% - 12px);
  }
  .nm-ad-card-img-wrap {
    height: auto;
  }
  .nm-ad-card-img,
  .nm-ad-card-img-placeholder {
    height: 180px;
  }
}

.nm-visitor-code-checking {
  font-size: 13px; color: var(--nm-text-muted); display: flex; align-items: center; gap: 6px;
}
.nm-visitor-spinner {
  width: 14px; height: 14px; border: 2px solid var(--nm-border); border-top-color: var(--nm-primary);
  border-radius: 50%; animation: nmSpin 0.6s linear infinite; display: inline-block; flex-shrink: 0;
}
@keyframes nmSpin { to { transform: rotate(360deg); } }

.nm-visitor-code-found {
  font-size: 13px; color: #16a34a; background: rgba(22,163,74,0.08);
  padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(22,163,74,0.2);
  display: flex; align-items: center; gap: 4px;
}
.nm-visitor-code-found svg { color: #16a34a; flex-shrink: 0; }

.nm-visitor-code-not-found {
  font-size: 13px; color: var(--nm-danger); background: rgba(220,38,38,0.06);
  padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(220,38,38,0.15);
  display: flex; align-items: center; gap: 4px;
}
.nm-visitor-code-not-found svg { color: var(--nm-danger); flex-shrink: 0; }

.nm-btn-outline {
  background: transparent; border: 1.5px solid var(--nm-primary); color: var(--nm-primary);
  padding: 8px 16px; border-radius: 10px; cursor: pointer; font-family: inherit;
  transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px;
}
.nm-btn-outline:hover { background: var(--nm-primary); color: #fff; border-color: var(--nm-primary); }
.nm-btn-outline:active { background: var(--nm-primary-hover); color: #fff; border-color: var(--nm-primary-hover); transform: scale(0.97); }

/* ── Field Hint (optional fields) ── */
.nm-field-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--nm-text-muted);
  text-align: center;
  line-height: 1.5;
  padding: 6px 10px;
  background: var(--nm-surface-alt);
  border-radius: 8px;
}

/* ── Jalali Date Picker ── */
.nm-jalali-picker { display: flex; gap: 10px; }
.nm-jalali-select-wrap { flex: 1; position: relative; min-width: 0; }
.nm-jalali-label { display: block; font-size: 12px; font-weight: 600; color: var(--nm-text-muted); margin-bottom: 6px; text-align: right; }
.nm-jalali-select {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--nm-bg-card); border: 1px solid var(--nm-border); border-radius: 10px;
  padding: 10px 12px; cursor: pointer; transition: border-color 0.2s;
  user-select: none; min-height: 44px; box-sizing: border-box;
}
.nm-jalali-select:hover { border-color: var(--nm-primary); }
.nm-jalali-select:focus { outline: none; border-color: var(--nm-primary); box-shadow: 0 0 0 3px var(--nm-primary-glow); }
.nm-jalali-selected { font-size: 14px; color: var(--nm-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nm-jalali-select svg { flex-shrink: 0; color: var(--nm-text-muted); transition: transform 0.2s; }
.nm-jalali-dropdown {
  position: fixed; z-index: 10000;
  background: var(--nm-bg-card); border: 1px solid var(--nm-border); border-radius: 10px;
  box-shadow: var(--nm-shadow-lg); max-height: 140px; overflow-y: auto;
  display: none;
}
.nm-jalali-dropdown.open { display: block; }
.nm-jalali-option {
  padding: 8px 14px; cursor: pointer; font-size: 14px; transition: background 0.15s;
  border-bottom: 1px solid var(--nm-border-light);
}
.nm-jalali-option:last-child { border-bottom: none; }
.nm-jalali-option:hover { background: var(--nm-primary-light); color: var(--nm-primary); }
.nm-jalali-option[data-val] { text-align: center; }
.nm-jalali-select-wrap:last-child .nm-jalali-option { text-align: right; font-variant-numeric: tabular-nums; }

/* ── Custom Province Select (registration page only) ── */
.nm-exh-register-wrap .nm-custom-select {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--nm-bg-card); border: 1px solid var(--nm-border); border-radius: 10px;
  padding: 10px 12px; cursor: pointer; transition: border-color 0.2s;
  user-select: none; min-height: 44px; box-sizing: border-box;
}
.nm-exh-register-wrap .nm-custom-select:hover { border-color: var(--nm-primary); }
.nm-exh-register-wrap .nm-custom-select:focus { outline: none; border-color: var(--nm-primary); box-shadow: 0 0 0 3px var(--nm-primary-glow); }
.nm-exh-register-wrap .nm-custom-select-label { font-size: 14px; color: var(--nm-text-secondary); }
.nm-exh-register-wrap .nm-custom-select svg { flex-shrink: 0; color: var(--nm-text-muted); transition: transform 0.2s; }
.nm-exh-register-wrap .nm-custom-select-dropdown {
  position: fixed; z-index: 10000;
  background: var(--nm-bg-card); border: 1px solid var(--nm-border); border-radius: 10px;
  box-shadow: var(--nm-shadow-lg); display: none;
}
.nm-exh-register-wrap .nm-custom-select-dropdown.open { display: block; }
.nm-exh-register-wrap .nm-custom-select-search { padding: 8px 10px; border-bottom: 1px solid var(--nm-border-light); }
.nm-exh-register-wrap .nm-custom-select-search .nm-input { width: 100%; }
.nm-exh-register-wrap .nm-custom-select-options { max-height: 140px; overflow-y: auto; }
.nm-exh-register-wrap .nm-custom-select-option {
  padding: 10px 14px; cursor: pointer; font-size: 14px; transition: background 0.15s;
  border-bottom: 1px solid var(--nm-border-light);
}
.nm-exh-register-wrap .nm-custom-select-option:last-child { border-bottom: none; }
.nm-exh-register-wrap .nm-custom-select-option:hover { background: var(--nm-primary-light); color: var(--nm-primary); }

/* ── Dealer Photos Grid ── */
.nm-dealer-photos-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px;
  padding: 8px 0;
}
.nm-dealer-photo-thumb {
  position: relative; width: 100%; aspect-ratio: 1; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--nm-border);
}
.nm-dealer-photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nm-dealer-photo-remove {
  position: absolute; top: 4px; left: 4px; width: 22px; height: 22px;
  background: rgba(0,0,0,0.65); border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background 0.2s;
}
.nm-dealer-photo-remove:hover { background: var(--nm-danger); }
.nm-dealer-photo-remove svg { color: #fff; }

/* ── Pending Exhibitor Screen ── */
.nm-pending-screen {
  text-align: center; padding: 40px 24px;
}
.nm-pending-icon {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 20px;
  background: var(--nm-warning-light); display: flex; align-items: center; justify-content: center;
}
.nm-pending-icon svg { color: var(--nm-warning); }
.nm-pending-title {
  font-size: 18px; font-weight: 700; color: var(--nm-text); margin: 0 0 12px;
}
.nm-pending-desc {
  font-size: 14px; color: var(--nm-text-muted); line-height: 1.7; margin: 0 0 24px;
}
.nm-pending-info {
  background: var(--nm-surface-alt); border-radius: 12px; padding: 16px; margin-bottom: 24px;
  text-align: right;
}
.nm-pending-info-row {
  display: flex; justify-content: space-between; align-items: center; padding: 8px 0;
  border-bottom: 1px solid var(--nm-border-light); font-size: 14px;
}
.nm-pending-info-row:last-child { border-bottom: none; }
.nm-pending-info-label { color: var(--nm-text-muted); }
.nm-pending-info-value { font-weight: 600; color: var(--nm-text); }

/* ── Homepage Ribbons ── */
.nm-ld-ribbon {
  padding: 12px 16px; font-size: 14px; font-weight: 500; line-height: 1.6;
}
.nm-ld-ribbon-success {
  background: var(--nm-success-light); color: var(--nm-success);
  border-bottom: 1px solid color-mix(in srgb, var(--nm-success) 20%, transparent);
}
.nm-ld-ribbon-pending {
  background: #fef2f2; color: #b91c1c;
  border-bottom: 1px solid #fecaca;
}
[data-theme="dark"] .nm-ld-ribbon-pending {
  background: #451a1a; color: #fca5a5; border-bottom-color: #7f1d1d;
}
.nm-ld-ribbon a {
  color: inherit; font-weight: 700; text-decoration: underline;
  text-underline-offset: 2px;
}
.nm-ld-ribbon a:hover { opacity: .85; }

/* ── Responsive: stack Jalali picker on small screens ── */
@media (max-width: 480px) {
  .nm-jalali-picker { flex-direction: column; gap: 12px; }
  .nm-jalali-select-wrap { flex: none; width: 100%; }
}

/* ── Registration Entry Page ── */
.nm-register-entry .nm-login-card-inner {
  padding: 32px 24px;
}
.nm-reg-choose-title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 8px;
  color: var(--nm-text);
}
.nm-reg-choose-desc {
  font-size: 14px;
  text-align: center;
  color: var(--nm-text-secondary);
  margin: 0 0 24px;
}
.nm-reg-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 600px) {
  .nm-reg-options {
    flex-direction: row;
  }
}
.nm-reg-option {
  background: var(--nm-bg);
  border: 2px solid var(--nm-border);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  flex: 1;
  min-width: 0;
}
.nm-reg-option:hover {
  border-color: var(--nm-primary);
  background: var(--nm-primary-light);
}
.nm-reg-option-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--nm-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.nm-reg-option-icon svg {
  color: var(--nm-primary);
}
.nm-reg-option-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--nm-text);
}
.nm-reg-option-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  text-align: left;
}
.nm-reg-option-benefits li {
  font-size: 13px;
  color: var(--nm-text-secondary);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nm-reg-option-benefits li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nm-success);
  flex-shrink: 0;
}
.nm-reg-option .nm-btn {
  display: none;
}
.nm-reg-login-link {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--nm-text-secondary);
}
.nm-reg-login-link a {
  color: var(--nm-primary);
  font-weight: 600;
  text-decoration: none;
}
.nm-reg-login-link a:hover {
  text-decoration: underline;
}
.nm-reg-back {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--nm-text-secondary);
  cursor: pointer;
  margin-bottom: 20px;
  padding: 8px 0;
}
.nm-reg-back:hover {
  color: var(--nm-primary);
}
