/* ════════════════════════════════════════════════════════════════════════
   NeuroArsho — User Panel Layout (RTL / mobile-first)
   ────────────────────────────────────────────────────────────────────────
   Right-side fixed sidebar + main content area.
   Reuses variables from neuromind-auth.css.
   ════════════════════════════════════════════════════════════════════════ */

/* ── Shell / fixed sidebar / scrollable content ──────────────────────── */
body.nm-auth.np-panel { overflow: hidden; height: 100vh; }

.np-shell {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* Sidebar */
.np-aside {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 40;
  width: 304px;
  display: flex;
  flex-direction: column;
  background: rgba(6, 14, 28, 0.92);
  border-left: 1px solid var(--nm-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
}

/* Close button — visible in mobile only */
.np-aside__close {
  display: none;
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 6px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  color: var(--nm-muted);
  cursor: pointer;
  z-index: 5;
}
.np-aside__close svg { width: 22px; height: 22px; }
.np-aside__close:hover { color: var(--nm-text); background: rgba(255, 255, 255, 0.1); }

/* Content */
.np-content {
  position: relative;
  z-index: 2;
  margin-right: 304px;
  height: 100vh;
  overflow-y: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* ── Brand ───────────────────────────────────────────────────────────── */
.np-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 24px 20px 18px;
  flex-shrink: 0;
}
.np-brand__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--nm-gradient);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.7);
}
.np-brand__text {
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 1rem;
}
.np-brand__tag {
  margin-right: auto;
  font-size: 0.72rem;
  color: var(--nm-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 999px;
}

/* ── User chip ───────────────────────────────────────────────────────── */
.np-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 14px 16px;
  padding: 12px 14px;
  background: var(--nm-card);
  border: 1px solid var(--nm-border);
  border-radius: 14px;
}
.np-user__avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--nm-gradient);
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.np-user__info {
  min-width: 0;
  line-height: 1.5;
}
.np-user__name {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.np-user__meta {
  display: block;
  font-size: 0.72rem;
  color: var(--nm-muted);
  letter-spacing: 0.02em;
}

/* ── Nav ─────────────────────────────────────────────────────────────── */
.np-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px 12px 20px;
  overscroll-behavior: contain;
}
.np-nav::-webkit-scrollbar { width: 3px; }
.np-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
.np-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Items */
.np-nav__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--nm-muted);
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  text-align: right;
  transition: color 0.18s, background 0.18s;
}
.np-nav__item svg { width: 20px; height: 20px; flex-shrink: 0; }
.np-nav__item:hover { background: rgba(0, 212, 255, 0.06); color: var(--nm-text); }
.np-nav__item.is-active {
  color: var(--nm-cyan-soft);
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.14), rgba(59, 107, 255, 0.08));
}

/* Accordion parent */
.np-nav__parent { justify-content: flex-start; }
.np-nav__parent span:nth-child(2) { flex: 1; }
.np-nav__chevron { margin-right: auto; transition: transform 0.2s ease; }
.is-open > .np-nav__parent .np-nav__chevron { transform: rotate(180deg); }

/* Submenu */
.np-nav__sub { display: none; padding: 2px 0 6px 0; }
.is-open > .np-nav__sub { display: block; }

.np-nav__sub a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 14px;
  margin: 2px 14px 2px 26px;
  font-size: 0.82rem;
  color: var(--nm-muted);
  text-decoration: none;
  border-radius: 10px;
  transition: color 0.18s, background 0.18s;
}
.np-nav__sub a:hover { background: rgba(0, 212, 255, 0.06); color: var(--nm-text); }
.np-nav__sub a.is-active { color: var(--nm-cyan-soft); font-weight: 700; }

.np-nav__sub-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
  flex-shrink: 0;
}
.np-nav__sub a.is-active .np-nav__sub-dot { opacity: 1; box-shadow: 0 0 6px currentColor; }

/* Logout */
.np-aside__foot {
  flex-shrink: 0;
  padding: 10px 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.np-nav__logout-form { margin: 0; }
.np-nav__logout { color: var(--nm-danger-text); }
.np-nav__logout:hover { background: rgba(255, 90, 118, 0.08); }

/* ── Topbar ──────────────────────────────────────────────────────────── */
.np-topbar {
  position: sticky;
  top: 0;
  z-index: 14;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  background: rgba(5, 11, 24, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.np-burger {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  color: var(--nm-text);
  cursor: pointer;
}
.np-burger svg { width: 22px; height: 22px; }
.np-burger:hover { background: rgba(255, 255, 255, 0.1); }
.np-topbar__title {
  font-size: 1.05rem;
  font-weight: 800;
}
.np-topbar__spacer { flex: 1; }
.np-topbar__support {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--nm-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  text-decoration: none;
}
.np-topbar__support:hover { color: var(--nm-text); background: rgba(0, 212, 255, 0.06); }
.np-topbar__support svg { width: 16px; height: 16px; }

/* ── Page body ───────────────────────────────────────────────────────── */
.np-page {
  padding: 28px 32px 64px;
  max-width: 1080px;
}
.np-page-head { margin-bottom: 24px; }
.np-page-title { margin: 6px 0 10px; font-size: 1.8rem; font-weight: 800; }

/* Stats row */
.np-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}
.np-stat {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  background: var(--nm-card);
  border: 1px solid var(--nm-cyan-border);
  border-radius: 16px;
}
.np-stat__value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--nm-cyan-soft);
}
.np-stat__label { font-size: 0.76rem; color: var(--nm-muted); }

/* Quick grid (dashboard) */
.np-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}
.np-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--nm-card);
  border: 1px solid var(--nm-border);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.np-tile svg { width: 24px; height: 24px; color: var(--nm-cyan-soft); flex-shrink: 0; }
.np-tile span { font-weight: 700; font-size: 0.92rem; color: var(--nm-text); }
.np-tile:hover { border-color: var(--nm-cyan-border); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,0.4); }

/* Empty / placeholder */
.np-empty {
  text-align: center;
  padding: 48px 24px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}
.np-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(0, 212, 255, 0.08);
  color: var(--nm-cyan-soft);
  margin-bottom: 14px;
}
.np-empty__icon svg { width: 28px; height: 28px; }
.np-empty__title { margin: 0 0 8px; font-size: 1.1rem; font-weight: 700; }
.np-empty__text { margin: 0; font-size: 0.84rem; color: var(--nm-muted); line-height: 1.9; }

/* Badge */
.np-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--nm-cyan-soft);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--nm-cyan-border);
  border-radius: 999px;
}
.np-badge--warn { color: #fbbf24; background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.35); }

/* Info card (profile, order detail) */
.np-info {
  padding: 24px 26px;
  background: var(--nm-card);
  border: 1px solid var(--nm-border);
  border-radius: 16px;
}
.np-info dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 16px; margin: 0 0 18px; }
.np-info dt { font-size: 0.82rem; color: var(--nm-muted); font-weight: 600; }
.np-info dd { margin: 0; font-size: 0.92rem; }
.np-btn--sm { width: auto; padding: 10px 24px; font-size: 0.86rem; }

/* Backlink inside pages */
.np-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--nm-muted);
  text-decoration: none;
}
.np-back svg { width: 18px; height: 18px; }
.np-back:hover { color: var(--nm-cyan-soft); }

/* ── Backdrop (mobile) ──────────────────────────────────────────────── */
.np-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.np-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ── Responsive — mobile drawer ──────────────────────────────────────── */
@media (max-width: 1023px) {
  .np-content { margin-right: 0; }

  .np-aside {
    transform: translateX(100%);
    transition: transform 0.25s ease;
    box-shadow: none;
    width: min(320px, 86vw);
  }
  body.np-nav-open .np-aside {
    transform: translateX(0);
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.5);
  }
  .np-aside__close { display: grid; }

  .np-burger { display: inline-flex; }
  .np-topbar { padding: 14px 18px; }
  .np-page { padding: 24px 18px 48px; }
  .np-page-title { font-size: 1.4rem; }
}

/* ── Forms (panel flavour of the nm-field design) ──────────────────── */
.nm-form { margin-top: 6px; }
.nm-form__label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--nm-text);
}
.nm-form__input {
  width: 100%;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--nm-text);
  background: var(--nm-field-fill);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.nm-form__input::placeholder { color: #54688C; }
.nm-form__input:focus { border-color: var(--nm-cyan-border); box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15); }
.nm-form__hint { display: block; margin-top: 6px; font-size: 0.74rem; color: var(--nm-muted); }
.nm-form__note { margin: 16px 0; font-size: 0.8rem; color: var(--nm-muted); }

/* Mini toggle row used by settings pages */
.np-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.np-toggle:last-of-type { border-bottom: none; }
.np-toggle__text { display: grid; gap: 3px; }
.np-toggle__text b { font-size: 0.9rem; }
.np-toggle__text span { font-size: 0.76rem; color: var(--nm-muted); }

.nm-switch {
  width: 40px;
  height: 22px;
  margin: 0;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%238CA3C8'/%3e%3c/svg%3e");
  background-color: rgba(255, 255, 255, 0.1);
  border-color: transparent;
  background-position: left center;
  border-radius: 999px;
  background-size: 22px;
  transition: background-color 0.2s, background-position 0.2s;
  flex-shrink: 0;
}
.nm-switch:checked {
  background-color: rgba(0, 212, 255, 0.65);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='white'/%3e%3c/svg%3e");
  background-position: right center;
}
.nm-switch:disabled { opacity: 0.55; }

/* ── FAQ (support) ──────────────────────────────────────────────────── */
.np-faq {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}
.np-faq__item {
  background: var(--nm-card);
  border: 1px solid var(--nm-border);
  border-radius: 14px;
  overflow: hidden;
}
.np-faq__item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  list-style: none;
}
.np-faq__item summary::-webkit-details-marker { display: none; }
.np-faq__item summary span { flex: 1; }
.np-faq__item summary svg { width: 18px; height: 18px; color: var(--nm-muted); transition: transform 0.2s; }
.np-faq__item[open] summary svg { transform: rotate(180deg); color: var(--nm-cyan-soft); }
.np-faq__item[open] summary { color: var(--nm-cyan-soft); }
.np-faq__item p {
  margin: 0;
  padding: 0 16px 16px;
  font-size: 0.83rem;
  line-height: 2;
  color: var(--nm-muted);
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
  padding-top: 12px;
}

/* ── Orders list ────────────────────────────────────────────────────── */
.np-orders { display: grid; gap: 10px; }
.np-order-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--nm-card);
  border: 1px solid var(--nm-border);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color 0.18s, transform 0.18s;
}
.np-order-row:hover { border-color: var(--nm-cyan-border); transform: translateY(-2px); }
.np-order-row__main { display: grid; gap: 5px; flex: 1; min-width: 0; }
.np-order-row__main b { font-size: 0.9rem; color: var(--nm-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-order-row__id { font-size: 0.76rem; color: var(--nm-muted); }
.np-order-row > svg { width: 18px; height: 18px; color: var(--nm-muted); }
.np-badge--ok { color: #6EE7A0; background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.35); }

/* ── Demo data (settings) ───────────────────────────────────────────── */
.np-alert {
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.9;
  margin: 0 0 18px;
}
.np-alert--success {
  color: #6EE7A0;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.35);
}
.np-alert--error {
  color: var(--nm-danger-text);
  background: rgba(255, 90, 118, 0.1);
  border: 1px solid rgba(255, 90, 118, 0.4);
}
.np-demo-actions { display: grid; gap: 10px; }
.nm-btn--danger {
  color: var(--nm-danger-text);
  background: rgba(255, 90, 118, 0.08);
  border: 1px solid rgba(255, 90, 118, 0.45);
}
.nm-btn--danger:hover:not(:disabled) {
  background: rgba(255, 90, 118, 0.16);
  box-shadow: 0 10px 28px rgba(255, 90, 118, 0.28);
  filter: none;
}

/* ── Motion preferences (WCAG) ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .np-aside, .np-backdrop { transition-duration: 0.001ms !important; }
}

/* ????????????????????????????????????????????????????????????????????????
   Storefront (catalog) � public content pages
   ???????????????????????????????????????????????????????????????????????? */
/* Horizontal overflow is clipped: decorative glows / wide tables used to
   give the page a sideways scroll, which on a phone (and in the installed
   PWA, where there is no browser chrome to hide it) shows up as a constant
   left/right jitter while scrolling. Vertical scrolling stays normal. */
body.nm-auth.nc-catalog {
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
  /* Stop overscroll from chaining/pull-to-refresh: in the installed PWA the
     fling at the top/bottom of the page had nothing to absorb it and the
     whole document rubber-banded (read as "the page shakes"). */
  overscroll-behavior: contain;
}

/* The storefront scrolls the document (unlike the panel's inner .np-content
   scroller), so the ambient canvas/glows must not travel with the page:
   fixed layers never add scrollable overflow and never repaint mid-scroll
   under the sticky header's backdrop-filter. */
body.nm-auth.nc-catalog .nm-particles,
body.nm-auth.nc-catalog .nm-glow { position: fixed; }

/* body.has-tabbar reserves 56px below the shell for the mobile tab bar;
   without this the shell's 100vh + that padding guaranteed a permanent
   phantom scroll on every short shop page (empty cart, catalog hub …). */
body.has-tabbar.nc-catalog .nm-shell--catalog {
  min-height: calc(100vh - var(--nm-tabbar-height));
  min-height: calc(100dvh - var(--nm-tabbar-height));
}

.nm-shell--catalog { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

/* Top navigation */
.nm-nav { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--nm-border); background: rgba(5, 11, 24, 0.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.nm-nav__inner { display: flex; align-items: center; gap: 18px; max-width: 1200px; margin: 0 auto; padding: 14px 24px; }
.nm-nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nm-nav__brand b { font-size: 1rem; font-weight: 800; letter-spacing: 0.02em; }
.nm-nav__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--nm-gradient); box-shadow: 0 0 12px rgba(0, 212, 255, 0.7); }
.nm-nav__tag { font-size: 0.7rem; color: var(--nm-muted); background: rgba(255, 255, 255, 0.05); padding: 3px 8px; border-radius: 999px; }
.nm-nav__links { display: flex; gap: 4px; flex: 1; justify-content: center; }
.nm-nav__link { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; font-size: 0.85rem; font-weight: 600; color: var(--nm-muted); border-radius: 11px; text-decoration: none; transition: color 0.18s, background 0.18s; }
.nm-nav__link svg { width: 17px; height: 17px; }
.nm-nav__link:hover { color: var(--nm-text); background: rgba(0, 212, 255, 0.06); }
.nm-nav__link.is-active { color: var(--nm-cyan-soft); background: linear-gradient(90deg, rgba(0, 212, 255, 0.14), rgba(59, 107, 255, 0.08)); }
.nm-nav__account { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; font-size: 0.8rem; font-weight: 700; color: #fff; background: var(--nm-gradient); border-radius: 999px; text-decoration: none; filter: drop-shadow(0 6px 18px rgba(0, 180, 255, 0.35)); }
.nm-nav__account svg { width: 16px; height: 16px; }

/* Main + footer */
.nc-main { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 34px 24px 60px; }
.nc-foot { border-top: 1px solid var(--nm-border); padding: 22px 24px; text-align: center; font-size: 0.78rem; color: var(--nm-muted); }

/* Hero */
.nc-hero { text-align: center; padding: 44px 16px 36px; }
.nc-hero__title { font-size: 2.2rem; font-weight: 800; margin: 8px 0 14px; background: linear-gradient(90deg, #19D3F3, #3B6BFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nc-hero__sub { max-width: 640px; margin: 0 auto; font-size: 0.95rem; color: var(--nm-muted); line-height: 2; }
.nc-hero__stats { display: flex; justify-content: center; gap: 28px; margin-top: 24px; flex-wrap: wrap; }
.nc-hero__stats span { font-size: 0.8rem; color: var(--nm-muted); }
.nc-hero__stats b { font-size: 1.25rem; font-weight: 800; color: var(--nm-cyan-soft); margin-left: 6px; }

/* Section tiles (hub) */
.nc-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 14px; }
.nc-section { display: grid; gap: 8px; padding: 22px 20px; background: var(--nm-card); border: 1px solid var(--nm-border); border-radius: 18px; text-decoration: none; transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s; }
.nc-section:hover { border-color: var(--nm-cyan-border); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45); }
.nc-section__icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(0, 212, 255, 0.1); color: var(--nm-cyan-soft); }
.nc-section__icon svg { width: 26px; height: 26px; }
.nc-section__title { font-size: 1.05rem; font-weight: 800; }
.nc-section__desc { font-size: 0.8rem; color: var(--nm-muted); line-height: 1.9; }
.nc-section__go { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 700; color: var(--nm-cyan-soft); }
.nc-section__go svg { width: 16px; height: 16px; }

/* List head */
.nc-list-head { margin-bottom: 24px; }
.nc-list-title { font-size: 1.8rem; font-weight: 800; margin: 6px 0 8px; }
.nc-list-desc { font-size: 0.9rem; color: var(--nm-muted); }

/* Card grid */
.nc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.nc-card { display: flex; flex-direction: column; background: var(--nm-card); border: 1px solid var(--nm-border); border-radius: 16px; overflow: hidden; text-decoration: none; transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s; }
.nc-card:hover { border-color: var(--nm-cyan-border); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45); }
.nc-card__cover { position: relative; height: 190px; background-size: cover; background-position: center; background-color: rgba(0, 212, 255, 0.06); }
.nc-card__chip { display: inline-block; padding: 3px 10px; font-size: 0.7rem; font-weight: 700; color: var(--nm-cyan-soft); background: rgba(0, 212, 255, 0.12); border: 1px solid var(--nm-cyan-border); border-radius: 999px; }
.nc-card__cover .nc-card__chip { position: absolute; top: 12px; right: 12px; }
.nc-card__cover .nc-card__progress { position: absolute; bottom: 12px; right: 12px; display: inline-block; padding: 3px 10px; font-size: 0.7rem; font-weight: 700; color: #cdffd8; background: rgba(18, 183, 106, 0.22); border: 1px solid rgba(18, 183, 106, 0.45); border-radius: 999px; }
.nc-chip--plain { color: var(--nm-muted); background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.1); }
.nc-card__play { position: absolute; bottom: 12px; left: 12px; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(0, 0, 0, 0.55); color: var(--nm-cyan-soft); backdrop-filter: blur(6px); }
.nc-card__play svg { width: 20px; height: 20px; }
.nc-card__body { display: grid; gap: 5px; padding: 14px 16px 16px; flex: 1; }
.nc-card__title { margin: 0; font-size: 0.98rem; font-weight: 800; line-height: 1.6; }
.nc-card__author { margin: 0; font-size: 0.76rem; color: var(--nm-muted); }
.nc-card__summary { margin: 0; font-size: 0.78rem; color: var(--nm-muted); line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nc-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.nc-card__price { display: inline-flex; align-items: center; gap: 8px; }
.nc-card__price b { font-size: 0.9rem; font-weight: 800; color: var(--nm-cyan-soft); }
.nc-card__price i { font-style: normal; font-size: 0.7rem; color: var(--nm-muted); }
.nc-card__old { color: var(--nm-muted); font-size: 0.72rem; font-style: normal; }
.nc-card__price-off { font-size: 0.7rem; font-weight: 800; color: var(--nm-danger-text); background: rgba(255, 90, 118, 0.12); border-radius: 999px; padding: 2px 8px; }
.nc-card__free { font-size: 0.82rem; font-weight: 800; color: #6EE7A0; }
.nc-card__views { font-size: 0.7rem; color: var(--nm-muted); }

/* Detail page */
.nc-detail { display: grid; gap: 26px; }
.nc-detail__grid { display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: start; }
.nc-detail__cover { position: sticky; top: 96px; }
.nc-detail__art { height: 420px; border-radius: 18px; background-size: cover; background-position: center; background-color: rgba(0, 212, 255, 0.06); border: 1px solid var(--nm-border); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }
.nc-detail__chips { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.nc-detail__title { margin: 0 0 6px; font-size: 1.9rem; font-weight: 800; line-height: 1.5; }
.nc-detail__author { margin: 0 0 16px; font-size: 0.9rem; color: var(--nm-cyan-soft); }
.nc-detail__summary { font-size: 0.9rem; color: var(--nm-muted); line-height: 2; padding: 14px 16px; background: rgba(0, 212, 255, 0.05); border-right: 3px solid var(--nm-cyan); border-radius: 10px; }
.nc-detail__facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 18px 0; }
.nc-detail__facts dt { font-size: 0.78rem; color: var(--nm-muted); font-weight: 600; }
.nc-detail__facts dd { margin: 0; font-size: 0.86rem; }
.nc-detail__price { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 14px 16px; background: var(--nm-card); border: 1px solid var(--nm-cyan-border); border-radius: 14px; margin-bottom: 16px; }
.nc-detail__price-amount { font-size: 1.35rem; font-weight: 800; color: var(--nm-cyan-soft); }
.nc-detail__price-amount i { font-style: normal; font-size: 0.78rem; color: var(--nm-muted); }
.nc-detail__price-old { font-size: 0.85rem; color: var(--nm-muted); }
.nc-detail__sales { font-size: 0.74rem; color: var(--nm-muted); }
.nc-detail__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.nc-detail__tag { font-size: 0.72rem; color: var(--nm-muted); background: rgba(255, 255, 255, 0.05); padding: 4px 10px; border-radius: 999px; }
.nc-detail__cta { width: auto; display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; font-size: 0.86rem; text-decoration: none; }
.nc-detail__cta svg { width: 18px; height: 18px; }
.nc-detail__audio-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.nc-detail__audio-head svg { width: 22px; height: 22px; color: var(--nm-cyan-soft); }
.nc-detail__audio-head b { font-size: 0.98rem; }
.nc-detail__audio-head span { font-size: 0.76rem; color: var(--nm-muted); }
.nc-detail__body { background: var(--nm-card); border: 1px solid var(--nm-border); border-radius: 18px; padding: 26px 28px; font-size: 0.94rem; line-height: 2.4; text-align: justify; }

/* Audio player */
.nc-audio { width: 100%; margin-top: 4px; filter: drop-shadow(0 8px 20px rgba(0, 180, 255, 0.15)); }
.nc-audio--sm { margin-top: 10px; }

/* Shared content list (library / favorites) */
.np-content-list { display: grid; gap: 14px; }
.np-content-row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px; background: var(--nm-card); border: 1px solid var(--nm-border); border-radius: 16px; }
.np-content-row__art { position: relative; height: 150px; border-radius: 12px; background-size: cover; background-position: center; background-color: rgba(0, 212, 255, 0.06); display: block; }
.np-content-row__kind { position: absolute; top: 8px; right: 8px; font-size: 0.66rem; font-weight: 700; color: var(--nm-cyan-soft); background: rgba(5, 11, 24, 0.7); padding: 2px 8px; border-radius: 999px; }
.np-content-row__main { display: grid; gap: 7px; min-width: 0; }
.np-content-row__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.np-content-row__title { font-size: 0.98rem; font-weight: 800; text-decoration: none; line-height: 1.6; }
.np-content-row__title:hover { color: var(--nm-cyan-soft); }
.np-content-row__author { margin: 0; font-size: 0.8rem; color: var(--nm-muted); }
.np-content-row__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.np-link { display: inline-flex; align-items: center; gap: 5px; font-size: 0.78rem; font-weight: 700; color: var(--nm-cyan-soft); text-decoration: none; }
.np-link svg { width: 15px; height: 15px; }
.np-link--button { border: 1px solid var(--nm-cyan-border); background: rgba(0, 212, 255, 0.08); border-radius: 999px; padding: 7px 14px; }
.np-link--button:hover { background: rgba(0, 212, 255, 0.16); }
.np-link--cta { border: 1px solid var(--nm-cyan-border); background: rgba(0, 212, 255, 0.1); border-radius: 999px; padding: 7px 15px; color: var(--nm-cyan-soft); }
.np-link--cta:hover { background: rgba(0, 212, 255, 0.2); }

/* Library filter tabs (همه / در حال مطالعه / تکمیل‌شده / اخیراً مشاهده‌شده) */
.np-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.np-filter__tab { font-size: 0.76rem; font-weight: 700; color: var(--nm-muted); background: var(--nm-card); border: 1px solid var(--nm-border); border-radius: 999px; padding: 7px 15px; text-decoration: none; transition: border-color 0.15s, color 0.15s; }
.np-filter__tab:hover { color: var(--nm-cyan-soft); border-color: var(--nm-cyan-border); }
.np-filter__tab--on { color: var(--nm-cyan-soft); border-color: var(--nm-cyan-border); background: rgba(0, 212, 255, 0.12); }

/* Real reading progress in library rows */
.np-progress { display: grid; gap: 5px; margin-top: 2px; }
.np-progress__bar { display: block; height: 6px; border-radius: 999px; background: rgba(0, 212, 255, 0.12); overflow: hidden; }
.np-progress__bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(135deg, #19D3F3 0%, #3B6BFF 100%); }
.np-progress__meta { font-size: 0.7rem; color: var(--nm-muted); }

/* Dashboard block heads */
.np-block-head { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 10px; }
.np-block-head h2 { margin: 0; font-size: 1rem; font-weight: 800; }
.np-block-head a { display: inline-flex; align-items: center; gap: 4px; font-size: 0.76rem; color: var(--nm-muted); text-decoration: none; }
.np-block-head a svg { width: 14px; height: 14px; }
.np-block-head a:hover { color: var(--nm-cyan-soft); }

/* Notifications */
.np-notif-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-right: auto;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  color: #0b1220;
  background: linear-gradient(135deg, #19D3F3, #3B6BFF);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(25, 211, 243, 0.45);
}
.np-nav__item .np-notif-badge { margin-right: auto; }
.np-topbar__bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--nm-muted);
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
}
.np-topbar__bell:hover { color: var(--nm-text); background: rgba(0, 212, 255, 0.06); }
.np-topbar__bell svg { width: 18px; height: 18px; }
.np-topbar__bell .np-notif-badge { position: absolute; top: -5px; inset-inline-end: -5px; min-width: 17px; height: 17px; padding: 0 4px; font-size: 0.62rem; margin: 0; }

.np-notifs { display: grid; gap: 10px; }
.np-notif {
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 0;
  background: var(--nm-card);
  border: 1px solid var(--nm-border);
  border-radius: 14px;
  overflow: hidden;
}
.np-notif--unread { border-color: var(--nm-cyan-border); background: rgba(0, 212, 255, 0.05); }
.np-notif__link {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex: 1;
  padding: 14px 16px;
  color: inherit;
  text-decoration: none;
}
.np-notif__icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(0, 212, 255, 0.08);
  color: var(--nm-cyan-soft);
}
.np-notif__icon svg { width: 20px; height: 20px; }
.np-notif--payment .np-notif__icon { background: rgba(52, 211, 153, 0.1); color: #6EE7A0; }
.np-notif--payment-failed .np-notif__icon { background: rgba(255, 90, 118, 0.1); color: var(--nm-danger-text); }
.np-notif--library .np-notif__icon { background: rgba(59, 107, 255, 0.12); color: #8FA8FF; }
.np-notif__body { display: grid; gap: 4px; align-content: center; flex: 1; min-width: 0; }
.np-notif__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.np-notif__head b { font-size: 0.9rem; }
.np-notif__chip { display: inline-flex; align-items: center; gap: 4px; font-size: 0.66rem; font-weight: 700; color: var(--nm-cyan-soft); background: rgba(0, 212, 255, 0.08); border: 1px solid rgba(0, 212, 255, 0.2); padding: 2px 8px; border-radius: 999px; }
.np-notif__chip svg { width: 11px; height: 11px; }
.np-notif__msg { font-size: 0.82rem; color: var(--nm-muted); line-height: 1.9; }
.np-notif__meta { display: flex; align-items: center; gap: 8px; font-size: 0.7rem; color: var(--nm-muted); }
.np-notif__dot { width: 7px; height: 7px; border-radius: 50%; background: #19D3F3; box-shadow: 0 0 8px rgba(25, 211, 243, 0.7); }
.np-notif__side { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px 12px; border-inline-start: 1px solid rgba(255, 255, 255, 0.05); }
.np-notif__read-btn { padding: 4px 10px; font-size: 0.68rem; font-weight: 700; color: var(--nm-cyan-soft); background: rgba(0, 212, 255, 0.08); border: 1px solid rgba(0, 212, 255, 0.22); border-radius: 999px; cursor: pointer; font-family: inherit; }
.np-notif__read-btn:hover { background: rgba(0, 212, 255, 0.16); }
.np-notifs-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }

.np-tabs { display: inline-flex; gap: 6px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--nm-border); border-radius: 999px; padding: 4px; }
.np-tabs a { padding: 6px 14px; font-size: 0.78rem; font-weight: 700; color: var(--nm-muted); text-decoration: none; border-radius: 999px; }
.np-tabs a.is-active { color: #0b1220; background: linear-gradient(135deg, #19D3F3, #3B6BFF); }
.np-notifs-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; font-size: 0.78rem; color: var(--nm-muted); }
.np-notifs-pager nav { display: flex; gap: 6px; }
.np-notifs-pager a, .np-notifs-pager b { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--nm-border); font-size: 0.76rem; font-weight: 700; color: var(--nm-muted); text-decoration: none; }
.np-notifs-pager b { color: #0b1220; background: linear-gradient(135deg, #19D3F3, #3B6BFF); border-color: transparent; }
.np-notifs-pager a:hover { color: var(--nm-cyan-soft); border-color: var(--nm-cyan-border); }

/* Timeline (activity) */
.np-timeline { display: grid; gap: 2px; }
.np-timeline__row { display: flex; gap: 14px; padding: 12px 4px; }
.np-timeline__icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(0, 212, 255, 0.08); color: var(--nm-cyan-soft); flex-shrink: 0; }
.np-timeline__icon svg { width: 21px; height: 21px; }
.np-timeline__body { display: grid; gap: 3px; }
.np-timeline__body b { font-size: 0.88rem; }
.np-timeline__body small { font-size: 0.72rem; color: var(--nm-muted); }

/* Form grid (profile edit) */
.np-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Order detail */
.np-info__subtitle { margin: 20px 0 10px; font-size: 0.95rem; font-weight: 800; }
.np-info__items { display: grid; gap: 8px; }
.np-info__item { display: grid; grid-template-columns: max-content 1fr max-content max-content; gap: 14px; align-items: center; padding: 10px 12px; background: rgba(255, 255, 255, 0.03); border-radius: 10px; font-size: 0.84rem; }
.np-order-row__date { display: block; margin-top: 4px; font-size: 0.72rem; color: var(--nm-muted); }

.badge--danger, .np-badge--danger { color: var(--nm-danger-text); background: rgba(255, 90, 118, 0.1); border-color: rgba(255, 90, 118, 0.4); }

/* Ticket thread */
.np-ticket-msg { padding: 14px 16px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--nm-border); border-radius: 12px; font-size: 0.86rem; line-height: 2; margin-bottom: 18px; }
.np-replies { display: grid; gap: 10px; margin-bottom: 18px; }
.np-reply { max-width: 82%; padding: 12px 14px; border-radius: 14px; font-size: 0.85rem; line-height: 2; }
.np-reply--mine { justify-self: start; background: rgba(0, 212, 255, 0.06); border: 1px solid var(--nm-cyan-border); border-top-right-radius: 4px; }
.np-reply--admin { justify-self: end; background: var(--nm-card); border: 1px solid var(--nm-border); border-top-left-radius: 4px; }
.np-reply__head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.np-reply__head b { font-size: 0.8rem; }
.np-reply__head small { font-size: 0.68rem; color: var(--nm-muted); }
.np-reply p { margin: 0; }

/* ?? Responsive � catalog + list rows ??????????????????????????????? */
@media (max-width: 900px) {
  .nm-nav__links { display: none; }
  .nm-nav__inner { justify-content: space-between; }
  .nc-hero__title { font-size: 1.6rem; }
  .nc-hero { padding: 28px 8px; }
  .nc-detail__grid { grid-template-columns: 1fr; }
  .nc-detail__cover { position: static; }
  .nc-detail__art { height: 260px; }
  .np-form-grid { grid-template-columns: 1fr; }
  .np-content-row { grid-template-columns: 90px 1fr; gap: 12px; }
  .np-content-row__art { height: 118px; }
  .nc-detail__body { padding: 18px 16px; }
}

@media (max-width: 560px) {
  .nc-main { padding: 24px 14px 44px; }
  .nc-hero__stats { gap: 16px; }
  .np-info__item { grid-template-columns: 1fr; gap: 6px; }
  .np-reply { max-width: 94%; }
}

/* ── Cart, checkout & gateway (storefront) ─────────────────────────── */
.nc-page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.nc-page-head h1 { font-size: 1.3rem; margin: 0; }
.nc-page-head span { color: var(--nm-muted); font-size: 0.82rem; }
.nc-cart { display: grid; gap: 18px; max-width: 780px; }
.nc-cart__empty { text-align: center; padding: 34px 0; display: grid; gap: 14px; justify-items: center; color: var(--nm-muted); }
.nc-cart__empty p { margin: 0; }
.nc-cart__list { display: grid; gap: 12px; }
.nc-cart__row { display: grid; grid-template-columns: 64px 1fr max-content max-content; gap: 16px; align-items: center; padding: 14px; background: var(--nm-card); border: 1px solid var(--nm-border); border-radius: 14px; }
.nc-cart__art { width: 64px; height: 84px; border-radius: 8px; background: rgba(255,255,255,0.05) center/cover no-repeat; }
.nc-cart__main { display: grid; gap: 3px; min-width: 0; }
.nc-cart__title { font-size: 0.92rem; font-weight: 700; color: var(--nm-text); text-decoration: none; }
.nc-cart__meta { font-size: 0.74rem; color: var(--nm-muted); }
.nc-cart__old { color: var(--nm-muted); font-size: 0.72rem; }
.nc-cart__discount { font-size: 0.72rem; font-weight: 700; color: var(--nm-cyan-soft); }
.nc-cart__coupon { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; background: rgba(14, 165, 233, 0.08); border: 1px dashed var(--nm-cyan-border); border-radius: 10px; font-size: 0.8rem; }
.nc-cart__coupon-code { font-size: 0.8rem; color: var(--nm-cyan-soft); font-weight: 800; letter-spacing: 0.03em; }
.nc-cart__coupon-save { color: var(--nm-muted); font-size: 0.74rem; }
.nc-cart__coupon-form { display: grid; grid-template-columns: 1fr max-content; gap: 6px; }
.nc-cart__coupon-form input { padding: 8px 12px; background: rgba(255,255,255,0.04); color: var(--nm-text); border: 1px solid var(--nm-border); border-radius: 10px; font-family: inherit; font-size: 0.82rem; letter-spacing: 0.05em; }
.nc-cart__price { color: var(--nm-cyan-soft); font-size: 0.9rem; }
.nc-cart__price--free, .nc-cart__free { color: #6EE7A0; font-weight: 800; }
.nc-cart__price i, .nc-cart__old { font-style: normal; }
.nc-cart__qty { display: flex; gap: 6px; align-items: center; }
.nc-cart__qty-input { width: 64px; padding: 8px 10px; background: rgba(255,255,255,0.04); color: var(--nm-text); border: 1px solid var(--nm-border); border-radius: 10px; font-family: inherit; }
.nm-btn--small { width: auto; padding: 8px 14px; font-size: 0.78rem; border-radius: 999px; }
.nc-cart__summary { background: var(--nm-card); border: 1px solid var(--nm-border); border-radius: 14px; padding: 16px; display: grid; gap: 10px; align-content: start; }
.nc-cart__summary h3 { margin: 0 0 6px; font-size: 0.95rem; }
.nc-cart__line { display: flex; align-items: center; justify-content: space-between; font-size: 0.84rem; }
.nc-cart__line--discount b { color: var(--nm-cyan-soft); }
.nc-cart__line--total { padding-top: 10px; border-top: 1px solid var(--nm-border); font-size: 1rem; font-weight: 700; }
.nc-cart__line--total b { color: var(--nm-cyan-soft); }
.nc-cart__line i { font-style: normal; }
.nc-cart__safe { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.72rem; color: var(--nm-muted); text-align: center; }
.nc-cart__safe svg { width: 15px; height: 15px; }

.nc-checkout__items { display: grid; gap: 10px; }
.nc-checkout__row { display: grid; grid-template-columns: 1fr max-content; gap: 12px; align-items: center; padding: 12px 14px; background: var(--nm-card); border: 1px solid var(--nm-border); border-radius: 12px; font-size: 0.86rem; }

.nm-nav__account-group { display: flex; align-items: center; gap: 10px; }
.nm-nav__cart { display: inline-flex; align-items: center; gap: 8px; color: var(--nm-muted); text-decoration: none; font-size: 0.84rem; padding: 8px 14px; border: 1px solid var(--nm-border); border-radius: 999px; transition: border-color 0.18s, color 0.18s; }
.nm-nav__cart:hover { color: var(--nm-text); border-color: var(--nm-cyan-border); }
.nm-nav__cart svg { width: 18px; height: 18px; }
.nm-nav__badge { min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--nm-gradient); color: #fff; font-size: 0.7rem; font-style: normal; }

.nc-gateway { max-width: 520px; margin: 0 auto; }
.nc-gateway__card { display: grid; gap: 16px; padding: 26px; background: var(--nm-card); border: 1px solid var(--nm-border); border-radius: 18px; }
.nc-gateway__brand { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 800; color: var(--nm-cyan-soft); }
.nc-gateway__brand svg { width: 18px; height: 18px; }
.nc-gateway__rows { display: grid; gap: 10px; border-top: 1px solid var(--nm-border); padding-top: 14px; }
.nc-gateway__rows > div { display: flex; align-items: center; justify-content: space-between; font-size: 0.88rem; }
.nc-gateway__rows span { color: var(--nm-muted); }
.nc-gateway__amount { color: var(--nm-cyan-soft); font-size: 1.05rem; }
.nc-gateway__amount i { font-style: normal; }
.nc-gateway__actions { display: grid; gap: 10px; }
.nc-gateway__hint { font-size: 0.72rem; color: var(--nm-muted); text-align: center; margin: 0; }
.nc-gateway--result .nc-gateway__card { text-align: center; justify-items: center; }
.nc-gateway--result h1 { margin: 0; font-size: 1.25rem; }
.nc-gateway--result p { margin: 0; color: var(--nm-muted); font-size: 0.88rem; line-height: 2; }
.nc-gateway__icon { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; }
.nc-gateway--result .is-ok .nc-gateway__icon { background: rgba(52,211,153,0.12); color: #6EE7A0; }
.nc-gateway--result .is-fail .nc-gateway__icon { background: rgba(255,90,118,0.12); color: var(--nm-danger-text); }
.nc-gateway__icon svg { width: 30px; height: 30px; }

.nc-detail__cart { margin-top: 18px; }
.nc-detail__cart .nc-detail__cta { width: 100%; }

/* Reader learning tools (bookmarks / notes inline in panel rows) */
.np-activity-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 0.8rem; }
.np-activity-inline__icon { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(0, 212, 255, 0.08); color: var(--nm-cyan-soft); flex-shrink: 0; }
.np-activity-inline__icon svg { width: 14px; height: 14px; }
.np-activity-inline__text { color: var(--nm-cyan-soft); font-weight: 700; }
.np-activity-inline__quote { color: var(--nm-muted); font-size: 0.8rem; line-height: 1.8; border-inline-start: 3px solid var(--nm-border); padding-inline-start: 10px; }

.np-note-card { display: grid; gap: 8px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--nm-border); border-radius: 12px; padding: 14px 16px; }
.np-note-card__quote { margin: 0; font-size: 0.78rem; color: var(--nm-muted); border-inline-start: 3px solid var(--nm-cyan-border); padding-inline-start: 10px; line-height: 1.9; }
.np-note-card__body { margin: 0; font-size: 0.9rem; line-height: 2.1; white-space: pre-wrap; }
.np-note-card__when { font-size: 0.7rem; color: var(--nm-muted); }

@media (max-width: 700px) {
  .nc-cart__row { grid-template-columns: 52px 1fr; }
  .nc-cart__row .nc-cart__qty, .nc-cart__row > form:last-child { grid-column: 2; justify-self: start; }
  .nm-nav__account-group { gap: 6px; }
  .nm-nav__cart span { display: none; }
}

/* ── Reviews & ratings ──────────────────────────────────────────────── */
.nc-review { margin-top: 26px; display: grid; gap: 18px; }
.nc-review__head { display: grid; gap: 10px; }
.nc-review__head-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nc-review__title { margin: 0; font-size: 1.15rem; font-weight: 800; }
.nc-review__avg { display: inline-flex; align-items: center; gap: 8px; font-size: 0.84rem; color: var(--nm-muted); }
.nc-review__avg b { font-size: 1rem; color: var(--nm-text); }
.nc-review-stars { display: inline-flex; align-items: center; gap: 2px; }
.nc-star { display: inline-grid; place-items: center; color: rgba(255, 255, 255, 0.18); }
.nc-star svg { width: 18px; height: 18px; }
.nc-star--on { color: #fbbf24; }
.nc-review__avg .nc-star svg { width: 16px; height: 16px; }
.nc-review-stars--sm .nc-star svg { width: 15px; height: 15px; }

.nc-review__summary { display: grid; gap: 8px; padding: 16px 18px; background: var(--nm-card); border: 1px solid var(--nm-border); border-radius: 16px; }
.nc-review__bar { display: grid; grid-template-columns: 64px 1fr 34px; align-items: center; gap: 10px; font-size: 0.76rem; color: var(--nm-muted); }
.nc-review__bar-track { height: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.nc-review__bar-track i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.nc-review__bar-count { text-align: left; }

.nc-review__flash { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; font-size: 0.84rem; line-height: 1.8; background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.35); color: #6EE7A0; }
.nc-review__flash--err { background: rgba(255, 90, 118, 0.1); border-color: rgba(255, 90, 118, 0.4); color: var(--nm-danger-text); }
.nc-review__flash svg { width: 18px; height: 18px; flex-shrink: 0; }

.nc-review__panel { display: grid; gap: 14px; padding: 18px; background: var(--nm-card); border: 1px solid var(--nm-border); border-radius: 16px; }
.nc-review__form { display: grid; gap: 12px; }
.nc-review__picker { display: flex; gap: 4px; border: none; padding: 0; margin: 0; }
.nc-review__picker button { display: inline-grid; place-items: center; padding: 4px; background: none; border: none; cursor: pointer; color: rgba(255, 255, 255, 0.18); transition: color 0.15s, transform 0.15s; }
.nc-review__picker button:hover { color: #fbbf24; transform: translateY(-2px); }
.nc-review__picker button.is-on { color: #fbbf24; }
.nc-review__picker button svg { width: 26px; height: 26px; }
.nc-review__form input[type="text"] { padding: 10px 14px; background: rgba(255, 255, 255, 0.04); color: var(--nm-text); border: 1px solid var(--nm-border); border-radius: 10px; font-family: inherit; font-size: 0.86rem; }
.nc-review__form textarea { min-height: 110px; resize: vertical; padding: 12px 14px; background: rgba(255, 255, 255, 0.04); color: var(--nm-text); border: 1px solid var(--nm-border); border-radius: 10px; font-family: inherit; font-size: 0.86rem; line-height: 2; }
.nc-review__form input:focus, .nc-review__form textarea:focus { border-color: var(--nm-cyan-border); outline: none; }
.nc-review__submit { justify-self: start; }

.nc-review__mine { display: grid; gap: 8px; }
.nc-review__mine-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.nc-review__mine-note { margin: 0; font-size: 0.78rem; color: var(--nm-muted); border-inline-start: 3px solid var(--nm-danger-border, rgba(255, 90, 118, 0.5)); padding-inline-start: 10px; line-height: 1.9; }
.nc-review__mine-title { margin: 0; font-size: 0.95rem; font-weight: 700; }
.nc-review__mine-body { margin: 0; font-size: 0.86rem; line-height: 2.1; color: var(--nm-muted); }
.nc-review__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.nc-review__ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.nc-review__cta-outline { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; font-size: 0.84rem; font-weight: 700; color: var(--nm-cyan-soft); background: rgba(0, 212, 255, 0.06); border: 1px solid var(--nm-cyan-border); border-radius: 999px; text-decoration: none; transition: background 0.18s; }
.nc-review__cta-outline:hover { background: rgba(0, 212, 255, 0.12); }
.nc-review__cta-outline svg { width: 16px; height: 16px; }

.nc-review__list { display: grid; gap: 12px; }
.nc-review__item { display: grid; gap: 8px; padding: 16px 18px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--nm-border); border-radius: 14px; }
.nc-review__item-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nc-review__item-author { font-size: 0.82rem; font-weight: 700; }
.nc-review__item-date { font-size: 0.72rem; color: var(--nm-muted); }
.nc-review__item-title { margin: 0; font-size: 0.95rem; font-weight: 700; }
.nc-review__item-body { margin: 0; font-size: 0.86rem; line-height: 2.1; color: var(--nm-muted); white-space: pre-wrap; }

.np-reviews { display: grid; gap: 14px; }
.np-review-card { display: grid; gap: 10px; padding: 16px 18px; background: var(--nm-card); border: 1px solid var(--nm-border); border-radius: 16px; }
.np-review-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.np-review-card__title { font-size: 0.95rem; font-weight: 700; }
.np-review-card__kind { display: block; margin-top: 4px; font-size: 0.76rem; color: var(--nm-muted); }
.np-review-card__kind a { color: var(--nm-cyan-soft); text-decoration: none; }
.np-review-card__heading { margin: 0; font-size: 0.95rem; font-weight: 700; }
.np-review-card__body { margin: 0; font-size: 0.86rem; line-height: 2.1; color: var(--nm-muted); white-space: pre-wrap; }
.np-review-card__foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--nm-border); padding-top: 10px; }
.np-review-card__date { font-size: 0.72rem; color: var(--nm-muted); }
.np-review-card__note { font-size: 0.76rem; color: var(--nm-danger-text); }
.np-review-card__pending { font-size: 0.76rem; color: var(--nm-muted); }

@media (max-width: 700px) {
  .nc-review__bar { grid-template-columns: 56px 1fr 28px; }
  .nc-review__head-row { gap: 8px; }
}

/* Touch devices toggle :hover while a finger drags across the grid — every
   card the finger crosses flipped translateY mid-scroll and the whole grid
   visibly "shook". Lift transforms are kept for real pointers only. */
@media (hover: none) {
  .nc-section:hover,
  .nc-card:hover,
  .np-tile:hover,
  .np-order-row:hover { transform: none; }
}
