/* ============================================================
   MONJAZA v2 — Scoped styles, Astra-compatible
   ============================================================ */

/* Reset only inside Monjaza containers */
.mnj-wrap, .mnj-auth-page, .mnj-pricing-page, .mnj-landing {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #111827;
  -webkit-font-smoothing: antialiased;
}
.mnj-wrap *, .mnj-auth-page *, .mnj-pricing-page *, .mnj-landing * {
  box-sizing: border-box;
}

/* ── DASHBOARD SHELL ─────────────────────────────────────── */
.mnj-wrap {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: #f1f3f5;
}
body.admin-bar .mnj-wrap { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .mnj-wrap { top: 46px; }
}

.mnj-shell {
  display: flex;
  height: 100%;
  overflow: hidden;
  background: #f1f3f5;
}

/* ── SIDEBAR ──────────────────────────────────────────────── */
.mnj-sb {
  width: 240px;
  min-width: 240px;
  background: #111318;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  flex-shrink: 0;
}

.mnj-sb-top {
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}

.mnj-sb-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.mnj-sb-logo {
  width: 34px;
  height: 34px;
  background: #6366f1;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.mnj-sb-name {
  font-size: 16px;
  font-weight: 700;
  color: #f9fafb;
  letter-spacing: -.02em;
}

.mnj-sb-sub {
  font-size: 11px;
  color: #4b5068;
  margin-top: 1px;
}

.mnj-sb-nav {
  padding: 14px 10px;
  flex: 1;
  overflow-y: auto;
}

.mnj-sb-section {
  font-size: 10px;
  font-weight: 600;
  color: #383d52;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 0 8px;
  margin-bottom: 5px;
  display: block;
}

.mnj-sb-item {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  width: 100% !important;
  padding: 9px 10px !important;
  border-radius: 8px !important;
  border: none !important;
  background: transparent !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #6b7280 !important;
  cursor: pointer !important;
  text-align: left !important;
  margin: 1px 0 !important;
  transition: all .15s !important;
  text-decoration: none !important;
}

.mnj-sb-item:hover {
  background: #1a1d2a !important;
  color: #d1d5db !important;
}

.mnj-sb-item.active {
  background: #1e2235 !important;
  color: #fff !important;
  font-weight: 500 !important;
}

.mnj-sb-ic {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  opacity: .6;
}

.mnj-sb-item.active .mnj-sb-ic,
.mnj-sb-item:hover .mnj-sb-ic { opacity: 1; }

.mnj-sb-dim { opacity: .4 !important; cursor: default !important; }
.mnj-sb-dim:hover { background: transparent !important; color: #6b7280 !important; }

.mnj-pill-soon {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(251,191,36,.12);
  color: #fbbf24;
  border: 1px solid rgba(251,191,36,.2);
  white-space: nowrap;
}

.mnj-sb-foot {
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}

.mnj-sb-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border-radius: 9px;
  background: #1a1d2a;
  margin-bottom: 10px;
}

.mnj-sb-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #6366f1;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.mnj-sb-uinfo { flex: 1; min-width: 0; }

.mnj-sb-uname {
  font-size: 12px;
  font-weight: 600;
  color: #e5e7eb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mnj-sb-uplan {
  font-size: 11px;
  color: #818cf8;
  margin-top: 1px;
}

.mnj-sb-upgrade {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: 100% !important;
  padding: 9px !important;
  background: #6366f1 !important;
  color: #fff !important;
  border-radius: 9px !important;
  border: none !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: background .15s !important;
}

.mnj-sb-upgrade:hover { background: #4f46e5 !important; }

/* ── MAIN CONTENT ─────────────────────────────────────────── */
.mnj-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #f1f3f5;
  position: relative;
}

/* Topbar */
.mnj-topbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 24px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #e5e7eb !important;
  flex-shrink: 0 !important;
  min-height: 62px !important;
}

.mnj-topbar-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  letter-spacing: -.02em !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.mnj-topbar-date {
  font-size: 12px !important;
  color: #9ca3af !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
}

.mnj-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Badges */
.mnj-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 99px;
  line-height: 1;
}

.mnj-bdg-purple { background: #ede9fe; color: #5b21b6; border: 1px solid #ddd6fe; }
.mnj-bdg-blue   { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.mnj-bdg-green  { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.mnj-bdg-amber  { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.mnj-bdg-red    { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

.mnj-usage-lbl {
  font-size: 12px;
  color: #9ca3af;
  padding: 4px 10px;
  border-radius: 99px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}

.mnj-lang-btn {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  padding: 5px 12px;
  border-radius: 8px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: all .15s;
}

.mnj-lang-btn:hover { background: #e5e7eb; }

.mnj-logout-lnk {
  font-size: 12px;
  color: #9ca3af;
  text-decoration: none;
  cursor: pointer;
  transition: color .15s;
  background: none;
  border: none;
  padding: 0;
}

.mnj-logout-lnk:hover { color: #374151; }

/* Alert bars */
.mnj-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 24px;
  font-size: 13px;
  flex-shrink: 0;
}

.mnj-alert-red   { background: #fef2f2; border-bottom: 1px solid #fecaca; color: #991b1b; }
.mnj-alert-amber { background: #fffbeb; border-bottom: 1px solid #fde68a; color: #92400e; }
.mnj-alert-amber a { color: #d97706; text-decoration: none; font-weight: 500; }

/* Scrollable page */
.mnj-page {
  flex: 1;
  overflow-y: auto;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.mnj-page::-webkit-scrollbar { width: 4px; }
.mnj-page::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 99px; }

.mnj-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mnj-section-title {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #6b7280 !important;
  letter-spacing: .07em !important;
  text-transform: uppercase !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.mnj-section-meta { font-size: 11px; color: #9ca3af; }
.mnj-model-tag { font-size: 10px; color: #9ca3af; padding: 3px 10px; border-radius: 99px; border: 1px solid #e5e7eb; background: #f9fafb; }

/* ── SERVICE CARDS ────────────────────────────────────────── */
.mnj-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}

.mnj-svc-card {
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all .2s;
}

.mnj-svc-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  transition: background .2s;
}

.mnj-svc-card:hover { border-color: #c7d2fe; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(99,102,241,.1); }
.mnj-svc-card:hover::after { background: linear-gradient(90deg,#6366f1,#8b5cf6); }
.mnj-svc-card.is-active { border-color: #6366f1; box-shadow: 0 4px 20px rgba(99,102,241,.12); }
.mnj-svc-card.is-active::after { background: linear-gradient(90deg,#6366f1,#8b5cf6); }
.mnj-svc-card.is-locked { opacity: .5; cursor: not-allowed; }
.mnj-svc-card.is-locked:hover { transform: none; box-shadow: none; border-color: #e5e7eb; }
.mnj-svc-card.is-locked::after { background: transparent !important; }

.mnj-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.mnj-card-name { font-size: 13px; font-weight: 600; color: #111827; margin-bottom: 5px; }
.mnj-card-desc { font-size: 11px; color: #9ca3af; line-height: 1.5; }

.mnj-card-badge {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
}

.mnj-badge-live { background: #dcfce7; color: #166534; }
.mnj-badge-soon { background: #fef9c3; color: #854d0e; }

/* ── AGENT CARD ───────────────────────────────────────────── */
.mnj-agent-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

/* Task tabs */
.mnj-task-header { border-bottom: 1px solid #f3f4f6; }

.mnj-task-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.mnj-task-tab {
  display: flex !important;
  flex-direction: column !important;
  padding: 14px 16px !important;
  border: none !important;
  border-right: 1px solid #f3f4f6 !important;
  background: transparent !important;
  cursor: pointer !important;
  text-align: left !important;
  transition: background .15s !important;
  position: relative !important;
}

.mnj-task-tab:last-child { border-right: none !important; }
.mnj-task-tab:hover { background: #fafafa !important; }
.mnj-task-tab.is-active { background: #faf9ff !important; }

.mnj-task-tab.is-active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,#6366f1,#8b5cf6);
}

.mnj-task-tab-icon {
  display: flex;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #f3f4f6;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  color: #6b7280;
  transition: all .15s;
  flex-shrink: 0;
}

.mnj-task-tab.is-active .mnj-task-tab-icon { background: #ede9fe; color: #6366f1; }
.mnj-task-tab:hover .mnj-task-tab-icon { background: #f0effe; }

.mnj-task-tab-name { font-size: 12px; font-weight: 600; color: #374151; margin-bottom: 2px; }
.mnj-task-tab.is-active .mnj-task-tab-name { color: #4f46e5; }
.mnj-task-tab-desc { font-size: 11px; color: #9ca3af; line-height: 1.4; }

/* Chat */
.mnj-chat {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 210px;
  max-height: 250px;
  overflow-y: auto;
  background: #fafafa;
}

.mnj-chat::-webkit-scrollbar { width: 3px; }
.mnj-chat::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 99px; }

.mnj-msg { display: flex; flex-direction: column; max-width: 82%; }
.mnj-msg-ai   { align-self: flex-start; }
.mnj-msg-user { align-self: flex-end; }

.mnj-msg-label {
  font-size: 10px;
  font-weight: 700;
  color: #6366f1;
  letter-spacing: .07em;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.mnj-msg-label::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #6366f1;
  display: inline-block;
  flex-shrink: 0;
}

.mnj-msg-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.65;
}

.mnj-msg-ai .mnj-msg-bubble   { background: #fff; border: 1px solid #e5e7eb; border-bottom-left-radius: 3px; color: #111827; }
.mnj-msg-user .mnj-msg-bubble { background: #6366f1; color: #fff; border-bottom-right-radius: 3px; }
.mnj-msg-bubble strong { font-weight: 600; }
.mnj-msg-bubble ul { margin: 6px 0 6px 16px; }
.mnj-msg-bubble li { margin: 3px 0; }
.mnj-msg-bubble code { background: #f3f4f6; padding: 1px 5px; border-radius: 4px; font-size: 12px; color: #4f46e5; }
.mnj-msg-bubble h3, .mnj-msg-bubble h4 { font-size: 13px !important; font-weight: 600 !important; margin: 8px 0 4px !important; color: #111 !important; padding: 0 !important; border: none !important; }

.mnj-suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.mnj-chip {
  font-size: 11px !important;
  padding: 5px 12px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 99px !important;
  background: #fff !important;
  cursor: pointer !important;
  color: #6b7280 !important;
  transition: all .15s !important;
}

.mnj-chip:hover { border-color: #6366f1 !important; color: #4f46e5 !important; background: #faf9ff !important; }

/* Loading dots */
.mnj-dots { display: flex; gap: 4px; align-items: center; padding: 2px 0; }
.mnj-dots span { width: 5px; height: 5px; border-radius: 50%; background: #c7d2fe; animation: mnjDots 1.2s ease-in-out infinite; }
.mnj-dots span:nth-child(2) { animation-delay: .2s; }
.mnj-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes mnjDots { 0%,80%,100%{opacity:.3;transform:scale(.8)} 40%{opacity:1;transform:scale(1)} }

/* Input */
.mnj-input-bar {
  display: flex;
  gap: 9px;
  padding: 12px 18px;
  background: #fff;
  border-top: 1px solid #f3f4f6;
  align-items: flex-end;
}

#mnj-input {
  flex: 1;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-family: inherit;
  resize: none;
  min-height: 42px;
  max-height: 100px;
  outline: none;
  background: #f9fafb;
  color: #111;
  line-height: 1.5;
  transition: all .15s;
  display: block;
  width: 100%;
}

#mnj-input::placeholder { color: #9ca3af; }
#mnj-input:focus { border-color: #6366f1; background: #fff; box-shadow: 0 0 0 3px rgba(99,102,241,.08); }
#mnj-input:disabled { opacity: .4; cursor: not-allowed; }

#mnj-send {
  padding: 0 20px;
  background: #6366f1;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  height: 42px;
  white-space: nowrap;
  transition: all .15s;
  flex-shrink: 0;
  font-family: inherit;
}

#mnj-send:hover { background: #4f46e5; }
#mnj-send:disabled { background: #e5e7eb; color: #9ca3af; cursor: not-allowed; }

/* Coming soon panels */
.mnj-coming-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.mnj-coming-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.mnj-coming-card h3 { font-size: 20px !important; font-weight: 700 !important; color: #111 !important; margin: 0 !important; padding: 0 !important; border: none !important; }
.mnj-coming-card p { font-size: 14px; color: #6b7280; max-width: 340px; line-height: 1.65; margin: 0; }
.mnj-coming-pill { font-size: 12px; padding: 5px 16px; border-radius: 99px; background: #fef9c3; color: #854d0e; border: 1px solid #fde68a; font-weight: 500; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.mnj-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 10px 20px !important;
  border-radius: 9px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  border: none !important;
  transition: all .15s !important;
  font-family: inherit !important;
  line-height: 1 !important;
}

.mnj-btn-primary { background: #6366f1 !important; color: #fff !important; }
.mnj-btn-primary:hover { background: #4f46e5 !important; color: #fff !important; }
.mnj-btn-outline { background: #fff !important; color: #374151 !important; border: 1.5px solid #e5e7eb !important; }
.mnj-btn-outline:hover { border-color: #6366f1 !important; color: #4f46e5 !important; }
.mnj-btn-ghost { background: transparent !important; color: #6b7280 !important; border: 1.5px solid #e5e7eb !important; }
.mnj-btn-ghost:hover { color: #374151 !important; border-color: #9ca3af !important; }
.mnj-btn-white { background: #fff !important; color: #111 !important; border: 1.5px solid rgba(255,255,255,.3) !important; }
.mnj-btn-white:hover { background: #f0f0f0 !important; }
.mnj-btn-full { width: 100% !important; }
.mnj-btn-lg { padding: 13px 26px !important; font-size: 14px !important; border-radius: 11px !important; }
.mnj-btn-sm { padding: 6px 14px !important; font-size: 12px !important; border-radius: 7px !important; }

/* ── AUTH PAGES ───────────────────────────────────────────── */
.mnj-auth-page {
  min-height: 100vh;
  background: #f1f3f5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.mnj-auth-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 38px 34px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 32px rgba(0,0,0,.06);
}

.mnj-auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  font-size: 18px;
  font-weight: 700;
  color: #111;
}

.mnj-auth-logo {
  width: 34px;
  height: 34px;
  background: #6366f1;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.mnj-auth-box h1 { font-size: 24px !important; font-weight: 700 !important; color: #111 !important; margin: 0 0 6px !important; padding: 0 !important; border: none !important; letter-spacing: -.02em !important; }
.mnj-auth-sub    { font-size: 14px; color: #6b7280; margin: 0 0 22px; }

.mnj-trial-note {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  color: #166534;
  margin-bottom: 18px;
}

.mnj-form-msg { border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-bottom: 12px; }
.mnj-msg-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.mnj-msg-ok    { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }

.mnj-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.mnj-field label { font-size: 12px !important; font-weight: 600 !important; color: #374151 !important; }
.mnj-field input {
  border: 1.5px solid #e5e7eb !important;
  border-radius: 9px !important;
  padding: 10px 13px !important;
  font-size: 14px !important;
  font-family: inherit !important;
  background: #fff !important;
  color: #111 !important;
  outline: none !important;
  transition: all .15s !important;
  width: 100% !important;
  display: block !important;
  box-shadow: none !important;
}
.mnj-field input:focus { border-color: #6366f1 !important; box-shadow: 0 0 0 3px rgba(99,102,241,.08) !important; }
.mnj-auth-switch { margin-top: 16px; text-align: center; font-size: 13px; color: #6b7280; }
.mnj-auth-switch a { color: #6366f1; text-decoration: none; font-weight: 500; }

/* ── PRICING PAGE ─────────────────────────────────────────── */
.mnj-pricing-page { min-height: 100vh; background: #f1f3f5; padding: 56px 20px; }
.mnj-pricing-inner { max-width: 860px; margin: 0 auto; }
.mnj-pricing-inner h1 { font-size: 32px !important; font-weight: 700 !important; color: #111 !important; text-align: center !important; margin: 0 0 10px !important; padding: 0 !important; border: none !important; letter-spacing: -.02em !important; }
.mnj-pricing-sub { font-size: 16px; color: #6b7280; text-align: center; margin: 0 0 40px; }
.mnj-pricing-trial-note { text-align: center; margin-top: 26px; font-size: 13px; color: #6b7280; }
.mnj-pricing-trial-note a { color: #6366f1; text-decoration: none; font-weight: 500; }

.mnj-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.mnj-plan {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px 24px;
  position: relative;
  transition: all .2s;
}

.mnj-plan:hover { box-shadow: 0 4px 24px rgba(0,0,0,.06); }

.mnj-plan-pro {
  border-color: #6366f1;
  box-shadow: 0 4px 24px rgba(99,102,241,.1);
}

.mnj-plan-pro::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,#6366f1,#8b5cf6);
  border-radius: 16px 16px 0 0;
}

.mnj-plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #6366f1;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 99px;
  white-space: nowrap;
}

.mnj-plan-tier  { font-size: 11px; font-weight: 700; color: #9ca3af; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.mnj-plan-price { font-size: 38px; font-weight: 700; color: #111; margin-bottom: 16px; letter-spacing: -.03em; line-height: 1; }
.mnj-plan-price span { font-size: 14px; font-weight: 400; color: #9ca3af; }

.mnj-plan-feats { list-style: none !important; padding: 0 !important; margin: 0 0 24px !important; display: flex; flex-direction: column; gap: 9px; }
.mnj-plan-feats li { font-size: 13px !important; color: #374151 !important; padding-left: 20px !important; position: relative !important; list-style: none !important; }
.mnj-plan-feats li::before { content: '✓'; position: absolute; left: 0; color: #22c55e; font-weight: 700; }


/* ══════════════════════════════════════════════════════════
   LANDING PAGE
══════════════════════════════════════════════════════════ */
.mnj-landing {
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #111;
}
.mnj-landing * { box-sizing: border-box; }
.mnj-landing a { text-decoration: none; }
.mnj-lsection  { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

/* ── NAV ── */
.mnj-lnav { background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-bottom: 1px solid #f3f4f6; position: sticky; top: 0; z-index: 200; }
.mnj-lnav-inner { max-width: 1080px; margin: 0 auto; padding: 0 28px; height: 62px; display: flex; align-items: center; justify-content: space-between; }
.mnj-lnav-brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; color: #111; }
.mnj-lnav-logo  { width: 34px; height: 34px; background: #6366f1; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; color: #fff; flex-shrink: 0; }
.mnj-lnav-links { display: flex; align-items: center; gap: 22px; }
.mnj-lnav-links a { font-size: 13px; color: #6b7280; transition: color .15s; }
.mnj-lnav-links a:hover { color: #111; }
.mnj-lnav-login { font-size: 13px !important; color: #374151 !important; font-weight: 500 !important; }
.mnj-lnav-cta   { background: #6366f1 !important; color: #fff !important; padding: 8px 18px; border-radius: 8px; font-weight: 600 !important; font-size: 13px !important; transition: background .15s !important; }
.mnj-lnav-cta:hover { background: #4f46e5 !important; color: #fff !important; }

/* ── HERO ── */
.mnj-hero { padding: 100px 28px 80px; background: linear-gradient(180deg,#faf9ff 0%,#fff 100%); text-align: center; }
.mnj-hero-inner { max-width: 760px; margin: 0 auto; }
.mnj-hero-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; padding: 6px 16px; border-radius: 99px; border: 1px solid #e0e7ff; background: #eef2ff; color: #4f46e5; margin-bottom: 28px; }
.mnj-hero h1 { font-size: 54px !important; font-weight: 800 !important; line-height: 1.1 !important; color: #0f0f1a !important; letter-spacing: -.03em !important; margin: 0 0 20px !important; padding: 0 !important; border: none !important; }
.mnj-hero > .mnj-hero-inner > p { font-size: 18px; color: #6b7280; line-height: 1.7; max-width: 600px; margin: 0 auto 36px; }
.mnj-hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.mnj-hero-note { font-size: 12px; color: #9ca3af; margin-bottom: 44px; }
.mnj-hero-stats { display: inline-flex; align-items: center; gap: 0; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 14px; padding: 16px 28px; flex-wrap: wrap; justify-content: center; gap: 0; }
.mnj-stat { display: flex; flex-direction: column; align-items: center; padding: 0 24px; }
.mnj-stat span { font-size: 22px; font-weight: 700; color: #111; letter-spacing: -.02em; }
.mnj-stat > :last-child { font-size: 11px; color: #9ca3af; margin-top: 2px; white-space: nowrap; }
.mnj-stat-divider { width: 1px; height: 36px; background: #e5e7eb; }

/* ── FEATURES ── */
.mnj-lfeatures { padding: 90px 0; background: #f9fafb; border-top: 1px solid #f3f4f6; }
.mnj-lsec-label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6366f1; margin-bottom: 12px; }
.mnj-lfeatures h2, .mnj-how h2, .mnj-testimonials h2, .mnj-lpricing h2, .mnj-faq h2 {
  font-size: 38px !important; font-weight: 700 !important; color: #111 !important;
  letter-spacing: -.02em !important; margin: 0 0 14px !important; padding: 0 !important; border: none !important; line-height: 1.15 !important;
}
.mnj-lsec-sub { font-size: 16px; color: #6b7280; line-height: 1.65; max-width: 600px; margin: 0 0 48px; }
.mnj-feat-cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.mnj-feat-card-lg { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 28px; transition: all .2s; }
.mnj-feat-card-lg:hover { box-shadow: 0 8px 32px rgba(0,0,0,.06); transform: translateY(-3px); }
.mnj-feat-card-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.mnj-feat-card-lg h3 { font-size: 18px !important; font-weight: 700 !important; color: #111 !important; margin: 0 0 10px !important; padding: 0 !important; border: none !important; }
.mnj-feat-card-lg > p { font-size: 14px; color: #6b7280; line-height: 1.65; margin: 0 0 18px; }
.mnj-feat-list { list-style: none !important; padding: 0 !important; margin: 0 !important; display: flex; flex-direction: column; gap: 8px; }
.mnj-feat-list li { font-size: 13px !important; color: #374151 !important; padding-left: 18px !important; position: relative !important; }
.mnj-feat-list li::before { content: '✓'; position: absolute; left: 0; color: #22c55e; font-weight: 700; }
.mnj-feat-purple:hover { border-color: #c7d2fe; }
.mnj-feat-blue:hover   { border-color: #bfdbfe; }
.mnj-feat-green:hover  { border-color: #bbf7d0; }
.mnj-feat-orange:hover { border-color: #fed7aa; }

/* ── HOW IT WORKS ── */
.mnj-how { padding: 90px 0; border-top: 1px solid #f3f4f6; }
.mnj-steps { display: flex; align-items: flex-start; gap: 0; margin-top: 48px; }
.mnj-step { flex: 1; }
.mnj-step-num { width: 44px; height: 44px; border-radius: 50%; background: #6366f1; color: #fff; font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.mnj-step h4 { font-size: 16px !important; font-weight: 700 !important; color: #111 !important; margin: 0 0 8px !important; padding: 0 !important; border: none !important; }
.mnj-step p  { font-size: 14px; color: #6b7280; line-height: 1.65; margin: 0; }
.mnj-step-arrow { font-size: 24px; color: #d1d5db; padding: 10px 20px; margin-top: 10px; }

/* ── TESTIMONIALS ── */
.mnj-testimonials { padding: 90px 0; background: #f9fafb; border-top: 1px solid #f3f4f6; }
.mnj-testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 48px; }
.mnj-testi { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 26px; }
.mnj-testi-stars { color: #f59e0b; font-size: 15px; margin-bottom: 12px; letter-spacing: 2px; }
.mnj-testi > p { font-size: 14px; color: #374151; line-height: 1.7; margin: 0 0 20px; font-style: italic; }
.mnj-testi-author { display: flex; align-items: center; gap: 11px; }
.mnj-testi-av { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: #fff; flex-shrink: 0; }
.mnj-testi-name { font-size: 13px; font-weight: 600; color: #111; }
.mnj-testi-role { font-size: 11px; color: #9ca3af; margin-top: 2px; }

/* ── PRICING ── */
.mnj-lpricing { padding: 90px 0; border-top: 1px solid #f3f4f6; }
.mnj-lprice-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 48px; }
.mnj-lprice-card { background: #fff; border: 1.5px solid #e5e7eb; border-radius: 16px; padding: 30px 26px; position: relative; transition: all .2s; }
.mnj-lprice-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.mnj-lprice-featured { border-color: #6366f1; box-shadow: 0 6px 28px rgba(99,102,241,.12); }
.mnj-lprice-featured::before { content:''; position:absolute; top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#6366f1,#8b5cf6);border-radius:16px 16px 0 0; }
.mnj-lprice-badge { position:absolute;top:-12px;left:50%;transform:translateX(-50%);background:#6366f1;color:#fff;font-size:10px;font-weight:700;padding:4px 14px;border-radius:99px;white-space:nowrap; }
.mnj-lprice-name   { font-size:11px;font-weight:700;color:#9ca3af;text-transform:uppercase;letter-spacing:.1em;margin-bottom:10px; }
.mnj-lprice-amount { font-size:40px;font-weight:700;color:#111;letter-spacing:-.03em;line-height:1;margin-bottom:20px; }
.mnj-lprice-amount span { font-size:15px;font-weight:400;color:#9ca3af; }
.mnj-lprice-feats { list-style:none!important;padding:0!important;margin:0 0 26px!important;display:flex;flex-direction:column;gap:10px; }
.mnj-lprice-feats li { font-size:13px!important;color:#374151!important;padding-left:20px!important;position:relative!important; }
.mnj-lprice-feats li::before { content:'✓';position:absolute;left:0;color:#22c55e;font-weight:700; }
.mnj-lprice-note { text-align:center;margin-top:24px;font-size:13px;color:#6b7280; }

/* ── FAQ ── */
.mnj-faq { padding: 90px 0; background: #f9fafb; border-top: 1px solid #f3f4f6; }
.mnj-faq-list { margin-top: 48px; display: flex; flex-direction: column; gap: 0; border: 1px solid #e5e7eb; border-radius: 14px; overflow: hidden; background: #fff; }
.mnj-faq-item { border-bottom: 1px solid #f3f4f6; }
.mnj-faq-item:last-child { border-bottom: none; }
.mnj-faq-q { display: flex !important; align-items: center !important; justify-content: space-between !important; width: 100% !important; padding: 18px 22px !important; background: transparent !important; border: none !important; cursor: pointer !important; font-size: 15px !important; font-weight: 600 !important; color: #111 !important; text-align: left !important; font-family: inherit !important; gap: 16px !important; transition: background .15s !important; }
.mnj-faq-q:hover { background: #fafafa !important; }
.mnj-faq-icon { flex-shrink: 0; transition: transform .2s; color: #6b7280; }
.mnj-faq-a { padding: 0 22px 18px; font-size: 14px; color: #6b7280; line-height: 1.7; }

/* ── CTA ── */
.mnj-lcta { padding: 80px 28px; background: linear-gradient(135deg,#4f46e5,#7c3aed); }
.mnj-lcta-inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.mnj-lcta h2 { font-size: 30px !important; font-weight: 700 !important; color: #fff !important; margin: 0 0 10px !important; padding: 0 !important; border: none !important; letter-spacing: -.02em !important; }
.mnj-lcta > .mnj-lcta-inner > div > p { font-size: 16px; color: #c7d2fe; margin: 0; line-height: 1.6; }
.mnj-lcta-btns { flex-shrink: 0; }
.mnj-btn-white { background: #fff !important; color: #4f46e5 !important; border: none !important; }
.mnj-btn-white:hover { background: #f0f0ff !important; color: #4338ca !important; }

/* ── FOOTER ── */
.mnj-lfooter { background: #0f1117; padding: 40px 28px; }
.mnj-lfooter-inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.mnj-lfooter-brand { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: #fff; }
.mnj-lfooter-links { display: flex; gap: 22px; flex-wrap: wrap; }
.mnj-lfooter-links a { font-size: 13px; color: #6b7280; transition: color .15s; }
.mnj-lfooter-links a:hover { color: #e2e8f0; }
.mnj-lfooter-copy { font-size: 12px; color: #4a4f6a; }

/* RTL adjustments for landing */
[dir=rtl] .mnj-feat-list li,
[dir=rtl] .mnj-lprice-feats li { padding-left: 0 !important; padding-right: 18px !important; }
[dir=rtl] .mnj-feat-list li::before,
[dir=rtl] .mnj-lprice-feats li::before { left: auto; right: 0; }
[dir=rtl] .mnj-step-arrow { transform: scaleX(-1); }
[dir=rtl] .mnj-faq-q { text-align: right !important; }

/* ══════════════════════════════════════════════════════════
   RTL / ARABIC FULL POLISH
══════════════════════════════════════════════════════════ */

/* ── Sidebar — move to right in AR ── */
[dir=rtl] .mnj-shell { flex-direction: row-reverse !important; }
[dir=rtl] .mnj-sb { border-right: none !important; border-left: 1px solid rgba(255,255,255,.06) !important; }
[dir=rtl] .mnj-sb-brand { flex-direction: row-reverse !important; }
[dir=rtl] .mnj-sb-item  { flex-direction: row-reverse !important; text-align: right !important; }
[dir=rtl] .mnj-sb-item .mnj-sb-ic { margin-right: 0 !important; margin-left: 0 !important; }
[dir=rtl] .mnj-pill-soon { margin-left: 0 !important; margin-right: auto !important; }
[dir=rtl] .mnj-sb-dot   { margin-left: 0 !important; margin-right: auto !important; }
[dir=rtl] .mnj-sb-user  { flex-direction: row-reverse !important; }
[dir=rtl] .mnj-sb-uinfo { text-align: right !important; }
[dir=rtl] .mnj-sb-upgrade { flex-direction: row-reverse !important; }

/* ── Topbar ── */
[dir=rtl] .mnj-topbar { flex-direction: row-reverse !important; }
[dir=rtl] .mnj-topbar-title,
[dir=rtl] .mnj-topbar-date { text-align: right !important; }
[dir=rtl] .mnj-topbar-right { flex-direction: row-reverse !important; }

/* ── Service cards ── */
[dir=rtl] .mnj-cards-grid { direction: rtl !important; }
[dir=rtl] .mnj-card-badge { right: auto !important; left: 12px !important; }
[dir=rtl] .mnj-svc-status { right: auto !important; left: 12px !important; }

/* ── Section headers ── */
[dir=rtl] .mnj-section-header { flex-direction: row-reverse !important; }

/* ── Task tabs ── */
[dir=rtl] .mnj-task-tabs { direction: rtl !important; }
[dir=rtl] .mnj-task-tab  { text-align: right !important; }
[dir=rtl] .mnj-task-tab:last-child  { border-right: 1px solid #f3f4f6 !important; border-left: none !important; }
[dir=rtl] .mnj-task-tab:first-child { border-left: none !important; }

/* ── Chat bubbles ── */
[dir=rtl] .mnj-msg-ai   { align-self: flex-end !important; }
[dir=rtl] .mnj-msg-user { align-self: flex-start !important; }
[dir=rtl] .mnj-msg-ai .mnj-msg-bubble {
  border-radius: 12px !important;
  border-bottom-right-radius: 3px !important;
  border-bottom-left-radius: 12px !important;
}
[dir=rtl] .mnj-msg-user .mnj-msg-bubble {
  border-radius: 12px !important;
  border-bottom-left-radius: 3px !important;
  border-bottom-right-radius: 12px !important;
}
[dir=rtl] .mnj-msg-label { flex-direction: row-reverse !important; }
[dir=rtl] .mnj-msg-label::before { margin-right: 0 !important; margin-left: 5px !important; }
[dir=rtl] .mnj-suggestions { flex-direction: row-reverse !important; flex-wrap: wrap !important; }

/* ── Input bar ── */
[dir=rtl] .mnj-input-bar { flex-direction: row-reverse !important; }
[dir=rtl] #mnj-input { text-align: right !important; }

/* ── Content Writer form ── */
[dir=rtl] .mnj-cw-form { direction: rtl !important; }
[dir=rtl] .mnj-cw-row  { direction: rtl !important; }
[dir=rtl] .mnj-cw-field label { text-align: right !important; }

/* ── Agent card header ── */
[dir=rtl] .mnj-task-header { direction: rtl !important; }
[dir=rtl] .mnj-agent-card  { direction: rtl !important; }

/* ── Coming card ── */
[dir=rtl] .mnj-coming-card { direction: rtl !important; }

/* ── Alerts ── */
[dir=rtl] .mnj-alert { flex-direction: row-reverse !important; }

/* ── Profile & Billing inline panels ── */
[dir=rtl] #mnj-panel-profile,
[dir=rtl] #mnj-panel-billing {
  direction: rtl !important;
  text-align: right !important;
}
[dir=rtl] #mnj-panel-profile input,
[dir=rtl] #mnj-panel-billing input { text-align: right !important; direction: rtl !important; }
[dir=rtl] #mnj-panel-profile .mnj-psave-btn,
[dir=rtl] #mnj-panel-billing button { font-family: inherit !important; }

/* Danger zone row flip */
[dir=rtl] #mnj-panel-profile [style*="display:flex"] { flex-direction: row-reverse !important; }
/* Don't flip icon+text rows that should stay together */
[dir=rtl] #mnj-panel-profile [style*="align-items:center"][style*="gap:7px"] { flex-direction: row !important; }

/* ── Auth pages ── */
[dir=rtl] .mnj-auth-box  { direction: rtl !important; text-align: right !important; }
[dir=rtl] .mnj-auth-brand { flex-direction: row-reverse !important; }
[dir=rtl] .mnj-auth-switch { direction: rtl !important; }
[dir=rtl] .mnj-field input { text-align: right !important; direction: rtl !important; }

/* ── Pricing page ── */
[dir=rtl] .mnj-pricing-page   { direction: rtl !important; text-align: right !important; }
[dir=rtl] .mnj-plan-feats li  { padding-left: 0 !important; padding-right: 20px !important; }
[dir=rtl] .mnj-plan-feats li::before { left: auto !important; right: 0 !important; }

/* ── Landing page full RTL ── */
[dir=rtl] .mnj-lnav-inner  { flex-direction: row-reverse !important; }
[dir=rtl] .mnj-lnav-links  { flex-direction: row-reverse !important; }
[dir=rtl] .mnj-lnav-brand  { flex-direction: row-reverse !important; }
[dir=rtl] .mnj-hero        { direction: rtl !important; }
[dir=rtl] .mnj-hero h1     { text-align: center !important; }
[dir=rtl] .mnj-lfeatures   { direction: rtl !important; text-align: right !important; }
[dir=rtl] .mnj-feat-cards  { direction: rtl !important; }
[dir=rtl] .mnj-feat-list li { padding-left: 0 !important; padding-right: 18px !important; }
[dir=rtl] .mnj-feat-list li::before { left: auto !important; right: 0 !important; }
[dir=rtl] .mnj-how         { direction: rtl !important; text-align: right !important; }
[dir=rtl] .mnj-steps       { flex-direction: row-reverse !important; }
[dir=rtl] .mnj-step-arrow  { transform: scaleX(-1) !important; }
[dir=rtl] .mnj-testimonials { direction: rtl !important; text-align: right !important; }
[dir=rtl] .mnj-testi-author { flex-direction: row-reverse !important; }
[dir=rtl] .mnj-testi > p   { text-align: right !important; }
[dir=rtl] .mnj-lpricing    { direction: rtl !important; text-align: right !important; }
[dir=rtl] .mnj-lprice-feats li { padding-left: 0 !important; padding-right: 20px !important; }
[dir=rtl] .mnj-lprice-feats li::before { left: auto !important; right: 0 !important; }
[dir=rtl] .mnj-faq         { direction: rtl !important; }
[dir=rtl] .mnj-faq-q       { text-align: right !important; flex-direction: row-reverse !important; }
[dir=rtl] .mnj-lcta        { direction: rtl !important; text-align: right !important; }
[dir=rtl] .mnj-lcta-inner  { flex-direction: row-reverse !important; }
[dir=rtl] .mnj-lfooter-inner { flex-direction: row-reverse !important; }
[dir=rtl] .mnj-lfooter-links { flex-direction: row-reverse !important; }

/* ── Upgrade plans grid in billing (inline styles) ── */
[dir=rtl] #mnj-panel-billing [style*="grid-template-columns"] { direction: rtl !important; }
[dir=rtl] #mnj-panel-billing li { padding-left: 0 !important; padding-right: 18px !important; text-align: right !important; }
[dir=rtl] #mnj-panel-billing li span[style*="position:absolute"] { left: auto !important; right: 0 !important; }

/* ── Admin panel ── */
[dir=rtl] .mnj-sb-section { text-align: right !important; }

/* ── Scrollbar on left in RTL ── */
[dir=rtl] .mnj-page { direction: rtl !important; }
[dir=rtl] .mnj-chat { direction: rtl !important; }

/* ── Font: use a good Arabic font ── */
[dir=rtl] .mnj-shell,
[dir=rtl] .mnj-shell *,
[dir=rtl] .mnj-auth-page,
[dir=rtl] .mnj-landing,
[dir=rtl] .mnj-pricing-page {
  font-family: 'Segoe UI', 'Tahoma', 'Arial', sans-serif !important;
}

/* ── Language switcher in Astra nav menu ── */
.mnj-lang-menu-item > a {
    font-weight: 700 !important;
    font-size: 13px !important;
    padding: 5px 13px !important;
    border-radius: 99px !important;
    border: 1.5px solid currentColor !important;
    line-height: 1 !important;
    opacity: .85 !important;
    transition: opacity .15s !important;
}
.mnj-lang-menu-item > a:hover { opacity: 1 !important; }

/* ── Arabic SEO Specialist ── */
#mnj-panel-arabic_seo .mnj-task-tab.is-active { background:#fffbeb !important; }
#mnj-panel-arabic_seo .mnj-task-tab.is-active::after { background:linear-gradient(90deg,#b45309,#d97706) !important; }
#mnj-panel-arabic_seo .mnj-task-tab.is-active .mnj-task-tab-name { color:#92400e !important; }
#mnj-panel-arabic_seo .mnj-task-tab.is-active .mnj-task-tab-icon { background:#fef3c7 !important; }
#mnj-panel-arabic_seo .mnj-msg-label { color:#b45309 !important; }
#mnj-panel-arabic_seo .mnj-msg-label::before { background:#b45309 !important; }
#mnj-panel-arabic_seo #mnj-input-arabic_seo:focus { border-color:#b45309 !important; box-shadow:0 0 0 3px rgba(180,83,9,.08) !important; }
#mnj-panel-arabic_seo .mnj-send-btn { background:#b45309 !important; }
#mnj-panel-arabic_seo .mnj-send-btn:hover { background:#92400e !important; }

/* ── FAQ & Schema Generator ── */
#mnj-panel-faq_schema .mnj-task-tab.is-active { background:#f0fdfa !important; }
#mnj-panel-faq_schema .mnj-task-tab.is-active::after { background:linear-gradient(90deg,#0f766e,#14b8a6) !important; }
#mnj-panel-faq_schema .mnj-task-tab.is-active .mnj-task-tab-name { color:#0f766e !important; }
#mnj-panel-faq_schema .mnj-task-tab.is-active .mnj-task-tab-icon { background:#f0fdfa !important; }
#mnj-panel-faq_schema pre::-webkit-scrollbar { width:4px; height:4px; }
#mnj-panel-faq_schema pre::-webkit-scrollbar-thumb { background:#374151; border-radius:99px; }
#faq-questions::-webkit-scrollbar { width:3px; }
#faq-questions::-webkit-scrollbar-thumb { background:#e5e7eb; border-radius:99px; }

/* ── Meta Bulk Generator ── */
#mnj-panel-meta_bulk .mnj-task-tab.is-active::after { background:linear-gradient(90deg,#0e7490,#06b6d4) !important; }
#mb-table tbody tr:hover { background:#f0f9ff !important; }
#mb-table tbody tr.mb-row:hover td { background:#f0f9ff; }


/* ══════════════════════════════════════════════════════════
   CONTENT WRITER FORM — Layout fix
══════════════════════════════════════════════════════════ */
.mnj-cw-form {
  padding: 20px 22px;
  background: #fff;
  border-bottom: 1px solid #f3f4f6;
}

.mnj-cw-row {
  display: grid;
  grid-template-columns: 1fr 140px 140px;
  gap: 12px;
  margin-bottom: 12px;
  align-items: end;
}

.mnj-cw-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.mnj-cw-field:last-of-type { margin-bottom: 14px; }

.mnj-cw-field label {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #374151 !important;
  display: block !important;
}

.mnj-cw-field input,
.mnj-cw-field select {
  width: 100% !important;
  border: 1.5px solid #e5e7eb !important;
  border-radius: 9px !important;
  padding: 9px 12px !important;
  font-size: 13px !important;
  font-family: inherit !important;
  background: #f9fafb !important;
  color: #111 !important;
  outline: none !important;
  transition: border-color .15s !important;
  box-shadow: none !important;
  appearance: auto !important;
}

.mnj-cw-field input:focus,
.mnj-cw-field select:focus {
  border-color: #6366f1 !important;
  background: #fff !important;
}

.mnj-cw-field-sm { margin-bottom: 0; }

/* Content Writer output */
.mnj-cw-output {
  border-top: 1px solid #f3f4f6;
  background: #fff;
}

.mnj-cw-output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}

.mnj-copy-btn {
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 5px 14px !important;
  border-radius: 7px !important;
  border: 1px solid #e5e7eb !important;
  background: #f9fafb !important;
  color: #374151 !important;
  cursor: pointer !important;
  font-family: inherit !important;
  transition: all .15s !important;
}

.mnj-copy-btn:hover { background: #f3f4f6 !important; }
.mnj-copy-btn.copied { background: #f0fdf4 !important; color: #166534 !important; border-color: #bbf7d0 !important; }

.mnj-cw-result {
  padding: 20px;
  font-size: 14px;
  line-height: 1.8;
  color: #374151;
  max-height: 320px;
  overflow-y: auto;
}

.mnj-cw-result h1,
.mnj-cw-result h2,
.mnj-cw-result h3 { font-weight: 700 !important; color: #111 !important; margin: 16px 0 8px !important; padding: 0 !important; border: none !important; }
.mnj-cw-result h1 { font-size: 20px !important; }
.mnj-cw-result h2 { font-size: 17px !important; }
.mnj-cw-result h3 { font-size: 15px !important; }
.mnj-cw-result p  { margin: 0 0 12px !important; }
.mnj-cw-result ul { margin: 8px 0 12px 20px !important; }
.mnj-cw-result li { margin: 4px 0 !important; }
.mnj-cw-result strong { font-weight: 700 !important; color: #111 !important; }

.mnj-cw-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px;
  font-size: 13px;
  color: #6b7280;
  background: #fff;
  border-top: 1px solid #f3f4f6;
}

/* ══════════════════════════════════════════════════════════
   GENERAL UI IMPROVEMENTS (no uppercase, no CSS reset)
══════════════════════════════════════════════════════════ */

/* Cleaner background */
.mnj-shell, .mnj-content { background: #f4f6fa !important; }
.mnj-page { background: #f4f6fa !important; gap: 18px !important; }

/* Sidebar — slightly darker, more premium */
.mnj-sb { background: #111318 !important; }

/* Cards — softer border */
.mnj-svc-card { border-color: #eaecf0 !important; }

/* Agent card shadow */
.mnj-agent-card { box-shadow: 0 1px 4px rgba(0,0,0,.04) !important; }

/* Coming card */
.mnj-coming-card {
  background: #fff !important;
  border-radius: 14px !important;
  border: 1px solid #eaecf0 !important;
  padding: 48px 32px !important;
  text-align: center !important;
}

/* Version indicator bump */
.mnj-topbar { border-bottom: 1px solid #eef0f3 !important; }
