/*
  Watchtower UI Kit – نوکسا
  =========================

  این فایل فقط در صفحات Watchtower (دیده‌بان + نقشه بازار) لود می‌شود.
  الگو و معماری مشابه ui.css (nx-auth / nx-billing):
    - Wrapper با بک‌گراند گرادیانی نرم
    - کارت‌های Glass + Border + Shadow
    - تایپوگرافی خوانا و جدول حرفه‌ای
*/

:root{
  /*
    Token های مشترک (اگر ui.css/base تعریف کرده باشد استفاده می‌کنیم)
    از بازتعریف مستقیم --nx-primary پرهیز می‌کنیم تا چرخه/override ایجاد نشود.
  */
  --nx-wt-primary: var(--nx-primary, #2563eb);
  --nx-wt-primary-2: var(--nx-primary-2, #3b82f6);
  --nx-wt-muted: var(--nx-muted, #6b7280);
  --nx-wt-bg: var(--nx-bg, #f5f7fb);

  --nx-wt-surface: rgba(255,255,255,.86);
  --nx-wt-surface-2: rgba(255,255,255,.70);
  --nx-wt-border: rgba(203, 213, 225, .90);
  --nx-wt-shadow: 0 18px 55px rgba(15, 23, 42, .10);
  --nx-wt-shadow-sm: 0 10px 24px rgba(15, 23, 42, .08);
  --nx-wt-radius-lg: 1.25rem;
  --nx-wt-radius-md: .95rem;
  --nx-wt-radius-sm: .85rem;

  --nx-wt-ring: 0 0 0 .25rem rgba(37, 99, 235, .18);
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{ transition: none !important; animation: none !important; }
}

/* ─────────────────────────────────────────────────────────
   Page Wrapper (Background like other apps)
────────────────────────────────────────────────────────── */
.nx-watchtower{
  position: relative;
  padding: 1.1rem 0 2.2rem;
  min-height: calc(100vh - 70px);
  overflow-x: hidden;
}

.nx-watchtower::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, .14) 0, transparent 55%),
    radial-gradient(circle at bottom right, rgba(59, 130, 246, .10) 0, transparent 55%),
    radial-gradient(circle at 30% 85%, rgba(34, 197, 94, .10) 0, transparent 55%),
    var(--nx-wt-bg);
  z-index: 0;
}

.nx-watchtower-inner{
  position: relative;
  z-index: 1;
}

/* ─────────────────────────────────────────────────────────
   Header / Hero
────────────────────────────────────────────────────────── */
.nx-wt-hero{
  position: relative;
  border: 1px solid var(--nx-wt-border);
  border-radius: var(--nx-wt-radius-lg);
  background:
    radial-gradient(circle at 20% 20%, rgba(37, 99, 235, .18) 0, transparent 62%),
    radial-gradient(circle at 90% 35%, rgba(0, 95, 255, .4) 0, transparent 62%),
    rgba(255,255,255,.66);
  box-shadow: var(--nx-wt-shadow-sm);
  backdrop-filter: blur(12px);
  padding: .95rem 1.05rem;
  overflow: hidden;
}
.nx-wt-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(135deg, rgba(255,255,255,.32), rgba(255,255,255,0));
  pointer-events:none;
}
.nx-wt-hero > *{ position: relative; z-index: 1; }

.nx-watchtower h1,
.nx-watchtower h2,
.nx-watchtower h3{
  letter-spacing: -0.2px;
}

.nx-watchtower .nx-section-title{
  font-size: 1.02rem;
  margin: 0;
  font-weight: 950;
  color: rgba(15,23,42,.92);
}
.card1-setting{
  font-size: 0.81rem;
  margin-top: -10px;
  text-align: center;
  font-weight: 600;
}
.card2-setting{
  font-size: 0.85rem;
  margin-top: 12px;
  text-align: center;
  font-weight: 600;
}
/* ─────────────────────────────────────────────────────────
   Tabs (segmented control)
────────────────────────────────────────────────────────── */
.nx-watchtower .nx-tabs{
  padding: .45rem;
  border-radius: 13px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(203,213,225,.85);
  gap: .25rem;

}

.nx-watchtower .nx-tabs .nav-link{
  border: none !important;
  border-radius: 13px;
  font-weight: 900;
  padding: .45rem .90rem;
  background: transparent;
  color: rgba(15,23,42,.75);
}
.nx-watchtower .nx-tabs .nav-link:hover{
  background: rgba(37,99,235,.08);
}
.nx-watchtower .nx-tabs .nav-link.active{
  background: linear-gradient(135deg, var(--nx-wt-primary), var(--nx-wt-primary-2));
  color: #fff;
  box-shadow: 0 12px 28px rgba(37,99,235,.22);
}

/* ─────────────────────────────────────────────────────────
   Cards / Surfaces
────────────────────────────────────────────────────────── */
.nx-watchtower .card{
  border: 1px solid var(--nx-wt-border) !important;
  border-radius: var(--nx-wt-radius-lg) !important;
  background: var(--nx-wt-surface);
  box-shadow: var(--nx-wt-shadow-sm) !important;
  backdrop-filter: blur(10px);
}

.nx-watchtower .card-body{
  padding: 1.05rem 1.1rem;
}

@media (min-width: 992px){
  .nx-watchtower .card-body{ padding: 1.2rem 1.25rem; }
}

.nx-watchtower .nx-panel{ overflow: hidden; }
.nx-watchtower .row,
.nx-watchtower .card,
.nx-watchtower .card-body{ min-width: 0; }

/* Buttons (like other apps) */
.nx-watchtower .btn{
  border-radius: .95rem;
  font-weight: 900;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.nx-watchtower .btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15,23,42,.10);
}

/* Forms */
.nx-watchtower .form-control,
.nx-watchtower .form-select{
  border-radius: var(--nx-wt-radius-md);
  border: 1px solid rgba(203, 213, 225, .95);
  background: rgba(255,255,255,.92);
}
.nx-watchtower .form-control:focus,
.nx-watchtower .form-select:focus{
  border-color: rgba(37, 99, 235, .65);
  box-shadow: var(--nx-wt-ring);
}

/* ─────────────────────────────────────────────────────────
   KPI cards
────────────────────────────────────────────────────────── */
.nx-watchtower .nx-kpi,
.nx-watchtower .nx-mini{
  background: var(--nx-wt-surface);
}

.nx-watchtower .nx-kpi{
  transition: transform .15s ease, box-shadow .15s ease;
}
.nx-watchtower .nx-kpi:hover{
  transform: translateY(-1px);
  box-shadow: var(--nx-wt-shadow) !important;
}

.nx-watchtower .nx-mini{
  border-radius: 1.05rem !important;
}
/* Equal height KPI cards */
.nx-watchtower .nx-kpi{ height: 100%; }

/* ─────────────────────────────────────────────────────────
   Chips / Badges
────────────────────────────────────────────────────────── */
.nx-chipset{ display:flex; flex-wrap:wrap; gap:.45rem; }

.nx-chip{
  border: 1px solid rgba(203,213,225,.92);
  background: rgba(255,255,255,.82);
  border-radius: 999px;
  padding: .34rem .85rem;
  font-size: .84rem;
  font-weight: 900;
  color: rgba(15,23,42,.82);
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.nx-chip:hover{
  background: rgba(37,99,235,.08);
  border-color: rgba(37,99,235,.28);
}
.nx-chip.active{
  background: linear-gradient(135deg, var(--nx-wt-primary), var(--nx-wt-primary-2));
  color:#fff;
  border-color: transparent;
}


/* Mobile: make filter chips horizontally scrollable (prevents multi-line clutter) */
@media (max-width: 768px){
  #nx-filter-chips{
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .15rem;
  }
  #nx-filter-chips::-webkit-scrollbar{ height: 8px; }
  #nx-filter-chips::-webkit-scrollbar-thumb{
    background: rgba(148,163,184,.55);
    border-radius: 999px;
  }
  #nx-filter-chips::-webkit-scrollbar-track{
    background: rgba(226,232,240,.55);
  }
}

.nx-badge{
  border: 1px solid rgba(203,213,225,.9);
  font-weight: 800;
  font-size: .70rem;
}

/* ─────────────────────────────────────────────────────────
   Insights
────────────────────────────────────────────────────────── */
.nx-insight-title{
  font-size: .86rem;
  font-weight: 950;
  color: rgba(15,23,42,.86);
  margin-bottom: .45rem;
}
.nx-insight-item{
  border: 1px solid rgba(203,213,225,.72);
  background: var(--nx-wt-surface-2);
  border-radius: 1rem;
  padding: .7rem .8rem;
  margin-bottom: .65rem;
}
.nx-insight-reasons{ display:flex; flex-wrap:wrap; gap:.4rem; margin-top:.4rem; }



/* ─────────────────────────────────────────────────────────
   Watchlist: Quick Add + Search widths
────────────────────────────────────────────────────────── */
.nx-addbox{
  border: 1px solid rgba(203,213,225,.85);
  background: rgba(255,255,255,.72);
  border-radius: 1.05rem;
  padding: .75rem .85rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
  min-width: 340px;
}
@media (max-width: 768px){
  .nx-addbox{ width: 100%; min-width: 0; }
}

.nx-watch-search{ width: 240px; }
.nx-watch-sort{ width: 210px; }
@media (max-width: 576px){
  .nx-watch-search,
  .nx-watch-sort{ width: 100%; }
}

/* ─────────────────────────────────────────────────────────
   Watchlist Table
────────────────────────────────────────────────────────── */
.nx-table-shell{
  position: relative;
  border: 1px solid rgba(203,213,225,.90);
  border-radius: 1.05rem;
  background: rgba(255,255,255,.55);
  box-shadow: var(--nx-wt-shadow-sm);
  overflow-x: auto;
  /* محدود کردن ارتفاع جدول + اسکرول عمودی داخل جدول */
  overflow-y: auto;
  max-height: 520px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  /* (پشتیبانی مرورگرها متفاوت است) جلوگیری از پرش لایه‌ها هنگام ظاهر شدن اسکرول */
  scrollbar-gutter: stable both-edges;
}

@media (max-width: 768px){
  .nx-table-shell{ max-height: 420px; }
}

.nx-table-shell::-webkit-scrollbar{
  height: 10px;
  width: 10px;
}
.nx-table-shell::-webkit-scrollbar-thumb{
  background: rgba(148,163,184,.55);
  border-radius: 999px;
}
.nx-table-shell::-webkit-scrollbar-track{
  background: rgba(226,232,240,.55);
}

.nx-table-shell .table{ margin-bottom: 0; }

.nx-watchtable thead th{
  position: sticky;
  top: 0;
  text-align: center;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  font-size: .8rem;
  font-weight: 950;
  /* بالاتر از سلول‌های sticky-col تا هنگام اسکرول عمودی روی هم نیفتند */
  z-index: 20;
  border-bottom: 1px solid rgba(203,213,225,.85);
}

/* Sticky first column (RTL → use right) */
.nx-watchtable{
  border-collapse: separate;
  border-spacing: 0;
}

.nx-watchtable th,
.nx-watchtable td{
  white-space: nowrap;
  min-width: 118px;
}

.nx-watchtable th.sticky-col,
.nx-watchtable td.sticky-col{
  position: sticky;
  right: 0;
  z-index: 8;
  text-align: right;
  direction: rtl;



}

/* تقاطع سطر هدر + ستون اول باید همیشه بالاترین لایه باشد */
.nx-watchtable thead th.sticky-col{
  z-index: 30;
}

.nx-watchtable tbody td.sticky-col{
  min-width: 150px;
  max-width: 260px;
  white-space: normal;
}



.nx-watchtable tbody td{
  text-align: center;
  font-size: .75rem;
  vertical-align: middle;
}

.nx-watchtable thead th:first-child,
.nx-watchtable tbody td:first-child,
.nx-watchtable thead th:nth-child(2),
.nx-watchtable tbody td:nth-child(2){
  text-align: right;
}

.nx-watchtable tbody tr{
  background: rgba(255,255,255,.62);
  border-top: 1px solid rgba(226,232,240,.65);
}
.nx-watchtable tbody tr:nth-child(even){ background: rgba(255,255,255,.78); }
.nx-watchtable tbody tr:hover{ background: rgba(37,99,235,.06); }

.nx-ticker{ font-weight: 950; text-decoration:none;font-size: 0.82rem; }

.nx-ellipsis{ max-width: 320px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.nx-pct{
  display: inline-flex;
  align-items: center;
  font-size: .75rem;
}
.nx-pct.nx-up{ color:#166534; }
.nx-pct.nx-down{ color:#991b1b; }

.nx-empty{
  border: 1px dashed rgba(148,163,184,.80);
  border-radius: 1.05rem;
  padding: 1.35rem;
  background: rgba(255,255,255,.70);
}


/* ─────────────────────────────────────────────────────────
   Watchlist phase 4H: latest valid data + card/table polish
────────────────────────────────────────────────────────── */
.nx-watchlist-panel{
  overflow: hidden;
}

.nx-watchlist-head{
  align-items: stretch !important;
}

.nx-watchlist-title{
  min-width: 0;
}

.nx-watchlist-meta{
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: .45rem;
}

.nx-watchlist-meta-pill{
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  min-height: 2rem;
  padding: .32rem .7rem;
  border: 1px solid rgba(37,99,235,.16);
  border-radius: 999px;
  background: rgba(37,99,235,.07);
  color: rgba(30,64,175,.92);
  font-size: .78rem;
  font-weight: 850;
  white-space: nowrap;
}

.nx-watchlist-meta-pill-soft{
  border-color: rgba(148,163,184,.28);
  background: rgba(248,250,252,.86);
  color: rgba(71,85,105,.92);
}

.nx-watchlist-table-shell{
  max-height: 560px;
  background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(248,250,252,.84));
}

.nx-watchlist-table{
  table-layout: auto;
}

.nx-watchlist-table th,
.nx-watchlist-table td{
  min-width: 112px;
}

.nx-watchlist-table th:nth-child(1),
.nx-watchlist-table td:nth-child(1){
  min-width: 150px;
  max-width: 260px;
}
.nx-watchlist-table th:nth-child(6),
.nx-watchlist-table td:nth-child(6){ min-width: 128px; }
.nx-watchlist-table th:nth-child(7),
.nx-watchlist-table td:nth-child(7){ min-width: 132px; }
.nx-watchlist-table th:nth-child(8),
.nx-watchlist-table td:nth-child(8){ min-width: 172px; }

.nx-watchlist-row-missing{
  background: rgba(248,250,252,.90) !important;
}

.nx-watchlist-symbol .nx-ticker{
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
}

.nx-watchlist-sector{
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nx-watchlist-metric{
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.nx-watchlist-status{
  white-space: normal;
}

.nx-watchlist-status-text{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 160px;
  padding: .22rem .55rem;
  border-radius: 999px;
  background: rgba(248,250,252,.92);
  border: 1px solid rgba(203,213,225,.8);
  color: rgba(71,85,105,.96);
  font-size: .74rem;
  font-weight: 850;
  line-height: 1.65;
  white-space: nowrap;
}

.nx-watchlist-status-text-today{
  border-color: rgba(22,163,74,.24);
  background: rgba(34,197,94,.10);
  color: #166534;
}

.nx-watchlist-status-text-stale{
  border-color: rgba(245,158,11,.28);
  background: rgba(245,158,11,.10);
  color: #92400e;
}

.nx-watchlist-status-text-missing{
  border-color: rgba(148,163,184,.38);
  background: rgba(148,163,184,.12);
  color: rgba(71,85,105,.92);
}

.nx-watchlist-mobile-status{
  display: none;
  margin-top: .45rem;
}

.nx-watchlist-date-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  padding: .24rem .62rem;
  border-radius: 999px;
  border: 1px solid rgba(203,213,225,.9);
  background: rgba(248,250,252,.95);
  color: rgba(71,85,105,.98);
  font-size: .74rem;
  font-weight: 900;
  line-height: 1.65;
  white-space: nowrap;
}

.nx-watchlist-date-badge-today{
  border-color: rgba(22,163,74,.24);
  background: rgba(34,197,94,.10);
  color: #166534;
}

.nx-watchlist-date-badge-stale{
  border-color: rgba(245,158,11,.28);
  background: rgba(245,158,11,.10);
  color: #92400e;
}

.nx-watchlist-date-badge-missing{
  border-color: rgba(148,163,184,.38);
  background: rgba(148,163,184,.12);
  color: rgba(71,85,105,.92);
}

.nx-watchlist-actions .btn{
  min-height: 2rem;
  border-radius: .8rem;
  font-weight: 850;
}

.nx-watchlist-empty{
  text-align: center;
}

.nx-watchlist-card{
  border: 1px solid rgba(203,213,225,.82);
  border-radius: 1rem;
  background: rgba(255,255,255,.86);
  box-shadow: var(--nx-wt-shadow-sm);
}

@media (max-width: 992px){
  .nx-watchlist-head{ display: block !important; }
  .nx-watchlist-title,
  .nx-watchlist-meta,
  .nx-addbox{ width: 100%; }
  .nx-watchlist-meta{ justify-content: flex-start; margin: .75rem 0; }
}

@media (max-width: 768px){
  .nx-watchlist-table-shell{
    border: 0;
    background: transparent;
    box-shadow: none;
    max-height: none;
    overflow: visible;
  }

  .nx-watchlist-table,
  .nx-watchlist-table thead,
  .nx-watchlist-table tbody,
  .nx-watchlist-table tr,
  .nx-watchlist-table th,
  .nx-watchlist-table td{
    display: block;
    width: 100%;
  }

  .nx-watchlist-table thead{ display: none; }

  .nx-watchlist-table tbody{
    display: grid;
    grid-template-columns: 1fr;
    gap: .85rem;
  }

  .nx-watchlist-table tbody tr.nx-watchlist-row{
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
    border: 1px solid rgba(203,213,225,.86);
    border-radius: 1.1rem;
    padding: .78rem;
    background: rgba(255,255,255,.90) !important;
    box-shadow: var(--nx-wt-shadow-sm);
  }

  .nx-watchlist-table th,
  .nx-watchlist-table td,
  .nx-watchtable th,
  .nx-watchtable td{
    min-width: 0 !important;
    max-width: none !important;
    white-space: normal;
  }

  .nx-watchtable th.sticky-col,
  .nx-watchtable td.sticky-col,
  .nx-watchtable tbody td.sticky-col{
    position: static;
    background: transparent;
  }

  .nx-watchlist-table tbody td{
    min-width: 0;
    border: 0;
    text-align: right;
    font-size: .82rem;
  }

  .nx-watchlist-table tbody td::before{
    content: attr(data-label);
    color: rgba(71,85,105,.78);
    font-size: .74rem;
    font-weight: 850;
    text-align: right;
  }

  .nx-watchlist-table tbody td.nx-watchlist-symbol{
    grid-column: 1 / -1;
    display: block;
    padding: 0 0 .65rem;
    border-bottom: 1px solid rgba(203,213,225,.72);
  }

  .nx-watchlist-table tbody td.nx-watchlist-symbol::before{ display: none; }

  .nx-watchlist-symbol .nx-ticker{
    font-size: .95rem;
  }

  .nx-watchlist-mobile-status{
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .nx-watchlist-table tbody td.nx-watchlist-metric{
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: .28rem;
    padding: .55rem .6rem;
    border: 1px solid rgba(226,232,240,.86);
    border-radius: .9rem;
    background: rgba(248,250,252,.72);
    text-align: left;
  }

  .nx-watchlist-table tbody td.nx-watchlist-metric::before{
    display: block;
  }

  .nx-watchlist-table tbody td.nx-watchlist-metric > *{
    justify-self: end;
  }

  .nx-watchlist-table tbody td.nx-watchlist-date-cell{
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .48rem .6rem;
    border: 1px solid rgba(226,232,240,.86);
    border-radius: .9rem;
    background: rgba(255,255,255,.76);
  }

  .nx-watchlist-table tbody td.nx-watchlist-data-state-cell{
    display: none;
  }

  .nx-watchlist-table tbody td.nx-watchlist-actions{
    grid-column: 1 / -1;
    display: block;
    padding-top: .1rem;
  }

  .nx-watchlist-table tbody td.nx-watchlist-actions::before{
    display: block;
    margin-bottom: .45rem;
  }

  .nx-watchlist-actions .d-inline-flex{
    display: flex !important;
    width: 100%;
    justify-content: stretch !important;
    gap: .45rem !important;
  }

  .nx-watchlist-actions .btn,
  .nx-watchlist-actions form{
    flex: 1 1 calc(50% - .35rem);
    min-width: 118px;
  }

  .nx-watchlist-actions form .btn{
    width: 100%;
  }

  .nx-watchlist-date-badge,
  .nx-watchlist-status-text{
    max-width: 100%;
    white-space: nowrap;
    text-align: center;
  }
}

@media (max-width: 480px){
  .nx-watchlist-table tbody tr.nx-watchlist-row{
    grid-template-columns: 1fr;
    padding: .68rem;
  }

  .nx-watchlist-actions .btn,
  .nx-watchlist-actions form{
    min-width: 0;
  }
}


/* ─────────────────────────────────────────────────────────
   Money formatting (M/B/T + tooltip)
────────────────────────────────────────────────────────── */
.nx-money{
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: .2px;
  white-space: nowrap;
}
.nx-money.nx-money-pos{ color: #166534; font-weight: 600; font-size: .8rem;}
.nx-money.nx-money-neg{ color: #991b1b; font-weight: 600; font-size: .8rem; }
.nx-money.nx-money-zero{ color: rgba(15,23,42,.74); font-weight: 600; font-size: .8rem; }

/* ─────────────────────────────────────────────────────────
   Market Narrative
────────────────────────────────────────────────────────── */
.nx-narrative{
  background:
    linear-gradient(135deg, rgba(255,255,255,.90), rgba(239,246,255,.72)),
    radial-gradient(circle at 10% 20%, rgba(37,99,235,.12), transparent 52%);
}

.nx-narrative .nx-narrative-headline{
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: .45rem .75rem;
  border: 1px solid rgba(37,99,235,.16);
  border-radius: 1rem;
  background: rgba(37,99,235,.07);
  font-size: .98rem;
  line-height: 1.85;
  font-weight: 950;
  color: rgba(15,23,42,.92);
  margin-top: .45rem;
}
.nx-narrative-tags{ display:flex; flex-wrap:wrap; gap:.4rem; margin-top:.65rem; }

.nx-tag{
  display:inline-flex;
  align-items:center;
  padding: .24rem .62rem;
  border-radius: 999px;
  border: 1px solid rgba(203,213,225,.9);
  background: rgba(255,255,255,.78);
  font-size: .74rem;
  font-weight: 950;
  color: rgba(15,23,42,.82);
  white-space: nowrap;
  margin: .15rem .15rem; /* فاصله بین لیبل‌ها */
}
.nx-tag.nx-tag-soft{ background: rgba(37,99,235,.06); border-color: rgba(37,99,235,.18); }

.nx-n-box{
  position: relative;
  min-height: 100%;
  border: 1px solid rgba(203,213,225,.78);
  background: rgba(255,255,255,.80);
  border-radius: 1.1rem;
  padding: .95rem 1rem;
  box-shadow: 0 10px 26px rgba(15,23,42,.055);
  overflow: hidden;
}
.nx-n-box::before{
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(37,99,235,.75), rgba(34,197,94,.42));
}
.nx-n-box > *{ position: relative; z-index: 1; }
.nx-n-title{
  font-size: .88rem;
  font-weight: 950;
  color: rgba(15,23,42,.90);
  margin-bottom: .38rem;
  display:flex;
  align-items:center;
  gap:.4rem;
}
.nx-n-sub{ line-height: 1.75; }
.nx-n-big{ font-weight: 950; font-size: 1.18rem; letter-spacing: .2px; }
.nx-n-list{ margin-top:.65rem; display:flex; flex-direction:column; gap:.5rem; }
.nx-n-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.6rem;
  font-size: .84rem;
  padding: .28rem 0;
}
.nx-n-label{ color: rgba(15,23,42,.70); font-weight: 900; white-space: normal; }


.nx-n-val{ display:inline-flex; align-items:center; gap:.5rem; }
.nx-n-link{ font-weight: 950; text-decoration:none; }
.nx-n-link:hover{ text-decoration: underline; }
.nx-n-divider{ height:1px; background: rgba(203,213,225,.7); margin:.75rem 0; }

.nx-risk-badge{
  display:inline-flex;
  align-items:center;
  padding: .15rem .55rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.35);
  font-size: .74rem;
  font-weight: 950;
  background: rgba(148,163,184,.15);
  color: rgba(15,23,42,.78);
}
.nx-risk-badge.nx-risk-low{ background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.22); color:#166534; }
.nx-risk-badge.nx-risk-med{ background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.25); color:#92400e; }
.nx-risk-badge.nx-risk-high{ background: rgba(220,38,38,.12); border-color: rgba(220,38,38,.22); color:#991b1b; }
.nx-risk-badge.nx-risk-unknown{ background: rgba(148,163,184,.12); border-color: rgba(148,163,184,.25); color: rgba(15,23,42,.72); }

@media (max-width: 768px){
  .nx-narrative .nx-narrative-headline{
    display: flex;
    width: 100%;
    font-size: .92rem;
  }
  .nx-n-item{ font-size: .82rem; }
  .nx-n-kpi{ align-items:flex-start; flex-direction:column; gap:.25rem; }
  .nx-n-box{ padding: .9rem .95rem; }
}

/* ─────────────────────────────────────────────────────────
   Suggest box (Add symbol)
────────────────────────────────────────────────────────── */
.nx-suggest{ position: relative; }
.nx-suggest-box{
  display: none;
  position: absolute;
  inset-inline: 0;
  top: calc(100% + .35rem);
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(203,213,225,.9);
  border-radius: 1rem;
  box-shadow: var(--nx-wt-shadow);
  max-height: 320px;
  overflow: auto;
  z-index: 20;
}
.nx-suggest-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.85rem;
  padding: .6rem .85rem;
  cursor:pointer;
}
.nx-suggest-item:hover{ background: rgba(37,99,235,.06); }
.nx-suggest-symbol{ font-weight: 950; }
.nx-suggest-name{ color: var(--nx-wt-muted); font-size: .8rem; }
.nx-suggest-meta{ color: var(--nx-wt-muted); font-size: .84rem; white-space: nowrap; }

/* ─────────────────────────────────────────────────────────
   Golden Scanners
────────────────────────────────────────────────────────── */
.nx-scan-panel .nx-scan-chips{
  margin-top: .25rem;
  padding-bottom: .25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex-wrap: nowrap;
  gap: .5rem;
}
.nx-scan-panel .nx-chip{ padding: .40rem .95rem; }
.nx-scan-panel #nx-scan-results{ min-height: 120px; }

.nx-scan-table thead th{
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  z-index: 1;
}
.nx-scan-tag{
  border: 1px solid rgba(203,213,225,.9);
  background: rgba(255,255,255,.78);
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 900;
}

/* ─────────────────────────────────────────────────────────
   Market Map
────────────────────────────────────────────────────────── */
.nx-market-map{
  height: calc(100vh - 290px);
  min-height: 520px;
}


/* ─────────────────────────────────────────────────────────
   Market Map Filters (inputs)
────────────────────────────────────────────────────────── */
.nx-map-filters .form-label{
  font-weight: 950;
  font-size: .75rem;
  color: rgba(15,23,42,.78);
}

.nx-input-icon{
  position: relative;
}

.nx-input-icon .nx-input-ico{
  position: absolute;
  inset-inline-start: .75rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(100,116,139,.72);
  pointer-events: none;
  font-size: 1rem;
}

.nx-input-icon .form-control{
  padding-inline-start: 2.15rem;
  padding-inline-end: 2.15rem;
  border: 1px solid rgba(203, 213, 225, .95);
  border-radius: var(--nx-wt-radius-md);
  background: rgba(255,255,255,.92);
  font-weight: 850;
  font-size: .8rem;
}

.nx-input-icon .form-control:focus{
  border-color: rgba(37, 99, 235, .55);
  box-shadow: var(--nx-wt-ring);
}

.nx-input-icon .form-control::placeholder{
  font-size: .75rem;
  font-weight: 700;
  color: rgba(100,116,139,.78);
}

.nx-input-clear{
  position: absolute;
  inset-inline-end: .55rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(100,116,139,.8);
  display: none;
  align-items: center;
  justify-content: center;
}

.nx-input-icon.has-value .nx-input-clear{ display: inline-flex; }

.nx-input-clear:hover{
  background: rgba(15,23,42,.06);
}

.nx-map-autorefresh{
  font-size: .72rem;
  color: rgba(100,116,139,.78);
  margin-top: .25rem;
}


@media (max-width: 768px){
  .nx-market-map{ height: calc(100vh - 360px); min-height: 460px; }
  .nx-ellipsis{ max-width: 220px; }
}

/* Market map labels */
.nx-map-label{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  line-height: 1.05;
  padding: .2rem .25rem;
  text-align:center;
  user-select:none;
}

/* Full-tile hit area for each symbol.
   We render an invisible HTML dataLabel sized to the tile so tooltip works even
   when the ticker text is hidden (tiny cells). */
.nx-map-hit{
  width: 100%;
  height: 100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  overflow: hidden;
  user-select:none;
  cursor: default;
}

/* Sector labels should feel "inactive" (no tooltip) */
.nx-map-sector{ cursor: default; user-select:none; }



/* mini label (ticker only) */
.nx-map-label--mini{
  padding: .15rem .2rem;
}
.nx-map-label--mini .nx-map-ticker{
  font-size: 11px;
  letter-spacing: 0;
}

.nx-map-meta{
  margin-top: .15rem;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: .35rem;
}
.nx-map-metric{
  font-size: 10px;
  font-weight: 900;
  padding: 1px 8px;
  border-radius: 9999px;
  background: rgba(15,23,42,.08);
  color: rgba(15,23,42,.86);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.nx-map-ticker{
  font-weight: 950;
  font-size: 12px;
  letter-spacing: .2px;
  color: rgba(15,23,42,.92);
}
.nx-map-price{
  font-weight: 900;
  font-size: 11px;
  color: rgba(15,23,42,.82);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.nx-map-sector{
  font-weight: 950;
  color: rgba(15,23,42,.86);
  font-size: 12px;
}

@media (max-width: 768px){
  .nx-map-ticker{ font-size: 11px; }
  .nx-map-price{ font-size: 10px; }
}

/* Highcharts tooltip wrapper (RTL + background) */
.nx-hc-tooltip{
  direction: rtl;
  text-align: right;
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 13px;
  padding: 10px 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.nx-hc-tooltip hr{ border-color: rgba(148,163,184,.28); }
.nx-hc-tooltip .text-muted{ color: rgba(226,232,240,.78) !important; }

/* Saved Scanner Views */
.nx-saved-views{
  display:flex;
  flex-direction:column;
  gap: .5rem;
}
.nx-sv-item{
  border: 1px solid rgba(203,213,225,.8);
  background: rgba(255,255,255,.78);
  border-radius: 14px;
  padding: .75rem .75rem;
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.nx-sv-item:hover{
  border-color: rgba(37,99,235,.35);
  background: rgba(255,255,255,.92);
  transform: translateY(-1px);
}
.nx-sv-item.active{
  border-color: rgba(37,99,235,.6);
  box-shadow: 0 10px 30px rgba(37,99,235,.12);
}
.nx-sv-title{ font-weight: 950; }
.nx-sv-sub{ opacity: .85; }
.nx-sv-del{
  flex: 0 0 auto;
  border-radius: 12px;
}


/* ─────────────────────────────────────────────────────────
   Skeleton Loading (Watchtower)
   ───────────────────────────────────────────────────────── */

@keyframes nxShimmer{
  0%{ background-position: 100% 0; }
  100%{ background-position: 0 0; }
}

.nx-skel-line,
.nx-skel-box{
  background: linear-gradient(90deg,
    rgba(148,163,184,.16) 25%,
    rgba(148,163,184,.32) 37%,
    rgba(148,163,184,.16) 63%);
  background-size: 400% 100%;
  animation: nxShimmer 1.15s ease-in-out infinite;
  border-radius: 14px;
}

.nx-skel-line{ height: 12px; }
.nx-skel-box{ width: 100%; }

.nx-market-map-wrap{
  position: relative;
}

.nx-wt-map-skeleton{
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 0;
  pointer-events: none;
}

.nx-wt-map-skeleton .nx-skel-box{
  height: 100%;
  border-radius: 18px;
}
/* placeholder smaller & nicer */
#nx-watch-add-input::placeholder{
  font-size: .75rem;
  font-weight: 600;
  color: rgba(100,116,139,.85);
}
#nx-watch-search::placeholder,#nx-watch-sort{
  font-size: .75rem;
  font-weight: 600;
  color: rgba(100,116,139,.78);
}
/* ─────────────────────────────────────────────────────────
   Nice Select (Sort Dropdown)
────────────────────────────────────────────────────────── */
.nx-watch-sort-ui{ width: 210px; }
@media (max-width: 576px){ .nx-watch-sort-ui{ width: 100%; } }

.nx-select-btn{
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;

  border: 1px solid rgba(203, 213, 225, .95) !important;
  border-radius: var(--nx-wt-radius-md);
  background: rgba(255,255,255,.92);
  font-weight: 900;
  font-size: .75rem;
  color: rgba(100,116,139,.78);
  padding: .45rem .75rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.nx-select-btn:focus,
.nx-select-btn:active{
  border-color: rgba(37, 99, 235, .65) !important;
  box-shadow: var(--nx-wt-ring) !important;
}

.nx-select-menu{
  width: 100%;
  margin-top: .45rem !important;
  border-radius: 1rem;
  padding: .35rem;
  border: 1px solid rgba(203,213,225,.92);
  background: rgba(255,255,255,.96);
  box-shadow: var(--nx-wt-shadow);
  backdrop-filter: blur(12px);

  max-height: 320px;
  overflow: auto;
}

.nx-select-menu .dropdown-item{
  border-radius: .8rem;
  padding: .55rem .75rem;
  font-weight: 900;
  font-size: .72rem;
  color: rgba(15,23,42,.82);
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: .65rem;
}

.nx-select-menu .dropdown-item:hover{
  background: rgba(37,99,235,.08);
}

.nx-select-menu .dropdown-item.active,
.nx-select-menu .dropdown-item:active{
  background: linear-gradient(135deg, var(--nx-wt-primary), var(--nx-wt-primary-2));
  color: #fff;
}

.nx-select-menu .dropdown-item .nx-check{
  opacity: .0;
  transform: scale(.9);
  transition: opacity .12s ease, transform .12s ease;
  font-weight: 950;
}

.nx-select-menu .dropdown-item.active .nx-check{
  opacity: 1;
  transform: scale(1);
}

/* Group headers inside dropdown (used in Market Map metric selector with <optgroup>) */
.nx-select-menu .nx-select-group{
  padding: .35rem .75rem;
  font-size: .68rem;
  font-weight: 950;
  color: rgba(100,116,139,.82);
  letter-spacing: .2px;
  user-select: none;
}

.nx-select-menu .nx-select-divider{
  margin: .35rem .5rem;
  opacity: .45;
}
/* Money Flow KPI inline */
.nx-n-kpi{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .25rem;
}

.nx-n-kpi-label{

  color: rgba(15,23,42,.70) !important;
  white-space: nowrap;
}

.nx-n-kpi-value{
  font-weight: 600;
  font-size: 0.84rem; /* نزدیک به nx-n-big ولی جمع‌وجورتر */
  white-space: nowrap;
}


/* فقط ستون علت */
.nx-scan-table td:nth-child(6),
.nx-scan-table th:nth-child(6){
  white-space: normal !important;
  min-width: 120px;
  max-width: 280px;
}
.nx-scan-tag{
  display: inline-block;
  max-width: 100%;
  white-space: normal;

  font-size: clamp(0.65rem, 0.75vw, 0.75rem);
  line-height: 1.35;
  font-weight: 600;

  padding: .12rem .45rem;
  border-radius: 9px;

  word-break: keep-all;     /* فارسی تمیز */
  overflow-wrap: anywhere;  /* اگر خیلی طولانی شد */
}
.nx-scan-tag{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;

  overflow: hidden;
  text-overflow: ellipsis;
}





/* ─────────────────────────────────────────────────────────
   Market Map
────────────────────────────────────────────────────────── */
.nx-map-radar{
  --nx-map-blue: #2563eb;
  --nx-map-blue-2: #0ea5e9;
  --nx-map-green: #16a34a;
  --nx-map-red: #dc2626;
  --nx-map-ink: #0f172a;
  --nx-map-muted: #64748b;
  --nx-map-card: rgba(255,255,255,.82);
}
.nx-map-radar .nx-panel{
  border: 1px solid rgba(203,213,225,.78);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,250,252,.78));
  box-shadow: 0 18px 55px rgba(15,23,42,.08) !important;
}
.nx-map-hero{
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(203,213,225,.72);
  background:
    radial-gradient(circle at 12% 10%, rgba(37,99,235,.13), transparent 30%),
    radial-gradient(circle at 90% 8%, rgba(14,165,233,.14), transparent 26%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(241,245,249,.84));
  box-shadow: 0 18px 55px rgba(15,23,42,.08);
}
.nx-map-hero-copy{ max-width: 860px; }
.nx-map-eyebrow{
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: rgba(37,99,235,.95);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .2px;
  margin-bottom: .35rem;
}
.nx-map-narrative-box{
  display: flex;
  flex-direction: column;
  gap: .42rem;
  max-width: 940px;
  padding: .68rem .82rem;
  border: 1px solid rgba(148,163,184,.30);
  border-radius: 18px;
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(14px);
}
.nx-map-narrative-headline{
  font-weight: 900;
  color: rgba(15,23,42,.88);
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nx-map-narrative-tags,
.nx-map-symbol-badges{
  display:flex;
  flex-wrap: wrap;
  gap: .32rem;
}
.nx-map-narrative-tags span,
.nx-map-symbol-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 999px;
  border: 1px solid rgba(37,99,235,.18);
  background: rgba(37,99,235,.08);
  color: rgba(30,64,175,.96);
  padding: .18rem .48rem;
  font-size: .68rem;
  font-weight: 900;
}
.nx-map-symbol-badge.is-watch{
  background: rgba(22,163,74,.10);
  border-color: rgba(22,163,74,.22);
  color: #166534;
}

.nx-map-pulse-grid{
  display:grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .75rem;
}
.nx-map-pulse-card{
  min-height: 104px;
  padding: .78rem .84rem;
  border: 1px solid rgba(203,213,225,.76);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(248,250,252,.82));
  box-shadow: 0 16px 40px rgba(15,23,42,.07);
}
.nx-map-pulse-card span,
.nx-map-pulse-card small{
  display:block;
  color: rgba(100,116,139,.84);
  font-weight: 780;
}
.nx-map-pulse-card span{ font-size: .73rem; color: rgba(51,65,85,.92); font-weight: 900; }
.nx-map-pulse-card strong{
  display:block;
  margin: .42rem 0 .25rem;
  color: rgba(15,23,42,.94);
  font-size: 1.05rem;
  font-weight: 1000;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  direction:ltr;
  text-align:right;
}
.nx-map-pulse-card small{ font-size: .68rem; opacity:.72; }

.nx-map-control-panel .card-body{ padding: 1rem 1.05rem; }
.nx-map-presets{
  display:flex;
  flex-wrap:wrap;
  gap:.55rem;
}
.nx-map-preset{
  display:inline-flex;
  align-items:center;
  gap:.42rem;
  border:1px solid rgba(203,213,225,.9);
  border-radius:999px;
  background: rgba(255,255,255,.78);
  color: rgba(51,65,85,.92);
  padding: .52rem .78rem;
  font-size:.78rem;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(15,23,42,.05);
  transition: transform .14s ease, border-color .14s ease, background .14s ease, color .14s ease, box-shadow .14s ease;
}
.nx-map-preset:hover{
  transform: translateY(-1px);
  border-color: rgba(37,99,235,.34);
  background: rgba(239,246,255,.82);
}
.nx-map-preset.active{
  border-color: rgba(37,99,235,.56);
  color: #1d4ed8;
  background: linear-gradient(180deg, rgba(239,246,255,.98), rgba(219,234,254,.82));
  box-shadow: 0 14px 34px rgba(37,99,235,.14);
}
.nx-map-advanced{
  border-top: 1px solid rgba(226,232,240,.88);
  padding-top: .78rem;
}
.nx-map-advanced summary{
  cursor:pointer;
  color: rgba(51,65,85,.96);
  font-weight: 950;
  font-size: .82rem;
  user-select:none;
}
.nx-map-advanced summary::marker{ color: rgba(37,99,235,.8); }

.nx-map-layout{
  display:grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1rem;
  align-items:start;
}
.nx-map-main-col{ min-width: 0; }
.nx-map-side-panel{
  min-width: 0;
  position: sticky;
  top: 82px;
}
.nx-map-insights-card .card-body{ padding: .88rem; }
.nx-map-status-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space: nowrap;
  min-height: 30px;
  padding: .26rem .62rem;
  border-radius: 999px;
  border: 1px solid rgba(100,116,139,.18);
  background: rgba(100,116,139,.08);
  color: rgba(51,65,85,.96);
  font-size: .68rem;
  font-weight: 950;
}
.nx-map-status-badge.is-positive{
  border-color: rgba(22,163,74,.22);
  background: rgba(22,163,74,.10);
  color: #166534;
}
.nx-map-status-badge.is-negative{
  border-color: rgba(220,38,38,.22);
  background: rgba(220,38,38,.09);
  color: #991b1b;
}
.nx-map-insight-list{
  display:flex;
  flex-direction:column;
  gap: .72rem;
}
.nx-map-insight-section{
  display:flex;
  flex-direction:column;
  gap:.32rem;
}
.nx-map-insight-section h3{
  margin:0;
  color: rgba(15,23,42,.78);
  font-size: .76rem;
  font-weight: 1000;
}
.nx-map-insight-item{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.65rem;
  text-align:right;
  border:1px solid rgba(226,232,240,.9);
  border-radius: 14px;
  background: rgba(255,255,255,.64);
  color: rgba(15,23,42,.9);
  padding: .48rem .58rem;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.nx-map-insight-item:hover{
  transform: translateY(-1px);
  border-color: rgba(37,99,235,.25);
  background: rgba(248,250,252,.95);
}
.nx-map-insight-item span{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:.1rem;
}
.nx-map-insight-item strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size: .78rem;
  font-weight: 950;
}
.nx-map-insight-item small{
  color: rgba(100,116,139,.9);
  font-size: .68rem;
  font-weight: 750;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  max-width: 185px;
}
.nx-map-insight-item b{
  flex:0 0 auto;
  color: rgba(15,23,42,.88);
  font-size: .74rem;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.nx-map-insight-empty{
  border:1px dashed rgba(203,213,225,.95);
  border-radius: 14px;
  padding:.65rem;
  color: rgba(100,116,139,.9);
  font-size:.72rem;
  font-weight:800;
  background: rgba(248,250,252,.62);
}

.nx-market-map{
  height: calc(100vh - 250px);
  min-height: 580px;
  border: 1px solid rgba(226,232,240,.78);
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(248,250,252,.95), rgba(255,255,255,.72));
}
.nx-market-map-wrap{
  position: relative;
  min-height: 580px;
}
.nx-map-empty-state{
  position:absolute;
  inset: 0;
  z-index: 3;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:.45rem;
  padding: 2rem;
  text-align:center;
  border-radius: 20px;
  background: rgba(248,250,252,.90);
  backdrop-filter: blur(8px);
  color: rgba(71,85,105,.96);
}
.nx-map-empty-state i{
  font-size: 2rem;
  color: rgba(37,99,235,.78);
}
.nx-map-empty-state strong{
  font-size: 1rem;
  font-weight: 1000;
  color: rgba(15,23,42,.90);
}
.nx-map-empty-state span{
  font-size: .82rem;
  font-weight: 800;
}

.nx-map-hit{ cursor: pointer; }
.nx-map-label{
  text-shadow: 0 1px 0 rgba(255,255,255,.46);
}
.nx-map-ticker{ color: rgba(15,23,42,.96); }
.nx-map-sector{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height: 28px;
  padding: .22rem .62rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.26);
  background: rgba(255,255,255,.58);
  backdrop-filter: blur(8px);
}

.nx-hc-tooltip{
  min-width: 275px;
  direction: rtl;
  text-align: right;
  background: rgba(15, 23, 42, .96);
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, .30);
  border-radius: 16px;
  padding: 11px 12px;
  box-shadow: 0 18px 55px rgba(0,0,0,.35);
}
.nx-hc-tooltip-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.7rem;
  margin-bottom:.2rem;
}
.nx-hc-tooltip-head strong{ font-size: .94rem; font-weight: 1000; }
.nx-hc-watch{
  border:1px solid rgba(147,197,253,.28);
  background: rgba(37,99,235,.18);
  color:#bfdbfe;
  border-radius:999px;
  padding:.12rem .42rem;
  font-size:.66rem;
  font-weight:900;
}
.nx-hc-tooltip-sub{
  color: rgba(226,232,240,.72);
  font-size: .72rem;
  font-weight: 750;
  line-height:1.7;
}
.nx-hc-tooltip-grid{
  margin-top:.48rem;
  padding-top:.48rem;
  border-top:1px solid rgba(148,163,184,.22);
  display:grid;
  grid-template-columns: 1fr auto;
  gap:.33rem .75rem;
  align-items:center;
}
.nx-hc-tooltip-grid span{
  color: rgba(226,232,240,.78);
  font-size:.72rem;
  font-weight:760;
}
.nx-hc-tooltip-grid b{
  font-size:.74rem;
  font-weight:950;
  color:#fff;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.nx-hc-tooltip-foot{
  margin-top:.55rem;
  color: rgba(191,219,254,.86);
  font-size:.68rem;
  font-weight:850;
}

.nx-map-symbol-panel{
  display:none;
  border-color: rgba(37,99,235,.20) !important;
}
.nx-map-symbol-panel.active{ display:block; }
.nx-map-symbol-close{
  width:32px;
  height:32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 999px;
}
.nx-map-symbol-body{
  display:grid;
  grid-template-columns: 1fr;
  gap:.45rem;
  margin-top:.7rem;
}
.nx-map-symbol-kv{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:.75rem;
  border:1px solid rgba(226,232,240,.86);
  border-radius: 13px;
  padding:.48rem .58rem;
  background: rgba(255,255,255,.62);
}
.nx-map-symbol-kv span{
  color: rgba(100,116,139,.95);
  font-size:.72rem;
  font-weight:850;
}
.nx-map-symbol-kv b{
  color: rgba(15,23,42,.94);
  font-size:.75rem;
  font-weight: 950;
  text-align:left;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.nx-map-symbol-actions{
  display:flex;
  flex-wrap:wrap;
  gap:.45rem;
  margin-top:.8rem;
}
.nx-map-symbol-actions .btn{
  border-radius: 12px;
  font-weight: 900;
}
.nx-map-symbol-message{
  border-radius: 12px;
  padding:.55rem .7rem;
  font-size:.76rem;
  font-weight:850;
}
.nx-map-symbol-message.is-success{
  border:1px solid rgba(22,163,74,.22);
  color:#166534;
  background: rgba(22,163,74,.08);
}
.nx-map-symbol-message.is-error{
  border:1px solid rgba(220,38,38,.22);
  color:#991b1b;
  background: rgba(220,38,38,.08);
}
.nx-map-disclaimer{
  color: rgba(100,116,139,.92);
  font-size:.72rem;
  font-weight:850;
  line-height:1.9;
  border:1px dashed rgba(148,163,184,.45);
  border-radius: 16px;
  padding:.72rem .85rem;
  background: rgba(255,255,255,.58);
}

@media (max-width: 1199.98px){
  .nx-map-pulse-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nx-map-layout{ grid-template-columns: minmax(0, 1fr); }
  .nx-map-side-panel{ position: static; }
}
@media (max-width: 768px){
  .nx-map-radar .nx-watchtower-inner{ padding-inline: .7rem; }
  .nx-map-hero{ padding: 1rem; }
  .nx-map-pulse-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap:.55rem; }
  .nx-map-pulse-card{ min-height: 98px; padding:.72rem; border-radius: 17px; }
  .nx-map-pulse-card strong{ font-size:.92rem; }
  .nx-map-presets{ overflow-x:auto; flex-wrap:nowrap; padding-bottom:.35rem; scroll-behavior:smooth; -webkit-overflow-scrolling:touch; }
  .nx-map-presets::-webkit-scrollbar{ height: 5px; }
  .nx-map-presets::-webkit-scrollbar-thumb{ background: rgba(148,163,184,.55); border-radius:999px; }
  .nx-map-preset{ flex:0 0 auto; }
  .nx-market-map,
  .nx-market-map-wrap{ min-height: 420px; }
  .nx-market-map{ height: min(62vh, 460px); }
  .nx-map-note{ display:flex; flex-wrap:wrap; gap:.35rem; }
}
@media (max-width: 480px){
  .nx-map-pulse-grid{ grid-template-columns: 1fr; }
  .nx-map-symbol-actions .btn{ width:100%; }
  .nx-hc-tooltip{ min-width: 235px; max-width: 92vw; }
}

/* ─────────────────────────────────────────────────────────
   Market Map v2 final patch: RTL amounts + exact number tooltips
────────────────────────────────────────────────────────── */
.nx-map-amount{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-direction: row;
  direction: rtl;
  unicode-bidi: isolate;
  gap: .22rem;
  white-space: nowrap;
  vertical-align: middle;
}
.nx-map-amount-num{
  direction:ltr;
  unicode-bidi:isolate;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.nx-map-amount-unit{
  direction:rtl;
  unicode-bidi:isolate;
  font-weight: 900;
}
.nx-map-amount-sep,
.nx-map-tooltip-sep{
  display:inline-flex;
  margin-inline: .22rem;
  color: rgba(100,116,139,.85);
  font-weight: 900;
}
.nx-map-number-tip{
  position: relative;
  cursor: default;
  border-radius: .45rem;
  padding: .03rem .22rem;
  transition: background .15s ease, box-shadow .15s ease;
}
.nx-map-number-tip:hover,
.nx-map-number-tip:focus{
  background: rgba(13,110,253,.065);
  box-shadow: inset 0 0 0 1px rgba(13,110,253,.13);
  outline: none;
}
.nx-map-number-tip::after{
  content: attr(data-tip);
  position: absolute;
  inset-block-end: 132%;
  left: 50%;
  transform: translateX(-50%) translateY(3px);
  background: linear-gradient(135deg, #012d67 30%, #123f73 100%);
  color: #fff;
  padding: .18rem .46rem;
  border-radius: .52rem;
  font-size: 11px;
  line-height: 1.7;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  box-shadow: 0 10px 24px rgba(15,23,42,.42);
  text-align: center;
  z-index: 10000;
}
.nx-map-number-tip::before{
  content: "";
  position: absolute;
  inset-block-end: 118%;
  left: 50%;
  transform: translateX(-50%) translateY(3px);
  border: 7px solid transparent;
  border-top-color: #123f73;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 10000;
}
.nx-map-number-tip:hover::after,
.nx-map-number-tip:focus::after,
.nx-map-number-tip:hover::before,
.nx-map-number-tip:focus::before{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.nx-map-pulse-card{
  overflow: visible;
}
.nx-map-pulse-card strong{
  direction: rtl;
  text-align: right;
  overflow: visible;
}
.nx-map-insight-item{
  overflow: visible;
}
.nx-map-insight-item b{
  direction: rtl;
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  min-width: max-content;
}
.nx-hc-tooltip-grid b{
  direction: rtl;
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  gap:.08rem;
}
.nx-map-symbol-kv{
  overflow: visible;
}
.nx-map-symbol-kv b{
  direction: rtl;
  display:inline-flex;
  justify-content:flex-end;
  align-items:center;
  min-width: max-content;
}

@media (max-width: 575.98px){
  .nx-map-number-tip::after{
    font-size: .68rem;
    max-width: 86vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}


/* ──────────────────────────────────────────────────────────
   Market map final polish: pulse cards + RTL numeric tooltips
────────────────────────────────────────────────────────── */
.nx-map-pulse-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  min-height: 96px;
  padding: .82rem .9rem;
  overflow: visible;
  background:
    radial-gradient(circle at 80% 0%, rgba(37,99,235,.06), transparent 45%),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.88));
  box-shadow: 0 14px 34px rgba(15,23,42,.065);
}
.nx-map-pulse-card > span:first-child{
  min-height: 1.15rem;
  width: 100%;
  text-align:center;
}
.nx-map-pulse-card strong,
.nx-map-pulse-card strong.nx-map-pulse-value{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.3rem;
  margin:.34rem 0 .22rem;
  text-align:center;
  direction:rtl;
  white-space:nowrap;
  line-height:1.2;
  overflow: visible;
}
.nx-map-pulse-card .nx-map-pulse-inline{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.3rem;
  flex-wrap:nowrap;
  white-space:nowrap;
  direction:rtl;
  unicode-bidi:isolate;
}
.nx-map-pulse-card .nx-map-amount{
  flex: 0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-wrap:nowrap;
  white-space:nowrap;
  max-width: 100%;
  line-height: 1.2;
}
.nx-map-pulse-card .nx-map-amount-unit{
  font-size:.82em;
}
.nx-map-pulse-card .nx-map-amount-sep{
  flex:0 0 auto;
  margin-inline:.16rem;
}
.nx-map-pulse-card .nx-map-pulse-num{
  direction:ltr;
  unicode-bidi:isolate;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.nx-map-pulse-card .nx-map-pulse-text{
  font-weight: 1000;
  letter-spacing: -.01em;
}
.nx-map-number-tip::after{
  direction: rtl;
  unicode-bidi: isolate;
}
.nx-map-amount-num{
  direction:ltr !important;
  unicode-bidi:isolate !important;
}
.nx-map-insight-item > span{
  min-width:0;
}
.nx-map-insight-item > span strong{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.nx-map-insight-item > span small{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.nx-map-insight-item b{
  white-space:nowrap;
}

@media (max-width: 1199.98px){
  .nx-map-pulse-card strong,
  .nx-map-pulse-card strong.nx-map-pulse-value{
    font-size:.98rem;
  }
}
@media (max-width: 575.98px){
  .nx-map-pulse-card{
    min-height:86px;
    padding:.72rem .76rem;
  }
  .nx-map-pulse-card strong,
  .nx-map-pulse-card strong.nx-map-pulse-value{
    font-size:.9rem;
  }
}

/* ─────────────────────────────────────────────────────────
   Watchtower public demo / SEO landing additions
────────────────────────────────────────────────────────── */
.nx-demo-note,
.nx-guest-cta,
.nx-guest-js-cta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:.85rem;
  border:1px solid rgba(37,99,235,.18);
  border-radius:1rem;
  background:rgba(255,255,255,.78);
  box-shadow:0 12px 30px rgba(15,23,42,.06);
  padding:.85rem 1rem;
}
.nx-guest-cta{
  min-width:min(100%, 420px);
  background:linear-gradient(135deg, rgba(37,99,235,.08), rgba(255,255,255,.88));
}
.nx-guest-js-cta{
  justify-content:flex-start;
  background:rgba(248,250,252,.92);
}
.nx-watch-seo p{
  line-height:2;
}
.nx-watch-seo h3{
  color:rgba(15,23,42,.9);
}

@media (max-width: 575.98px){
  .nx-demo-note,
  .nx-guest-cta,
  .nx-guest-js-cta{
    align-items:stretch;
  }
  .nx-demo-note .btn,
  .nx-guest-cta .btn,
  .nx-guest-js-cta .btn{
    width:100%;
  }
}

/* Phase 2: tier-aware badges and soft locks */
.nx-plan-badge,
.nx-lock-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  font-weight:900;
  white-space:nowrap;
}

.nx-plan-badge{
  padding:.28rem .68rem;
  font-size:.78rem;
  border:1px solid rgba(148,163,184,.45);
  background:rgba(255,255,255,.72);
  color:rgba(15,23,42,.74);
}
.nx-plan-guest{ background:rgba(241,245,249,.88); color:rgba(71,85,105,.95); }
.nx-plan-free{ background:rgba(239,246,255,.88); color:rgba(29,78,216,.95); }
.nx-plan-plus{ background:rgba(240,253,244,.88); color:rgba(22,101,52,.95); }
.nx-plan-pro{ background:linear-gradient(135deg, rgba(37,99,235,.95), rgba(59,130,246,.95)); color:#fff; border-color:transparent; }

.nx-tier-note,
.nx-demo-note{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.9rem;
  border:1px solid rgba(203,213,225,.9);
  border-radius:1.05rem;
  background:rgba(255,255,255,.78);
  box-shadow:var(--nx-wt-shadow-sm);
  padding:.85rem 1rem;
  backdrop-filter:blur(10px);
}

.nx-tier-note{
  border-color:rgba(37,99,235,.22);
  background:linear-gradient(135deg, rgba(239,246,255,.88), rgba(255,255,255,.72));
}

.nx-chip-locked,
.nx-dropdown-locked{
  opacity:.82;
  cursor:pointer;
}
.nx-chip-locked:hover,
.nx-dropdown-locked:hover{
  border-color:rgba(37,99,235,.32);
  background:rgba(37,99,235,.08);
}
.nx-lock-badge{
  margin-right:.35rem;
  padding:.08rem .42rem;
  font-size:.66rem;
  border:1px solid rgba(37,99,235,.24);
  background:rgba(239,246,255,.95);
  color:rgba(29,78,216,.95);
}
.nx-dropdown-locked{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.45rem;
}
.nx-dropdown-locked .nx-lock-badge{ margin-right:auto; }
.nx-preview-note{
  border:1px dashed rgba(37,99,235,.35);
  background:rgba(239,246,255,.72);
  color:rgba(30,64,175,.92);
  border-radius:.9rem;
  padding:.55rem .7rem;
}

@media (max-width: 768px){
  .nx-tier-note,
  .nx-demo-note{ align-items:stretch; flex-direction:column; }
  .nx-tier-note .btn,
  .nx-demo-note .btn{ width:100%; }
}

/* Phase 3 polish: daily report + watchlist events */
.nx-watch-decision-row{
  align-items:stretch;
}
.nx-watch-report,
.nx-watch-events{
  overflow:hidden;
}
.nx-watch-report .card-body,
.nx-watch-events .card-body{
  padding:1rem;
}
.nx-watch-report-header{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  justify-content:space-between;
  gap:.65rem;
  margin-bottom:.65rem;
}
.nx-watch-report-titlebox{
  min-width:0;
}
.nx-watch-report-kicker{
  color:rgba(100,116,139,.95);
  font-size:.78rem;
  line-height:1.8;
}
.nx-watch-report-headline{
  font-weight:900;
  color:rgba(15,23,42,.94);
  font-size:1rem;
  line-height:1.75;
  margin:.45rem 0 .28rem;
}
.nx-watch-report-summary{
  color:rgba(71,85,105,.95);
  line-height:1.95;
  margin:0 0 .78rem;
  font-size:.88rem;
}
.nx-report-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:.22rem .62rem;
  background:rgba(241,245,249,.94);
  border:1px solid rgba(148,163,184,.32);
  color:rgba(51,65,85,.95);
  font-size:.72rem;
  font-weight:900;
  white-space:nowrap;
}
.nx-watch-report-stats{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:.52rem;
  margin-top:.3rem;
}
.nx-watch-report-stat{
  min-width:0;
  border:1px solid rgba(226,232,240,.95);
  border-radius:.9rem;
  padding:.58rem .54rem;
  background:linear-gradient(180deg, rgba(248,250,252,.96), rgba(255,255,255,.76));
  min-height:70px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:.22rem;
}
.nx-watch-report-stat .nx-stat-label{
  display:block;
  max-width:100%;
  color:rgba(100,116,139,.95);
  font-size:.68rem;
  font-weight:800;
  line-height:1.45;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.nx-watch-report-stat .nx-stat-value{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.18rem;
  color:rgba(15,23,42,.95);
  font-size:.98rem;
  font-weight:950;
  line-height:1.25;
  white-space:nowrap;
  min-width:0;
  direction:ltr;
  unicode-bidi:plaintext;
}
.nx-stat-ratio .nx-stat-sep{
  color:rgba(148,163,184,.95);
  padding:0 .05rem;
}
.nx-stat-breakdown{
  direction:rtl;
  unicode-bidi:normal;
  gap:.28rem;
}
.nx-stat-part{
  display:inline-flex;
  align-items:baseline;
  justify-content:center;
  gap:.18rem;
  min-width:0;
}
.nx-stat-part-label{
  color:rgba(100,116,139,.96);
  font-size:.66rem;
  font-weight:850;
  line-height:1;
}
.nx-watch-report-footer{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:.6rem .8rem;
  margin-top:.9rem;
  padding-top:.78rem;
  border-top:1px solid rgba(226,232,240,.82);
}
.nx-watch-report-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.48rem;
}
.nx-report-primary-cta{
  font-weight:900;
  border-radius:999px;
  padding-inline:.9rem;
}
.nx-report-secondary-copy,
.nx-watch-report-footnote{
  color:rgba(100,116,139,.95);
  font-size:.76rem;
  line-height:1.8;
}
.nx-report-secondary-copy{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  background:rgba(248,250,252,.94);
  border:1px solid rgba(226,232,240,.95);
  padding:.2rem .58rem;
  font-weight:900;
  color:rgba(51,65,85,.95);
}
.nx-events-header-cta{
  border-radius:999px;
  font-weight:900;
  white-space:nowrap;
}
.nx-watch-event-list{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:.72rem;
  align-items:stretch;
}
.nx-watch-event-card{
  min-width:0;
  min-height:214px;
  border:1px solid rgba(226,232,240,.95);
  border-radius:1.05rem;
  padding:.82rem .9rem .78rem;
  background:rgba(255,255,255,.86);
  box-shadow:0 10px 26px rgba(15,23,42,.045);
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.nx-watch-event-card::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:4px;
  background:rgba(148,163,184,.8);
}
.nx-event-severity-positive::before{ background:rgba(34,197,94,.9); }
.nx-event-severity-hot::before{ background:rgba(245,158,11,.95); }
.nx-event-severity-warning::before{ background:rgba(239,68,68,.9); }
.nx-event-severity-info::before{ background:rgba(59,130,246,.9); }
.nx-watch-event-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:.7rem;
  margin-bottom:.5rem;
}
.nx-watch-event-symbol{
  min-width:0;
}
.nx-event-name{
  max-width:100%;
  margin-top:.08rem;
  color:rgba(100,116,139,.95);
  font-size:.72rem;
  line-height:1.5;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.nx-event-priority{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  background:rgba(15,23,42,.055);
  border:1px solid rgba(148,163,184,.22);
  color:rgba(51,65,85,.95);
  font-size:.68rem;
  font-weight:900;
  padding:.22rem .56rem;
  white-space:nowrap;
}
.nx-watch-event-title{
  font-weight:950;
  color:rgba(15,23,42,.95);
  line-height:1.7;
  margin-bottom:.3rem;
  font-size:.9rem;
}
.nx-watch-event-body{
  color:rgba(71,85,105,.96);
  line-height:1.85;
  font-size:.82rem;
  margin:0 0 .62rem;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.nx-event-reasons{
  display:flex;
  flex-wrap:wrap;
  gap:.32rem;
  margin:.05rem 0 .72rem;
}
.nx-event-reasons span{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:.14rem .48rem;
  background:rgba(241,245,249,.92);
  border:1px solid rgba(226,232,240,.95);
  color:rgba(51,65,85,.96);
  font-size:.69rem;
  font-weight:850;
  line-height:1.55;
}
.nx-event-cta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.4rem;
  margin-top:auto;
  padding-top:.08rem;
}
.nx-event-cta a{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:.22rem .58rem;
  background:rgba(248,250,252,.86);
  border:1px solid rgba(37,99,235,.16);
  color:rgba(29,78,216,.94);
  font-size:.73rem;
  font-weight:900;
  line-height:1.6;
  text-decoration:none;
}
.nx-event-cta a:hover{
  background:rgba(239,246,255,.96);
  color:rgba(30,64,175,1);
}
.nx-event-cta a.nx-event-subtle-cta{
  background:transparent;
  border-color:rgba(148,163,184,.32);
  color:rgba(51,65,85,.9);
}
.nx-event-locked-link span{
  margin-right:.35rem;
  border-radius:999px;
  padding:.02rem .32rem;
  background:#fff;
  border:1px solid rgba(37,99,235,.2);
  font-size:.64rem;
}
.nx-watch-events-empty{
  grid-column:1 / -1;
  border:1px dashed rgba(148,163,184,.55);
  border-radius:1rem;
  padding:1rem;
  color:rgba(100,116,139,.95);
  background:rgba(248,250,252,.8);
  line-height:1.9;
}
.nx-guest-watchlist-cta{
  min-width:min(100%, 420px);
  border-color:rgba(37,99,235,.2);
  background:linear-gradient(135deg, rgba(239,246,255,.92), rgba(255,255,255,.86));
  box-shadow:0 12px 30px rgba(15,23,42,.055);
}
.nx-guest-watchlist-cta .btn{
  border-radius:999px;
  font-weight:900;
  white-space:nowrap;
}

@media (min-width: 1200px){
  .nx-watch-report .card-body{
    display:flex;
    flex-direction:column;
  }
  .nx-watch-report-footer{
    margin-top:auto;
  }
}

@media (max-width: 1199.98px){
  .nx-watch-report-stats{
    grid-template-columns:repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px){
  .nx-watch-event-list{
    grid-template-columns:1fr;
  }
}

@media (max-width: 767.98px){
  .nx-watch-report-header,
  .nx-watch-report-footer{
    align-items:stretch;
    flex-direction:column;
  }
  .nx-watch-report-stats{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
  .nx-watch-report-actions,
  .nx-watch-report-actions .btn{
    width:100%;
  }
  .nx-watch-report-actions .btn{
    justify-content:center;
  }
}

@media (max-width: 575.98px){
  .nx-watch-report .card-body,
  .nx-watch-events .card-body{
    padding:.88rem;
  }
  .nx-watch-report-stats{
    gap:.45rem;
  }
  .nx-watch-report-stat{
    padding:.54rem .42rem;
    min-height:66px;
  }
  .nx-watch-report-stat .nx-stat-label{
    font-size:.64rem;
  }
  .nx-watch-report-stat .nx-stat-value{
    font-size:.9rem;
  }
  .nx-stat-part-label{
    font-size:.6rem;
  }
  .nx-stat-breakdown{
    gap:.22rem;
  }
  .nx-watch-event-card{
    min-height:0;
  }
  .nx-event-cta a{
    flex:1 1 auto;
    justify-content:center;
  }
}

/* Phase 4A: persisted event read/unread state */
.nx-events-header-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
  gap:.45rem;
}
.nx-events-unread-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:.16rem .52rem;
  background:rgba(37,99,235,.10);
  border:1px solid rgba(37,99,235,.20);
  color:rgba(30,64,175,.98);
  font-size:.68rem;
  font-weight:950;
  line-height:1.6;
  white-space:nowrap;
}
.nx-events-unread-count-zero{
  background:rgba(241,245,249,.86);
  border-color:rgba(148,163,184,.24);
  color:rgba(100,116,139,.9);
}
.nx-events-mark-all{
  border-radius:999px;
  font-weight:900;
  white-space:nowrap;
}
.nx-event-unread{
  border-color:rgba(37,99,235,.30);
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(239,246,255,.48));
  box-shadow:0 14px 32px rgba(37,99,235,.075);
}
.nx-event-read{
  opacity:.94;
}
.nx-event-badges{
  display:inline-flex;
  flex:0 0 auto;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:.3rem;
}
.nx-event-new-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:.18rem .48rem;
  background:rgba(37,99,235,.12);
  border:1px solid rgba(37,99,235,.24);
  color:rgba(30,64,175,.98);
  font-size:.66rem;
  font-weight:950;
  line-height:1.55;
  white-space:nowrap;
}
.nx-event-cta .nx-events-mark-read{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:.22rem .58rem;
  background:rgba(255,255,255,.86);
  border:1px solid rgba(148,163,184,.34);
  color:rgba(71,85,105,.96);
  font-size:.73rem;
  font-weight:900;
  line-height:1.6;
  text-decoration:none;
  cursor:pointer;
}
.nx-event-cta .nx-events-mark-read:hover{
  background:rgba(248,250,252,.98);
  color:rgba(15,23,42,.94);
}
.nx-event-cta .nx-events-mark-read:disabled,
.nx-events-mark-all:disabled{
  opacity:.58;
  cursor:not-allowed;
}

@media (max-width: 575.98px){
  .nx-events-header-actions,
  .nx-events-header-actions .btn{
    width:100%;
  }
  .nx-events-header-actions .btn{
    justify-content:center;
  }
  .nx-event-badges{
    justify-content:flex-start;
  }
  .nx-event-cta .nx-events-mark-read{
    flex:1 1 auto;
  }
}

/* Phase 4C: recent persisted Watchtower events */
.nx-recent-watch-events{
  overflow:hidden;
}
.nx-recent-watch-events .card-body{
  padding:1rem;
}
.nx-recent-event-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
  gap:.5rem;
}
.nx-recent-event-filters{
  display:inline-flex;
  align-items:center;
  gap:.28rem;
  padding:.22rem;
  border-radius:999px;
  background:rgba(248,250,252,.92);
  border:1px solid rgba(226,232,240,.95);
}
.nx-recent-event-filter{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:999px;
  padding:.28rem .72rem;
  background:transparent;
  color:rgba(71,85,105,.96);
  font-size:.73rem;
  font-weight:950;
  line-height:1.55;
  white-space:nowrap;
  cursor:pointer;
  transition:background .15s ease, color .15s ease, box-shadow .15s ease;
}
.nx-recent-event-filter:hover{
  background:rgba(37,99,235,.08);
  color:rgba(30,64,175,.98);
}
.nx-recent-event-filter.is-active{
  background:#fff;
  color:rgba(29,78,216,.98);
  box-shadow:0 8px 20px rgba(15,23,42,.08);
}
.nx-recent-event-list{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:.72rem;
  align-items:stretch;
}
.nx-recent-watch-event-card{
  min-height:205px;
}
.nx-event-meta-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:.35rem .6rem;
  margin:-.18rem 0 .62rem;
  color:rgba(100,116,139,.92);
  font-size:.68rem;
  font-weight:850;
  line-height:1.7;
}
.nx-event-meta-row span{
  display:inline-flex;
  align-items:center;
  white-space:nowrap;
}

@media (max-width: 1199.98px){
  .nx-recent-event-list{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767.98px){
  .nx-recent-event-actions,
  .nx-recent-event-actions .btn,
  .nx-recent-event-filters{
    width:100%;
  }
  .nx-recent-event-filters{
    justify-content:space-between;
  }
  .nx-recent-event-filter{
    flex:1 1 0;
  }
  .nx-recent-event-list{
    grid-template-columns:1fr;
  }
}
@media (max-width: 575.98px){
  .nx-recent-watch-events .card-body{
    padding:.88rem;
  }
  .nx-recent-watch-event-card{
    min-height:0;
  }
}

/* Phase 4D: lightweight Watchtower event preferences */
.nx-watch-event-settings{
  overflow:hidden;
  border-color:rgba(37,99,235,.14);
  background:linear-gradient(135deg, rgba(255,255,255,.94), rgba(239,246,255,.58));
}
.nx-watch-event-settings .card-body{
  padding:1rem;
}
.nx-watch-event-settings-head{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  justify-content:space-between;
  gap:.65rem;
  margin-bottom:.78rem;
}
.nx-watch-event-settings-status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:.16rem .55rem;
  background:rgba(241,245,249,.92);
  border:1px solid rgba(148,163,184,.24);
  color:rgba(71,85,105,.96);
  font-size:.68rem;
  font-weight:950;
  line-height:1.65;
  white-space:nowrap;
}
.nx-watch-event-settings-status.is-saving{
  background:rgba(239,246,255,.96);
  border-color:rgba(37,99,235,.24);
  color:rgba(30,64,175,.98);
}
.nx-watch-event-settings-status.is-error{
  background:rgba(254,242,242,.96);
  border-color:rgba(239,68,68,.24);
  color:rgba(185,28,28,.96);
}
.nx-watch-event-settings-status.is-saved{
  background:rgba(240,253,244,.96);
  border-color:rgba(34,197,94,.24);
  color:rgba(22,101,52,.96);
}
.nx-watch-event-settings-form{
  display:flex;
  flex-direction:column;
  gap:.75rem;
}
.nx-watch-event-category-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:.55rem;
}
.nx-watch-event-category{
  display:flex;
  align-items:flex-start;
  gap:.5rem;
  min-width:0;
  min-height:94px;
  border:1px solid rgba(226,232,240,.95);
  border-radius:.95rem;
  padding:.65rem .7rem;
  background:rgba(255,255,255,.82);
  cursor:pointer;
  transition:border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.nx-watch-event-category:hover{
  border-color:rgba(37,99,235,.24);
  background:rgba(255,255,255,.95);
}
.nx-watch-event-category.is-enabled{
  border-color:rgba(37,99,235,.30);
  background:rgba(239,246,255,.76);
  box-shadow:0 10px 24px rgba(37,99,235,.055);
}
.nx-watch-event-category input,
.nx-watch-event-priority-option input{
  flex:0 0 auto;
  margin-top:.18rem;
  accent-color:#2563eb;
}
.nx-watch-event-category-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:.16rem;
}
.nx-watch-event-category-copy strong{
  color:rgba(15,23,42,.96);
  font-size:.82rem;
  font-weight:950;
  line-height:1.75;
}
.nx-watch-event-category-copy small{
  color:rgba(100,116,139,.96);
  font-size:.69rem;
  font-weight:700;
  line-height:1.75;
}
.nx-watch-event-priority-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:.55rem;
  padding-top:.72rem;
  border-top:1px solid rgba(226,232,240,.82);
}
.nx-watch-event-priority-label{
  color:rgba(71,85,105,.96);
  font-size:.74rem;
  font-weight:950;
}
.nx-watch-event-priority-options{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.42rem;
}
.nx-watch-event-priority-option{
  display:inline-flex;
  align-items:center;
  gap:.3rem;
  border-radius:999px;
  border:1px solid rgba(226,232,240,.95);
  background:rgba(255,255,255,.82);
  color:rgba(71,85,105,.96);
  padding:.22rem .58rem;
  font-size:.72rem;
  font-weight:900;
  line-height:1.6;
  cursor:pointer;
}
.nx-watch-event-priority-option:has(input:checked){
  border-color:rgba(37,99,235,.28);
  background:rgba(239,246,255,.9);
  color:rgba(30,64,175,.98);
}

@media (max-width: 1199.98px){
  .nx-watch-event-category-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767.98px){
  .nx-watch-event-settings-head,
  .nx-watch-event-priority-row{
    align-items:stretch;
    flex-direction:column;
  }
  .nx-watch-event-settings-status{
    width:100%;
  }
  .nx-watch-event-category-grid{
    grid-template-columns:1fr;
  }
  .nx-watch-event-priority-options{
    width:100%;
  }
  .nx-watch-event-priority-option{
    flex:1 1 auto;
    justify-content:center;
  }
}

/* Phase 4E: explainable Watchtower event detail */
.nx-event-detail-button{
  display:inline-flex;
  align-items:center;
  border:1px solid rgba(14,165,233,.24);
  border-radius:999px;
  padding:.22rem .58rem;
  background:rgba(240,249,255,.9);
  color:rgba(3,105,161,.98);
  font-size:.73rem;
  font-weight:950;
  line-height:1.6;
  cursor:pointer;
  transition:background .15s ease, border-color .15s ease, transform .15s ease;
}
.nx-event-detail-button:hover{
  background:rgba(224,242,254,.98);
  border-color:rgba(14,165,233,.36);
  transform:translateY(-1px);
}
.nx-event-detail-button:focus-visible,
.nx-watch-event-modal__close:focus-visible{
  outline:3px solid rgba(14,165,233,.22);
  outline-offset:2px;
}
.nx-watch-event-modal{
  position:fixed;
  inset:0;
  z-index:1085;
  display:none;
  direction:rtl;
}
.nx-watch-event-modal.is-open{
  display:block;
}
.nx-watch-event-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.42);
  backdrop-filter:blur(4px);
}
.nx-watch-event-modal__dialog{
  position:relative;
  z-index:1;
  width:min(620px, calc(100% - 2rem));
  max-height:calc(100vh - 3rem);
  margin:1.5rem auto;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid rgba(226,232,240,.96);
  border-radius:1.25rem;
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.98));
  box-shadow:0 28px 90px rgba(15,23,42,.22);
}
.nx-watch-event-modal__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
  padding:1rem 1.05rem .85rem;
  border-bottom:1px solid rgba(226,232,240,.9);
  background:rgba(255,255,255,.72);
}
.nx-watch-event-modal__eyebrow{
  color:rgba(100,116,139,.95);
  font-size:.72rem;
  font-weight:900;
  line-height:1.7;
  margin-bottom:.12rem;
}
.nx-watch-event-modal__close{
  width:2.25rem;
  height:2.25rem;
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(148,163,184,.3);
  border-radius:999px;
  background:#fff;
  color:rgba(51,65,85,.96);
  font-size:1.35rem;
  line-height:1;
  cursor:pointer;
}
.nx-watch-event-modal__body{
  padding:1rem 1.05rem 1.1rem;
  overflow:auto;
  overscroll-behavior:contain;
}
.nx-watch-event-detail-loading,
.nx-watch-event-detail-error{
  border:1px dashed rgba(148,163,184,.55);
  border-radius:1rem;
  padding:1rem;
  background:rgba(248,250,252,.9);
  color:rgba(71,85,105,.96);
  font-size:.86rem;
  line-height:1.9;
}
.nx-watch-event-detail-error{
  border-color:rgba(248,113,113,.42);
  background:rgba(254,242,242,.9);
  color:rgba(153,27,27,.95);
}
.nx-watch-event-detail-hero{
  position:relative;
  display:flex;
  gap:.72rem;
  align-items:flex-start;
  padding:.85rem .92rem;
  border:1px solid rgba(226,232,240,.95);
  border-radius:1.05rem;
  background:#fff;
  overflow:hidden;
}
.nx-watch-event-detail-hero::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:4px;
  background:rgba(148,163,184,.8);
}
.nx-watch-event-detail-symbol{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:3rem;
  min-height:2.2rem;
  border-radius:.9rem;
  background:rgba(239,246,255,.95);
  color:rgba(29,78,216,.98);
  font-weight:950;
  line-height:1.5;
}
.nx-watch-event-detail-main{
  min-width:0;
}
.nx-watch-event-detail-main h3{
  margin:0;
  color:rgba(15,23,42,.97);
  font-size:.95rem;
  font-weight:950;
  line-height:1.85;
}
.nx-watch-event-detail-date{
  color:rgba(100,116,139,.96);
  font-size:.74rem;
  font-weight:850;
  line-height:1.7;
}
.nx-watch-event-detail-tags{
  display:flex;
  flex-wrap:wrap;
  gap:.38rem;
  margin:.72rem 0 .85rem;
}
.nx-watch-event-detail-tags span{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:.2rem .62rem;
  border:1px solid rgba(148,163,184,.24);
  background:rgba(248,250,252,.95);
  color:rgba(51,65,85,.96);
  font-size:.72rem;
  font-weight:950;
  line-height:1.65;
}
.nx-watch-event-detail-section{
  margin-top:.86rem;
  padding:.82rem .9rem;
  border:1px solid rgba(226,232,240,.94);
  border-radius:1rem;
  background:rgba(255,255,255,.78);
}
.nx-watch-event-detail-section h3{
  margin:0 0 .48rem;
  color:rgba(15,23,42,.95);
  font-size:.86rem;
  font-weight:950;
  line-height:1.8;
}
.nx-watch-event-detail-section p{
  margin:0;
  color:rgba(71,85,105,.96);
  font-size:.82rem;
  line-height:1.95;
}
.nx-watch-event-detail-list{
  margin:0;
  padding:0 1.1rem 0 0;
  color:rgba(71,85,105,.96);
  font-size:.82rem;
  line-height:2;
}
.nx-watch-event-detail-list li + li{
  margin-top:.22rem;
}
.nx-watch-event-detail-muted{
  color:rgba(100,116,139,.96);
  font-size:.8rem;
  line-height:1.9;
}
.nx-watch-event-detail-links{
  display:flex;
  flex-wrap:wrap;
  gap:.42rem;
}
.nx-watch-event-detail-links a{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:.28rem .7rem;
  background:rgba(239,246,255,.95);
  border:1px solid rgba(37,99,235,.18);
  color:rgba(29,78,216,.96);
  font-size:.75rem;
  font-weight:950;
  line-height:1.6;
  text-decoration:none;
}
.nx-watch-event-detail-links a:hover{
  background:rgba(219,234,254,.96);
}
.nx-watch-event-detail-disclaimer{
  margin-top:.9rem;
  padding:.74rem .86rem;
  border-radius:.95rem;
  border:1px solid rgba(245,158,11,.25);
  background:rgba(255,251,235,.82);
  color:rgba(120,53,15,.94);
  font-size:.78rem;
  font-weight:850;
  line-height:1.95;
}
body.nx-watch-event-modal-open{
  overflow:hidden;
}
@media (max-width: 575.98px){
  .nx-watch-event-modal__dialog{
    width:100%;
    min-height:100vh;
    max-height:100vh;
    margin:0;
    border-radius:0;
  }
  .nx-watch-event-modal__head{
    padding:.9rem .92rem .78rem;
  }
  .nx-watch-event-modal__body{
    padding:.9rem .92rem 1rem;
  }
  .nx-watch-event-detail-hero{
    flex-direction:column;
  }
  .nx-event-detail-button{
    flex:1 1 auto;
    justify-content:center;
    min-height:2rem;
  }
}

/* Watchtower digest summary (phase 4F) */
.nx-watch-digest{
  border:1px solid rgba(226,232,240,.96);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
  overflow:hidden;
}
.nx-watch-digest-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:.9rem;
}
.nx-watch-digest-tabs{
  display:inline-flex;
  flex-wrap:wrap;
  gap:.35rem;
  padding:.18rem;
  border:1px solid rgba(226,232,240,.94);
  border-radius:999px;
  background:rgba(248,250,252,.92);
}
.nx-watch-digest-tab{
  border:0;
  border-radius:999px;
  padding:.32rem .82rem;
  background:transparent;
  color:rgba(71,85,105,.96);
  font-size:.78rem;
  font-weight:950;
  line-height:1.65;
  cursor:pointer;
  transition:background .15s ease, color .15s ease, box-shadow .15s ease;
}
.nx-watch-digest-tab.is-active{
  background:#fff;
  color:rgba(29,78,216,.98);
  box-shadow:0 8px 24px rgba(15,23,42,.08);
}
.nx-watch-digest-tab:focus-visible,
.nx-watch-digest-cta:focus-visible{
  outline:3px solid rgba(59,130,246,.2);
  outline-offset:2px;
}
.nx-watch-digest-body.is-loading{
  opacity:.68;
  pointer-events:none;
}
.nx-watch-digest-stats{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:.65rem;
  margin-bottom:.82rem;
}
.nx-watch-digest-stat{
  min-width:0;
  border:1px solid rgba(226,232,240,.94);
  border-radius:1rem;
  background:rgba(255,255,255,.9);
  padding:.72rem .78rem;
}
.nx-watch-digest-stat span{
  display:block;
  color:rgba(100,116,139,.98);
  font-size:.73rem;
  font-weight:850;
  line-height:1.7;
  margin-bottom:.22rem;
}
.nx-watch-digest-stat strong{
  display:block;
  color:rgba(15,23,42,.98);
  font-size:1.08rem;
  font-weight:950;
  line-height:1.5;
  direction:ltr;
  text-align:right;
}
.nx-watch-digest-summary{
  border:1px solid rgba(191,219,254,.8);
  border-radius:1rem;
  background:linear-gradient(135deg, rgba(239,246,255,.92), rgba(255,255,255,.96));
  color:rgba(30,64,175,.96);
  font-size:.85rem;
  font-weight:850;
  line-height:2;
  padding:.76rem .9rem;
  margin-bottom:.84rem;
}
.nx-watch-digest-grid{
  display:grid;
  grid-template-columns:minmax(0, 1.1fr) minmax(0, .9fr);
  gap:.75rem;
}
.nx-watch-digest-symbols,
.nx-watch-digest-categories{
  border:1px solid rgba(226,232,240,.94);
  border-radius:1rem;
  background:rgba(255,255,255,.78);
  padding:.82rem .9rem;
  min-width:0;
}
.nx-watch-digest-symbols h3,
.nx-watch-digest-categories h3{
  margin:0 0 .6rem;
  color:rgba(15,23,42,.96);
  font-size:.86rem;
  font-weight:950;
  line-height:1.8;
}
.nx-watch-digest-symbol-list{
  display:flex;
  flex-direction:column;
  gap:.48rem;
}
.nx-watch-digest-symbol-item{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.38rem .5rem;
  padding:.48rem .55rem;
  border-radius:.86rem;
  background:rgba(248,250,252,.94);
  color:rgba(71,85,105,.96);
  font-size:.76rem;
  font-weight:850;
  line-height:1.7;
}
.nx-watch-digest-ticker{
  display:inline-flex;
  align-items:center;
  border-radius:.74rem;
  padding:.14rem .48rem;
  background:rgba(239,246,255,.98);
  color:rgba(29,78,216,.98);
  font-weight:950;
}
.nx-watch-digest-symbol-item small{
  color:rgba(100,116,139,.98);
  font-weight:850;
}
.nx-watch-digest-category-list{
  display:flex;
  flex-wrap:wrap;
  gap:.42rem;
}
.nx-watch-digest-category-chip{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.22);
  background:rgba(248,250,252,.95);
  color:rgba(51,65,85,.96);
  padding:.25rem .66rem;
  font-size:.76rem;
  font-weight:900;
  line-height:1.65;
}
.nx-watch-digest-empty,
.nx-watch-digest-muted{
  border:1px dashed rgba(148,163,184,.48);
  border-radius:.95rem;
  background:rgba(248,250,252,.8);
  color:rgba(100,116,139,.96);
  font-size:.82rem;
  font-weight:850;
  line-height:1.9;
  padding:.78rem .85rem;
}
.nx-watch-digest-empty.is-error{
  border-color:rgba(248,113,113,.38);
  background:rgba(254,242,242,.88);
  color:rgba(153,27,27,.95);
}
.nx-watch-digest-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:.6rem;
  margin-top:.86rem;
}
.nx-watch-digest-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:.38rem .82rem;
  background:rgba(37,99,235,.96);
  color:#fff;
  font-size:.78rem;
  font-weight:950;
  line-height:1.6;
  text-decoration:none;
  box-shadow:0 10px 28px rgba(37,99,235,.18);
}
.nx-watch-digest-cta:hover{
  color:#fff;
  background:rgba(29,78,216,.98);
}
.nx-watch-digest-actions span{
  color:rgba(100,116,139,.98);
  font-size:.74rem;
  font-weight:850;
}
@media (max-width: 991.98px){
  .nx-watch-digest-stats{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
  .nx-watch-digest-grid{
    grid-template-columns:1fr;
  }
}
@media (max-width: 575.98px){
  .nx-watch-digest-head{
    flex-direction:column;
    align-items:stretch;
  }
  .nx-watch-digest-tabs{
    width:100%;
  }
  .nx-watch-digest-tab{
    flex:1 1 0;
    min-height:2.35rem;
  }
  .nx-watch-digest-stats{
    grid-template-columns:1fr 1fr;
    gap:.5rem;
  }
  .nx-watch-digest-stat{
    padding:.62rem .66rem;
  }
  .nx-watch-digest-summary,
  .nx-watch-digest-symbols,
  .nx-watch-digest-categories{
    padding:.72rem .74rem;
  }
  .nx-watch-digest-actions{
    align-items:stretch;
  }
  .nx-watch-digest-cta{
    flex:1 1 100%;
  }
}


/* ─────────────────────────────────────────────────────────
   Phase 4I final responsive polish
────────────────────────────────────────────────────────── */
@media (max-width: 768px){
  .nx-watchtower{
    padding-top: .75rem;
  }

  .nx-watchtower-inner{
    padding-inline: .72rem;
  }

  .nx-wt-hero{
    padding: .85rem;
    border-radius: 1rem;
  }

  .nx-watchtower .card-body{
    padding: .9rem;
  }

  .nx-watchtower .nx-tabs{
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nx-watchtower .nx-tabs .nav-link{
    white-space: nowrap;
    padding-inline: .75rem;
  }

  .nx-watch-event-category-grid,
  .nx-watch-digest-stats,
  .nx-watch-report-stats{
    grid-template-columns: 1fr 1fr;
  }

  .nx-watch-event-priority-row,
  .nx-watch-digest-head,
  .nx-watch-report-header{
    align-items: stretch;
  }

  .nx-watch-digest-tabs,
  .nx-watch-event-priority-options{
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: .15rem;
  }

  .nx-watch-event-detail-modal,
  .nx-watch-event-detail-dialog{
    max-width: min(96vw, 720px);
  }

  .nx-chipset{
    gap: .38rem;
  }

  .nx-chip{
    padding: .32rem .72rem;
  }
}

@media (max-width: 480px){
  .nx-watchtower-inner{
    padding-inline: .55rem;
  }

  .nx-watchtower .card-body{
    padding: .82rem;
  }

  .nx-watch-event-category-grid,
  .nx-watch-digest-stats,
  .nx-watch-report-stats{
    grid-template-columns: 1fr;
  }

  .nx-watchlist-meta-pill{
    white-space: normal;
    justify-content: center;
    text-align: center;
  }
}
