/* =====================================================================
   Namidor — public site styles
   Brand: graphite #2D383A + amber #FAA41A (from the logo)
   Type:  Sora (display) · Instrument Sans (text)
   ===================================================================== */

:root {
  --nm-ink: #2D383A;          /* graphite — logo wordmark */
  --nm-ink-2: #3D4A4C;
  --nm-ink-soft: #5B6769;     /* secondary text (AA on paper) */
  --nm-amber: #FAA41A;        /* logo pointer — fills only, text on it is ink */
  --nm-amber-deep: #A86400;   /* amber for text/icons on light (AA) */
  --nm-amber-wash: #FFF3DD;
  --nm-paper: #F5F6F4;        /* page background, cool off-white */
  --nm-surface: #FFFFFF;
  --nm-line: #DDE2E0;
  --nm-line-strong: #C4CCCA;
  --nm-mist: #E9EDEB;
  --nm-ok: #23735A;
  --nm-ok-wash: #E3F2EC;
  --nm-danger: #B3372E;

  --nm-font-display: 'Sora', system-ui, sans-serif;
  --nm-font-text: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --nm-r-sm: 8px;
  --nm-r: 14px;
  --nm-r-lg: 22px;
  --nm-pill: 999px;
  --nm-shadow-pop: 0 18px 40px -18px rgba(45, 56, 58, .45);

  --bs-body-font-family: var(--nm-font-text);
  --bs-body-color: var(--nm-ink);
  --bs-body-bg: var(--nm-paper);
  --bs-link-color: var(--nm-ink);
  --bs-link-color-rgb: 45, 56, 58;
  --bs-link-hover-color: var(--nm-amber-deep);
  --bs-link-hover-color-rgb: 168, 100, 0;
  --bs-border-color: var(--nm-line);
  --bs-primary: var(--nm-ink);
  --bs-primary-rgb: 45, 56, 58;
  --bs-focus-ring-color: rgba(250, 164, 26, .45);
}

html { scroll-padding-top: 90px; }
body {
  font-family: var(--nm-font-text);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--nm-ink);
  background: var(--nm-paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .nm-display { font-family: var(--nm-font-display); letter-spacing: -0.02em; color: var(--nm-ink); }
h1, .h1 { font-size: clamp(1.95rem, 1.4rem + 2.2vw, 3.05rem); font-weight: 700; line-height: 1.12; }
h2, .h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.95rem); font-weight: 700; line-height: 1.2; }
h3, .h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
h4, .h4 { font-size: 1.05rem; font-weight: 600; }
p { max-width: 72ch; }
.lead { font-size: 1.15rem; color: var(--nm-ink-soft); }
.text-soft { color: var(--nm-ink-soft) !important; }
.text-amber { color: var(--nm-amber-deep) !important; }
.small, small { font-size: .875rem; }

a { text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--nm-amber); outline-offset: 2px; border-radius: 4px; }

.container-nm { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container-nm { padding: 0 28px; } }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 2000; background: var(--nm-amber); color: var(--nm-ink); padding: 8px 14px; border-radius: var(--nm-r-sm); font-weight: 600; }
.skip-link:focus { left: 8px; }

/* ---------------------------------------------------------------- buttons */
.btn { font-weight: 600; border-radius: var(--nm-pill); padding: .6rem 1.25rem; }
.btn-sm { padding: .35rem .9rem; }
.btn-lg { padding: .8rem 1.6rem; font-size: 1.05rem; }
.btn-amber { background: var(--nm-amber); color: var(--nm-ink); border: 2px solid var(--nm-amber); }
.btn-amber:hover, .btn-amber:focus { background: #F09400; border-color: #F09400; color: var(--nm-ink); }
.btn-ink { background: var(--nm-ink); color: #fff; border: 2px solid var(--nm-ink); }
.btn-ink:hover, .btn-ink:focus { background: #1F2729; border-color: #1F2729; color: #fff; }
.btn-line { background: transparent; color: var(--nm-ink); border: 2px solid var(--nm-line-strong); }
.btn-line:hover, .btn-line:focus { border-color: var(--nm-ink); color: var(--nm-ink); background: var(--nm-mist); }
.btn-ghost { background: transparent; border: 0; color: var(--nm-ink); }
.btn-ghost:hover { background: var(--nm-mist); }
.btn-link { color: var(--nm-ink); font-weight: 600; }

/* ---------------------------------------------------------------- header */
.nm-header { background: var(--nm-surface); border-bottom: 1px solid var(--nm-line); position: sticky; top: 0; z-index: 1030; }
.nm-header .bar { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.nm-logo img { height: 34px; width: auto; display: block; }
.nm-nav { display: flex; gap: 4px; align-items: center; }
.nm-nav > a, .nm-nav > .dropdown > button {
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--nm-r-sm);
  font-weight: 600; font-size: .95rem; color: var(--nm-ink); text-decoration: none; background: none; border: 0;
}
.nm-nav > a:hover, .nm-nav > .dropdown > button:hover { background: var(--nm-mist); }
/* Active nav item: the logo's notch */
.nm-nav > a.active::after {
  content: ''; position: absolute; left: 50%; bottom: -15px; transform: translateX(-50%);
  border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 8px solid var(--nm-amber);
}
.nm-header-search { flex: 1; max-width: 420px; margin-left: auto; position: relative; }
.nm-header-search input {
  width: 100%; height: 44px; border-radius: var(--nm-pill); border: 2px solid var(--nm-line); background: var(--nm-paper);
  padding: 0 44px 0 18px; font-size: .95rem; color: var(--nm-ink);
}
.nm-header-search input:focus { outline: none; border-color: var(--nm-ink); background: #fff; }
.nm-header-search button { position: absolute; right: 6px; top: 6px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--nm-ink); color: #fff; }
.nm-header-tools { display: flex; align-items: center; gap: 6px; }
.nm-currency-btn { font-weight: 600; font-size: .9rem; }
.mega-menu { width: min(860px, 92vw); padding: 24px; border: 1px solid var(--nm-line); border-radius: var(--nm-r-lg); box-shadow: var(--nm-shadow-pop); }
.mega-menu .mega-col h6 { font-family: var(--nm-font-display); font-size: .95rem; margin: 0 0 8px; }
.mega-menu .mega-col h6 a { text-decoration: none; display: flex; gap: 8px; align-items: center; }
.mega-menu .mega-col ul { list-style: none; padding: 0; margin: 0; }
.mega-menu .mega-col li a { display: block; padding: 3px 0; color: var(--nm-ink-soft); text-decoration: none; font-size: .92rem; }
.mega-menu .mega-col li a:hover { color: var(--nm-ink); text-decoration: underline; }
.dropdown-menu { border-color: var(--nm-line); border-radius: var(--nm-r); box-shadow: var(--nm-shadow-pop); }
.dropdown-item.active, .dropdown-item:active { background: var(--nm-amber-wash); color: var(--nm-ink); }

@media (max-width: 991.98px) {
  .nm-nav, .nm-header-search { display: none; }
  .nm-header .bar { min-height: 64px; }
}
.offcanvas .nm-mobile-nav a { display: block; padding: 10px 0; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--nm-line); }

/* ---------------------------------------------------------------- hero + signature search bar */
.nm-hero { padding: 64px 0 40px; background: var(--nm-surface); border-bottom: 1px solid var(--nm-line); }
.nm-hero h1 { max-width: 16ch; font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.9rem); }
.nm-hero .lead { margin-top: 14px; }

.nm-searchbar { position: relative; margin-top: 36px; max-width: 920px; }
.nm-searchbar form {
  display: flex; align-items: center; gap: 8px; background: var(--nm-ink); border-radius: var(--nm-pill);
  padding: 10px 10px 10px 28px; min-height: 76px;
}
.nm-searchbar .bi-search { color: #9AA6A8; font-size: 1.25rem; }
.nm-searchbar input {
  flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font-size: 1.15rem; font-family: var(--nm-font-text); padding: 10px 4px;
}
.nm-searchbar input::placeholder { color: #A9B4B5; }
.nm-searchbar input:focus { outline: none; }
.nm-searchbar form:focus-within { box-shadow: 0 0 0 4px rgba(250, 164, 26, .35); }
.nm-searchbar select {
  background: #3A4648; color: #fff; border: 0; border-radius: var(--nm-pill); padding: 12px 34px 12px 16px; font-weight: 600; font-size: .92rem;
  appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.nm-searchbar .btn-amber { padding: 14px 28px; font-size: 1.02rem; }
/* the notch — drops a little when the search is in use */
.nm-searchbar::after {
  content: ''; position: absolute; left: 46%; top: 100%;
  border-left: 22px solid transparent; border-right: 22px solid transparent; border-top: 24px solid var(--nm-amber);
  transform: translateY(-1px); transition: transform .25s ease;
}
.nm-searchbar:focus-within::after { transform: translateY(5px); }
.nm-suggest { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nm-suggest span { color: var(--nm-ink-soft); font-size: .92rem; margin-right: 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--nm-pill); border: 1.5px solid var(--nm-line-strong);
  background: var(--nm-surface); color: var(--nm-ink); text-decoration: none; font-size: .9rem; font-weight: 500; line-height: 1.3;
}
.chip:hover { border-color: var(--nm-ink); color: var(--nm-ink); }
.chip.is-on { background: var(--nm-ink); border-color: var(--nm-ink); color: #fff; }
@media (max-width: 767.98px) {
  .nm-hero { padding: 40px 0 28px; }
  .nm-searchbar form { flex-wrap: wrap; border-radius: 26px; padding: 14px; min-height: 0; }
  .nm-searchbar .bi-search { display: none; }
  .nm-searchbar input { flex-basis: 100%; padding: 6px 8px; }
  .nm-searchbar select { flex: 1; }
  .nm-searchbar::after { border-left-width: 16px; border-right-width: 16px; border-top-width: 18px; }
}

/* search autocomplete */
.nm-ac { position: absolute; left: 0; right: 0; top: calc(100% + 30px); z-index: 50; background: #fff; border: 1px solid var(--nm-line); border-radius: var(--nm-r); box-shadow: var(--nm-shadow-pop); overflow: hidden; display: none; }
.nm-header-search .nm-ac { top: calc(100% + 8px); }
.nm-ac.show { display: block; }
.nm-ac a { display: flex; gap: 12px; align-items: center; padding: 10px 14px; text-decoration: none; color: var(--nm-ink); }
.nm-ac a:hover, .nm-ac a.is-active { background: var(--nm-paper); }
.nm-ac img { width: 34px; height: 34px; border-radius: 9px; }
.nm-ac .ac-all { justify-content: center; font-weight: 600; border-top: 1px solid var(--nm-line); }

/* ---------------------------------------------------------------- sections */
.nm-section { padding: 56px 0; }
.nm-section + .nm-section { padding-top: 8px; }
.nm-section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.nm-section-head h2 { margin: 0; }
.nm-section-head p { margin: 6px 0 0; color: var(--nm-ink-soft); }
.nm-section-head .see-all { font-weight: 600; white-space: nowrap; text-decoration: none; }
.nm-section-head .see-all:hover { text-decoration: underline; }
.nm-band { background: var(--nm-surface); border-top: 1px solid var(--nm-line); border-bottom: 1px solid var(--nm-line); }

/* category strip on home */
.cat-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--nm-line); border-radius: var(--nm-r-lg); background: #fff; overflow: hidden; }
.cat-strip a { padding: 22px 20px; text-decoration: none; color: var(--nm-ink); border-right: 1px solid var(--nm-line); display: flex; flex-direction: column; gap: 6px; }
.cat-strip a:last-child { border-right: 0; }
.cat-strip a:hover { background: var(--nm-paper); }
.cat-strip i { font-size: 1.6rem; color: var(--nm-ink); }
.cat-strip strong { font-family: var(--nm-font-display); font-size: 1.02rem; }
.cat-strip span { color: var(--nm-ink-soft); font-size: .85rem; }
@media (max-width: 991.98px) { .cat-strip { grid-template-columns: repeat(2, 1fr); } .cat-strip a { border-bottom: 1px solid var(--nm-line); } .cat-strip a:nth-child(2n) { border-right: 0; } }
@media (max-width: 575.98px) { .cat-strip { grid-template-columns: 1fr; } .cat-strip a { border-right: 0; } }

/* ---------------------------------------------------------------- software tile (grid) */
.sw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.sw-tile {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 18px; background: #fff;
  border: 1.5px solid var(--nm-line); border-radius: var(--nm-r); color: var(--nm-ink); text-decoration: none; height: 100%;
}
.sw-tile:hover { border-color: var(--nm-ink); color: var(--nm-ink); }
.sw-tile .top { display: flex; gap: 12px; align-items: flex-start; }
.sw-icon { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex-shrink: 0; background: var(--nm-mist); }
.sw-icon.lg { width: 96px; height: 96px; border-radius: 22px; }
.sw-icon.sm { width: 40px; height: 40px; border-radius: 10px; }
.sw-tile .name { font-family: var(--nm-font-display); font-weight: 600; font-size: 1.02rem; line-height: 1.25; margin: 2px 0 2px; }
.sw-tile .pub { font-size: .82rem; color: var(--nm-ink-soft); display: flex; align-items: center; gap: 4px; }
.sw-tile .tagline { font-size: .9rem; color: var(--nm-ink-soft); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sw-tile .meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px dashed var(--nm-line); }
.sw-tile .stretched-link::after { border-radius: var(--nm-r); }
.verified { color: var(--nm-ok); }
.plat-icons { display: inline-flex; gap: 6px; color: var(--nm-ink-soft); font-size: .95rem; }

/* price + badges */
.price-tag { font-weight: 700; font-size: .85rem; padding: 3px 10px; border-radius: var(--nm-pill); white-space: nowrap; border: 1.5px solid var(--nm-ink); color: var(--nm-ink); background: #fff; }
.price-tag.is-free { background: var(--nm-amber); border-color: var(--nm-amber); }
.badge-nm { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: var(--nm-pill); background: var(--nm-mist); color: var(--nm-ink); line-height: 1.4; }
.badge-nm.ok { background: var(--nm-ok-wash); color: var(--nm-ok); }
.badge-nm.amber { background: var(--nm-amber-wash); color: #7A4A00; }
.badge-nm.ink { background: var(--nm-ink); color: #fff; }
.badge-nm.sponsored { background: #fff; border: 1px solid var(--nm-line-strong); color: var(--nm-ink-soft); }
.stars { color: #E08E00; letter-spacing: 1px; font-size: .85rem; white-space: nowrap; }

/* ---------------------------------------------------------------- software row (catalogue list) */
.sw-list { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--nm-line); border-radius: var(--nm-r-lg); overflow: hidden; }
.sw-row { position: relative; display: grid; grid-template-columns: 64px 1fr auto; gap: 18px; padding: 20px 22px; border-bottom: 1px solid var(--nm-line); align-items: start; }
.sw-row:last-child { border-bottom: 0; }
.sw-row:hover { background: #FBFCFB; }
.sw-row .sw-icon { width: 64px; height: 64px; border-radius: 16px; }
.sw-row h3 { font-size: 1.1rem; margin: 0 0 2px; }
.sw-row h3 a { text-decoration: none; }
.sw-row h3 a::after { content: ''; position: absolute; inset: 0; }
.sw-row .tagline { margin: 4px 0 10px; color: var(--nm-ink-soft); }
.sw-row .facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .84rem; color: var(--nm-ink-soft); align-items: center; }
.sw-row .facts i { margin-right: 3px; }
.sw-row .side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 120px; }
@media (max-width: 575.98px) {
  .sw-row { grid-template-columns: 48px 1fr; padding: 16px; gap: 12px; }
  .sw-row .sw-icon { width: 48px; height: 48px; border-radius: 12px; }
  .sw-row .side { grid-column: 2; flex-direction: row; align-items: center; text-align: left; min-width: 0; }
}

/* ---------------------------------------------------------------- catalogue layout */
.page-head { padding: 36px 0 24px; background: #fff; border-bottom: 1px solid var(--nm-line); }
.page-head h1 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); margin: 6px 0 4px; }
.page-head p { color: var(--nm-ink-soft); margin: 0; }
.nm-breadcrumb { font-size: .85rem; margin: 0; }
.nm-breadcrumb .breadcrumb { margin: 0; }
.nm-breadcrumb a { color: var(--nm-ink-soft); }
.subcat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.catalog-wrap { display: grid; grid-template-columns: 270px 1fr; gap: 28px; padding: 28px 0 64px; }
@media (max-width: 991.98px) { .catalog-wrap { grid-template-columns: 1fr; } }
.filter-rail { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; padding-right: 6px; }
.filter-group { padding: 16px 0; border-bottom: 1px solid var(--nm-line); }
.filter-group:first-child { padding-top: 0; }
.filter-group h3 { font-family: var(--nm-font-text); font-size: .92rem; font-weight: 700; margin: 0 0 10px; letter-spacing: 0; }
.filter-group .form-check { margin-bottom: 4px; font-size: .92rem; }
.filter-group .form-check-input:checked { background-color: var(--nm-ink); border-color: var(--nm-ink); }
.filter-group .form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(250, 164, 26, .4); border-color: var(--nm-amber); }
.filter-group .more { font-size: .85rem; font-weight: 600; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.toolbar .count { font-weight: 600; }
.toolbar .form-select { border-radius: var(--nm-pill); border: 1.5px solid var(--nm-line-strong); font-weight: 600; font-size: .9rem; padding: .4rem 2.2rem .4rem 1rem; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.active-filters .chip { font-size: .82rem; padding: 4px 10px; }
.empty-state { background: #fff; border: 1.5px dashed var(--nm-line-strong); border-radius: var(--nm-r-lg); padding: 40px 28px; }
.empty-state h2 { font-size: 1.3rem; }

/* ---------------------------------------------------------------- detail page */
.sw-head { background: #fff; border-bottom: 1px solid var(--nm-line); padding: 28px 0 0; }
.sw-head .ident { display: flex; gap: 22px; align-items: flex-start; }
.sw-head h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); margin: 0; }
.sw-head .tagline { font-size: 1.12rem; color: var(--nm-ink-soft); margin: 6px 0 12px; }
.sw-head .byline { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: .92rem; color: var(--nm-ink-soft); }
.sw-head .byline a { font-weight: 600; color: var(--nm-ink); }
.sw-tabs { display: flex; gap: 4px; margin-top: 26px; overflow-x: auto; scrollbar-width: none; }
.sw-tabs a { position: relative; padding: 12px 14px; font-weight: 600; text-decoration: none; color: var(--nm-ink-soft); white-space: nowrap; }
.sw-tabs a:hover, .sw-tabs a.active { color: var(--nm-ink); }
.sw-tabs a.active::after { content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 9px solid var(--nm-amber); }
.sw-body { display: grid; grid-template-columns: 1fr 340px; gap: 36px; padding: 32px 0 64px; }
@media (max-width: 991.98px) { .sw-body { grid-template-columns: 1fr; } .sw-head .ident { gap: 16px; } .sw-head .sw-icon.lg { width: 72px; height: 72px; border-radius: 18px; } }
.sw-body section { margin-bottom: 44px; }
.sw-body section > h2 { font-size: 1.35rem; margin-bottom: 16px; }
.prose { font-size: 1.03rem; }
.prose p, .prose li { max-width: 70ch; }
.prose h3 { font-size: 1.15rem; margin-top: 1.4em; }
.prose img { max-width: 100%; height: auto; border-radius: var(--nm-r); }
.prose code { background: var(--nm-mist); color: var(--nm-ink); padding: 1px 6px; border-radius: 5px; }

/* the action panel: graphite bar with the notch, echoing the logo */
.action-panel { position: sticky; top: 92px; background: #fff; border: 1.5px solid var(--nm-line); border-radius: var(--nm-r-lg); overflow: visible; }
.action-panel .price-bar { position: relative; background: var(--nm-ink); color: #fff; padding: 18px 22px; border-radius: 20px 20px 0 0; }
.action-panel .price-bar::after { content: ''; position: absolute; left: 34px; top: 100%; border-left: 13px solid transparent; border-right: 13px solid transparent; border-top: 14px solid var(--nm-amber); }
.action-panel .price-bar .amount { font-family: var(--nm-font-display); font-size: 1.8rem; font-weight: 700; line-height: 1.1; }
.action-panel .price-bar .was { text-decoration: line-through; color: #A9B4B5; font-size: .95rem; margin-left: 6px; }
.action-panel .price-bar .sub { color: #C9D0CE; font-size: .88rem; }
.action-panel .body { padding: 26px 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.action-panel .body .btn { width: 100%; }
.action-panel .facts { list-style: none; padding: 0; margin: 8px 0 0; border-top: 1px solid var(--nm-line); }
.action-panel .facts li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--nm-line); font-size: .9rem; }
.action-panel .facts li span:first-child { color: var(--nm-ink-soft); }
.action-panel .facts li span:last-child { text-align: right; font-weight: 600; }
.action-panel .fine { font-size: .8rem; color: var(--nm-ink-soft); margin: 4px 0 0; }

.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(78%, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
@media (min-width: 768px) { .gallery { grid-auto-columns: 62%; } }
.gallery a { scroll-snap-align: start; border-radius: var(--nm-r); overflow: hidden; border: 1px solid var(--nm-line); display: block; background: #fff; }
.gallery img { width: 100%; height: auto; display: block; aspect-ratio: 16/10; object-fit: cover; }
.video-frame { position: relative; aspect-ratio: 16/9; border-radius: var(--nm-r); overflow: hidden; background: var(--nm-ink); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.demo-callout { display: flex; gap: 18px; align-items: center; background: var(--nm-amber-wash); border: 1.5px solid #F5D49A; border-radius: var(--nm-r-lg); padding: 20px 22px; }
.demo-callout i { font-size: 2rem; color: var(--nm-amber-deep); }

.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--nm-line); }
.feature-list > div { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--nm-line); display: flex; gap: 12px; }
.feature-list > div i { color: var(--nm-ok); font-size: 1.1rem; margin-top: 2px; }
.feature-list strong { display: block; }
.feature-list span { color: var(--nm-ink-soft); font-size: .92rem; }
@media (max-width: 575.98px) { .feature-list { grid-template-columns: 1fr; } }

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 12px 0; border-bottom: 1px solid var(--nm-line); vertical-align: top; font-size: .95rem; }
.spec-table th { width: 38%; color: var(--nm-ink-soft); font-weight: 500; padding-right: 16px; }

.file-row { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1.5px solid var(--nm-line); border-radius: var(--nm-r); background: #fff; margin-bottom: 10px; }
.file-row .grow { flex: 1; min-width: 0; }
.file-row code { font-size: .74rem; word-break: break-all; color: var(--nm-ink-soft); }

.review { padding: 18px 0; border-bottom: 1px solid var(--nm-line); }
.review:last-child { border-bottom: 0; }
.rating-summary { display: flex; gap: 22px; align-items: center; }
.rating-summary .big { font-family: var(--nm-font-display); font-size: 3rem; font-weight: 700; line-height: 1; }
.rating-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-input label { font-size: 1.6rem; color: var(--nm-line-strong); cursor: pointer; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: #E08E00; }
.rating-input input:focus-visible + label { outline: 3px solid var(--nm-amber); border-radius: 4px; }

.publisher-card { display: flex; gap: 14px; padding: 18px; border: 1.5px solid var(--nm-line); border-radius: var(--nm-r); background: #fff; }
.pub-logo { width: 52px; height: 52px; border-radius: 12px; background: var(--nm-ink); color: #fff; display: grid; place-items: center; font-family: var(--nm-font-display); font-weight: 700; flex-shrink: 0; overflow: hidden; }
.pub-logo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------- collections */
.col-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: #fff; border: 1.5px solid var(--nm-line); border-radius: var(--nm-r-lg); text-decoration: none; color: var(--nm-ink); height: 100%; position: relative; }
.col-card:hover { border-color: var(--nm-ink); color: var(--nm-ink); }
.col-card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--nm-ink); color: var(--nm-amber); display: grid; place-items: center; font-size: 1.25rem; }
.col-card h3 { font-size: 1.1rem; margin: 4px 0 0; }
.col-card p { color: var(--nm-ink-soft); margin: 0; font-size: .92rem; }
.col-card .stack { display: flex; margin-top: auto; padding-top: 8px; }
.col-card .stack img { width: 34px; height: 34px; border-radius: 9px; border: 2px solid #fff; margin-right: -8px; }

/* ---------------------------------------------------------------- CTA panels */
.cta-split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
@media (max-width: 991.98px) { .cta-split { grid-template-columns: 1fr; } }
.cta-request { position: relative; background: var(--nm-ink); color: #fff; border-radius: var(--nm-r-lg); padding: 40px; overflow: hidden; }
.cta-request h2 { color: #fff; }
.cta-request p { color: #C9D0CE; }
.cta-request::after { content: ''; position: absolute; right: 56px; bottom: -1px; border-left: 34px solid transparent; border-right: 34px solid transparent; border-bottom: 38px solid var(--nm-amber); }
.cta-dev { background: #fff; border: 1.5px solid var(--nm-line); border-radius: var(--nm-r-lg); padding: 40px; }
.promo-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--nm-amber-wash); border: 1.5px solid #F5D49A; border-radius: var(--nm-r-lg); padding: 24px 28px; }
.promo-banner h3 { margin: 0 0 4px; }
.promo-banner p { margin: 0; color: var(--nm-ink-2); }

/* publishers strip */
.pub-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.pub-strip a { display: flex; gap: 12px; align-items: center; padding: 14px; background: #fff; border: 1.5px solid var(--nm-line); border-radius: var(--nm-r); text-decoration: none; }
.pub-strip a:hover { border-color: var(--nm-ink); }

/* articles */
.article-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: #fff; border: 1.5px solid var(--nm-line); border-radius: var(--nm-r); text-decoration: none; color: var(--nm-ink); height: 100%; }
.article-card:hover { border-color: var(--nm-ink); color: var(--nm-ink); }
.article-card .topic { font-size: .82rem; font-weight: 600; color: var(--nm-amber-deep); }
.article-card h3 { font-size: 1.1rem; margin: 0; }
.article-card p { color: var(--nm-ink-soft); margin: 0; font-size: .93rem; }
.article-body { max-width: 760px; }

/* ---------------------------------------------------------------- forms */
.form-control, .form-select { border: 1.5px solid var(--nm-line-strong); border-radius: 10px; padding: .65rem .9rem; color: var(--nm-ink); }
.form-control:focus, .form-select:focus { border-color: var(--nm-ink); box-shadow: 0 0 0 .2rem rgba(250, 164, 26, .35); }
.form-label { font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.form-text { color: var(--nm-ink-soft); }
.form-check-input:checked { background-color: var(--nm-ink); border-color: var(--nm-ink); }
.panel { background: #fff; border: 1px solid var(--nm-line); border-radius: var(--nm-r-lg); padding: 28px; }
@media (max-width: 575.98px) { .panel { padding: 20px; } }
.auth-wrap { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-wrap .side { background: var(--nm-ink); color: #fff; padding: 64px; position: relative; display: flex; flex-direction: column; justify-content: center; }
.auth-wrap .side h2 { color: #fff; max-width: 18ch; }
.auth-wrap .side p { color: #C9D0CE; }
.auth-wrap .side::after { content: ''; position: absolute; left: 64px; bottom: 0; border-left: 30px solid transparent; border-right: 30px solid transparent; border-bottom: 34px solid var(--nm-amber); }
.auth-wrap .main { display: flex; align-items: center; justify-content: center; padding: 48px 16px; }
.auth-wrap .main > div { width: 100%; max-width: 420px; }
/* Continue with Google */
.btn-google { display: flex; align-items: center; justify-content: center; gap: 12px; background: #fff; color: #1f1f1f; border: 1px solid #c8cdd0; font-weight: 600; }
.btn-google:hover, .btn-google:focus { background: #f6f8f8; color: #1f1f1f; border-color: #9aa3a6; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--nm-ink-soft); font-size: .875rem; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: #dde1e2; }
@media (max-width: 991.98px) { .auth-wrap { grid-template-columns: 1fr; } .auth-wrap .side { display: none; } }
.invalid-feedback { display: block; }

/* ---------------------------------------------------------------- account area */
.account-grid { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding: 32px 0 64px; }
@media (max-width: 991.98px) { .account-grid { grid-template-columns: 1fr; } }
.account-grid > * { min-width: 0; }
.account-nav { display: flex; flex-direction: column; gap: 2px; }
.account-nav a { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; color: var(--nm-ink-soft); }
.account-nav a:hover { background: #fff; color: var(--nm-ink); }
.account-nav a.active { background: var(--nm-ink); color: #fff; }
@media (max-width: 991.98px) { .account-nav { flex-direction: row; overflow-x: auto; } .account-nav a { white-space: nowrap; } }
.stat-line { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--nm-line); border-radius: var(--nm-r-lg); background: #fff; }
.stat-line > div { padding: 20px 22px; border-right: 1px solid var(--nm-line); }
.stat-line > div:last-child { border-right: 0; }
.stat-line strong { font-family: var(--nm-font-display); font-size: 1.8rem; display: block; line-height: 1.1; }
.stat-line span { color: var(--nm-ink-soft); font-size: .9rem; }
@media (max-width: 575.98px) { .stat-line { grid-template-columns: 1fr; } .stat-line > div { border-right: 0; border-bottom: 1px solid var(--nm-line); } }
.table-nm { background: #fff; border: 1px solid var(--nm-line); border-radius: var(--nm-r); overflow: hidden; }
.table-nm table { margin: 0; }
.table-nm th { font-size: .82rem; font-weight: 700; color: var(--nm-ink-soft); background: var(--nm-paper); }
.table-nm td, .table-nm th { padding: 12px 16px; vertical-align: middle; }

/* steps (genuine sequence) */
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 48px; margin-bottom: 18px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--nm-ink); color: var(--nm-amber); font-family: var(--nm-font-display); font-weight: 700; display: grid; place-items: center; font-size: .9rem; }

/* ---------------------------------------------------------------- footer */
.nm-footer { background: var(--nm-ink); color: #C9D0CE; padding: 56px 0 28px; margin-top: 0; }
.nm-footer a { color: #E3E8E6; text-decoration: none; }
.nm-footer a:hover { color: var(--nm-amber); }
.nm-footer h3 { color: #fff; font-family: var(--nm-font-text); font-size: .95rem; font-weight: 700; letter-spacing: 0; margin-bottom: 12px; }
.nm-footer ul { list-style: none; padding: 0; margin: 0; }
.nm-footer li { margin-bottom: 8px; font-size: .93rem; }
.nm-footer .logo img { height: 32px; }
.nm-footer .bottom { border-top: 1px solid #435052; margin-top: 40px; padding-top: 20px; font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.nm-footer .newsletter { display: flex; gap: 8px; margin-top: 12px; }
.nm-footer .newsletter input { flex: 1; min-width: 0; border-radius: var(--nm-pill); border: 1.5px solid #566365; background: #364244; color: #fff; padding: 9px 16px; }
.nm-footer .newsletter input::placeholder { color: #A9B4B5; }
.nm-footer .social a { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #566365; margin-right: 6px; }

/* misc */
.pagination { gap: 4px; margin-top: 24px; }
.pagination .page-link { border-radius: 10px !important; border: 1.5px solid var(--nm-line); color: var(--nm-ink); font-weight: 600; min-width: 40px; text-align: center; }
.pagination .page-item.active .page-link { background: var(--nm-ink); border-color: var(--nm-ink); color: #fff; }
.alert { border-radius: var(--nm-r); }
.toast-nm { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--nm-ink); color: #fff; padding: 12px 20px; border-radius: var(--nm-pill); opacity: 0; transition: all .25s; z-index: 3000; pointer-events: none; font-weight: 600; }
.toast-nm.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.leaving-box { max-width: 560px; margin: 64px auto; text-align: left; }
.checksum { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; word-break: break-all; background: var(--nm-mist); padding: 10px 12px; border-radius: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.min-w-0 { min-width: 0; }
.demo-callout .btn { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 575.98px) { .demo-callout { flex-wrap: wrap; } }
/* mobile action bar on detail pages */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1020; background: #fff; border-top: 1px solid var(--nm-line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; box-shadow: 0 -8px 24px -16px rgba(45,56,58,.4); }
.mobile-cta .btn { flex-shrink: 0; }
@media (max-width: 991.98px) { body.software-detail { padding-bottom: 76px; } }
.sw-row.no-stretch h3 a::after { display: none; }
.dot-count { position: absolute; top: 0; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--nm-amber); color: var(--nm-ink); font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center; }
/* printable receipt */
.receipt { background: #fff; border: 1px solid var(--nm-line); border-radius: var(--nm-r-lg); padding: 36px; max-width: 820px; }
.receipt table { width: 100%; }
.receipt .items th { font-size: .8rem; color: var(--nm-ink-soft); border-bottom: 2px solid var(--nm-ink); padding: 8px 0; }
.receipt .items td { padding: 10px 0; border-bottom: 1px solid var(--nm-line); vertical-align: top; }
.license-key { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 600; letter-spacing: .03em; background: var(--nm-mist); padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
@media print {
  .nm-header, .nm-footer, .account-nav, .account-grid > aside, .no-print, .toast-nm, .skip-link { display: none !important; }
  body { background: #fff; }
  .account-grid { display: block; padding: 0; }
  .receipt { border: 0; padding: 0; max-width: none; }
}

/* ================================================================ Phase 3 */
/* finder */
.finder { max-width: 900px; }
.finder-steps { list-style: none; padding: 0; margin: 0 0 28px; display: flex; gap: 8px; counter-reset: fs; flex-wrap: wrap; }
.finder-steps li { counter-increment: fs; display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--nm-ink-soft); font-size: .92rem; padding-right: 14px; }
.finder-steps li::before { content: counter(fs); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--nm-line-strong); font-family: var(--nm-font-display); font-size: .82rem; }
.finder-steps li.is-on { color: var(--nm-ink); }
.finder-steps li.is-on::before { background: var(--nm-ink); border-color: var(--nm-ink); color: var(--nm-amber); }
.finder-steps li.is-done::before { background: var(--nm-amber); border-color: var(--nm-amber); color: var(--nm-ink); }
.finder-step { border: 0; padding: 0; margin: 0 0 32px; }
.finder-step legend { margin-bottom: 6px; }
.js .finder-step:not(.is-on) { display: none; }
.finder-nav { display: flex; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid var(--nm-line); }
.finder-nav [data-progress] { margin-left: auto; }
.js .finder-nav [data-submit] { display: none; }
.js .finder-nav.is-last [data-submit] { display: inline-flex; }
.js .finder-nav.is-last [data-next] { display: none; }
.pick-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pick-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1.5px solid var(--nm-line-strong); border-radius: var(--nm-pill); background: #fff; cursor: pointer; font-weight: 500; user-select: none; }
.pick-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick-chip:hover { border-color: var(--nm-ink); }
.pick-chip:has(input:checked) { background: var(--nm-ink); border-color: var(--nm-ink); color: #fff; }
.pick-chip:has(input:focus-visible) { outline: 3px solid var(--nm-amber); outline-offset: 2px; }
.pick-chip.is-disabled { opacity: .45; cursor: not-allowed; }
.budget-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.budget-card { position: relative; display: block; padding: 18px; border: 1.5px solid var(--nm-line-strong); border-radius: var(--nm-r); background: #fff; cursor: pointer; font-weight: 600; }
.budget-card input { position: absolute; opacity: 0; }
.budget-card:has(input:checked) { border-color: var(--nm-ink); box-shadow: inset 0 0 0 1.5px var(--nm-ink); background: var(--nm-amber-wash); }
.budget-card:has(input:focus-visible) { outline: 3px solid var(--nm-amber); outline-offset: 2px; }
/* recommendations */
.pick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 991.98px) { .pick-grid { grid-template-columns: 1fr; } }
.pick-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--nm-line); border-radius: var(--nm-r-lg); padding: 24px; padding-top: 30px; }
.pick-card .pick-label { position: absolute; top: -13px; left: 20px; margin: 0; background: var(--nm-ink); color: #fff; font-weight: 700; font-size: .8rem; padding: 4px 12px; border-radius: var(--nm-pill); }
.pick-card .pick-label::after { content: ''; position: absolute; left: 18px; top: 100%; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 7px solid var(--nm-amber); }
.why-list { list-style: none; padding: 0; margin: 0 0 8px; font-size: .9rem; }
.why-list li { display: flex; gap: 8px; padding: 3px 0; }
.why-list li i { color: var(--nm-ok); }
.why-list.warn li i { color: var(--nm-amber-deep); }
.why-list.warn li { color: var(--nm-ink-soft); }
/* compare */
.compare-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--nm-line); border-radius: var(--nm-r-lg); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare-table th, .compare-table td { padding: 14px 18px; border-bottom: 1px solid var(--nm-line); vertical-align: top; text-align: left; font-size: .93rem; }
.compare-table thead th { vertical-align: bottom; background: #fff; position: sticky; top: 0; min-width: 200px; }
.compare-table tbody th { color: var(--nm-ink-soft); font-weight: 500; width: 170px; position: sticky; left: 0; background: #fff; }
.compare-table tr.group th { background: var(--nm-paper); color: var(--nm-ink); font-weight: 700; }
.compare-tray { position: fixed; left: 16px; bottom: 16px; z-index: 1025; display: none; align-items: center; gap: 10px; background: var(--nm-ink); color: #fff; padding: 10px 12px 10px 16px; border-radius: var(--nm-pill); box-shadow: var(--nm-shadow-pop); }
.compare-tray.show { display: flex; }
.compare-tray img { width: 28px; height: 28px; border-radius: 7px; border: 2px solid var(--nm-ink); margin-right: -6px; }
.compare-tray .btn-link { color: #C9D0CE; }
@media (max-width: 991.98px) { body.software-detail .compare-tray { bottom: 86px; } }
[data-compare].is-on { background: var(--nm-ink); border-color: var(--nm-ink); color: #fff; }
.sw-tile [data-compare] { position: relative; z-index: 2; }
.sw-row .side [data-compare] { position: relative; z-index: 2; }
/* product tour */
.tour { background: #fff; border: 1.5px solid var(--nm-line); border-radius: var(--nm-r-lg); overflow: hidden; }
.tour .tour-img { aspect-ratio: 16/10; background: var(--nm-mist); }
.tour .tour-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tour .tour-text { padding: 20px 22px; display: flex; gap: 18px; align-items: flex-start; }
.tour .tour-count { flex-shrink: 0; font-family: var(--nm-font-display); font-weight: 700; color: var(--nm-amber-deep); }
.tour .tour-nav { display: flex; gap: 8px; align-items: center; padding: 0 22px 20px; }
.tour .tour-dots { display: flex; gap: 6px; margin-right: auto; }
.tour .tour-dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: var(--nm-line-strong); }
.tour .tour-dots button.is-on { background: var(--nm-ink); width: 24px; border-radius: 5px; }
.tour-step[hidden] { display: none; }
.demo-login { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 10px; font-size: .9rem; }
.demo-login code { background: #fff; padding: 2px 8px; border-radius: 6px; color: var(--nm-ink); border: 1px solid #F5D49A; }
@media (max-width: 575.98px) {
  .compare-table tbody th { width: 104px; min-width: 104px; padding: 12px; font-size: .85rem; }
  .compare-table thead th { min-width: 170px; padding: 12px; }
  .compare-table td { padding: 12px; font-size: .88rem; }
}

/* ---------- Developer portal (Phase 4) ---------- */
.developer-area .form-section { padding: 22px 0; border-bottom: 1px solid var(--nm-line); }
.developer-area .form-section:first-child { padding-top: 0; }
.developer-area .form-section:last-child { border-bottom: 0; padding-bottom: 0; }
.developer-area .form-section h3 { font-size: 1.05rem; margin-bottom: 4px; }
.developer-area .form-section > p { color: var(--nm-ink-soft); font-size: .88rem; margin-bottom: 14px; }
.feature-row { display: grid; grid-template-columns: 1fr 2fr auto; gap: 8px; margin-bottom: 8px; }
@media (max-width: 575.98px) { .feature-row { grid-template-columns: 1fr auto; } .feature-row input:nth-child(2) { grid-column: 1 / -1; grid-row: 2; } }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud label { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--nm-line-strong); padding: 4px 10px; border-radius: 999px; cursor: pointer; font-size: .86rem; background: #fff; }
.tag-cloud input { accent-color: var(--nm-ink); }
.tag-cloud label:has(input:checked) { background: var(--nm-ink); border-color: var(--nm-ink); color: #fff; }
.btn-icon { width: 38px; padding-left: 0; padding-right: 0; display: inline-flex; align-items: center; justify-content: center; }
.dev-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.dev-kpis > div { background: #fff; border: 1px solid var(--nm-line); border-radius: var(--nm-r-lg); padding: 16px 18px; }
.dev-kpis strong { font-family: var(--nm-font-display); font-size: 1.45rem; display: block; line-height: 1.15; }
.dev-kpis span { color: var(--nm-ink-soft); font-size: .84rem; }
.dev-kpis .amber { background: var(--nm-amber-wash); border-color: transparent; }
@media (max-width: 767.98px) { .dev-kpis { grid-template-columns: repeat(2, 1fr); } }
.dev-chart { height: 260px; }
.dev-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.dev-head h1 { margin: 0; }
.dev-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--nm-line); margin-bottom: 20px; overflow-x: auto; }
.dev-tabs a { padding: 10px 14px; color: var(--nm-ink-soft); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 500; }
.dev-tabs a.active { color: var(--nm-ink); border-color: var(--nm-amber); }
.status-steps { display: flex; gap: 0; margin: 18px 0; }
.status-steps > div { flex: 1; padding: 10px 12px; border-top: 3px solid var(--nm-line); font-size: .86rem; color: var(--nm-ink-soft); }
.status-steps > div.done { border-color: var(--nm-ink); color: var(--nm-ink); }
.status-steps > div.now { border-color: var(--nm-amber); color: var(--nm-ink); font-weight: 600; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.media-grid .item { border: 1px solid var(--nm-line); border-radius: var(--nm-r); overflow: hidden; background: #fff; }
.media-grid .item img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; background: var(--nm-mist); }
.media-grid .item .vid { aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; background: var(--nm-ink); color: #fff; font-size: 2rem; }
.media-grid .item .body { padding: 8px; }
.diff-table td { vertical-align: top; font-size: .88rem; white-space: pre-line; }
.diff-table .old { background: #FFF1F0; color: #8A1F11; }
.diff-table .new { background: var(--nm-ok-wash); color: #12512F; }
.reply-box { background: var(--nm-mist); border-left: 3px solid var(--nm-amber); padding: 10px 14px; border-radius: 6px; font-size: .92rem; }
@media (max-width: 575.98px) {
  .nm-header-tools { gap: 0; }
  .nm-header-tools .btn-sm { padding-left: 6px; padding-right: 6px; }
  .nm-header-tools .nm-currency-btn { font-size: .8rem; }
}
.developer-area .nm-section-head { flex-wrap: wrap; gap: 8px; }
.developer-area .table-nm { overflow-x: auto; }
.dev-tabs { max-width: 100%; }
.developer-area .nm-section-head > * { min-width: 0; max-width: 100%; }

/* ---------- Phase 5: request conversation & quotations ---------- */
.thread { display: flex; flex-direction: column; gap: 12px; }
.thread .msg { max-width: 88%; padding: 12px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--nm-line); }
.thread .msg.client { align-self: flex-end; background: var(--nm-ink); color: #fff; border-color: var(--nm-ink); border-bottom-right-radius: 4px; }
.thread .msg.client .meta, .thread .msg.client a { color: rgba(255,255,255,.75); }
.thread .msg.staff { align-self: flex-start; border-bottom-left-radius: 4px; }
.thread .msg.system { align-self: center; background: var(--nm-amber-wash); border-color: transparent; font-size: .9rem; max-width: 100%; text-align: center; }
.thread .meta { font-size: .78rem; color: var(--nm-ink-soft); margin-bottom: 4px; }
.thread .body { overflow-wrap: anywhere; }
@media (max-width: 575.98px) { .thread .msg { max-width: 100%; } }
.quote-doc { background: #fff; border: 1px solid var(--nm-line); border-radius: var(--nm-r-lg); padding: 40px; }
.quote-doc .q-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-bottom: 3px solid var(--nm-ink); padding-bottom: 20px; margin-bottom: 24px; }
.quote-doc .q-head img { height: 40px; }
.quote-doc table.items { width: 100%; border-collapse: collapse; }
.quote-doc table.items th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--nm-ink-soft); border-bottom: 1px solid var(--nm-line-strong); padding: 8px 6px; text-align: left; }
.quote-doc table.items td { border-bottom: 1px solid var(--nm-line); padding: 12px 6px; vertical-align: top; }
.quote-doc table.items .num { text-align: right; white-space: nowrap; }
.quote-doc .totals { margin-left: auto; max-width: 340px; }
.quote-doc .totals div { display: flex; justify-content: space-between; padding: 5px 0; }
.quote-doc .totals .grand { border-top: 2px solid var(--nm-ink); margin-top: 6px; padding-top: 10px; font-size: 1.25rem; font-weight: 700; }
@media (max-width: 575.98px) { .quote-doc { padding: 20px; } .quote-doc table.items .hide-sm { display: none; } }
@media print { .quote-actions, .quote-banner { display: none !important; } .quote-doc { border: 0; padding: 0; } }

/* ---------- Phase 6: Ask Namidor ---------- */
.ask-box { background: #fff; border: 2px solid var(--nm-ink); border-radius: var(--nm-r-lg); padding: 14px 16px; }
.ask-box textarea { width: 100%; border: 0; resize: vertical; font-size: 1.05rem; outline: none; background: transparent; margin-bottom: 8px; }
.ask-box:focus-within { box-shadow: 0 0 0 4px var(--nm-amber-wash); }
.ask-summary { background: var(--nm-mist); border-radius: var(--nm-r); padding: 12px 16px; }
.ask-picks { display: flex; flex-direction: column; gap: 14px; }
.ask-pick { background: #fff; border: 1px solid var(--nm-line); border-radius: var(--nm-r-lg); overflow: hidden; }
.ask-pick .sw-row { border: 0; border-radius: 0; margin: 0; }
.ask-why { display: flex; gap: 12px; padding: 12px 18px 16px; border-top: 1px dashed var(--nm-line); }
.ask-why .num { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--nm-amber); color: var(--nm-ink); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .85rem; }
.ask-hint { background: var(--nm-amber-wash); border-radius: var(--nm-r); padding: 10px 14px; font-size: .95rem; }
.ai-summary { background: var(--nm-mist); border-radius: var(--nm-r); padding: 16px 18px; }
.ai-summary ul { margin: 6px 0 0; padding-left: 18px; }
.ai-badge { font-size: .72rem; font-weight: 600; color: var(--nm-ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.ai-suggest { border: 1px dashed #E8B54A; background: #FFFBF0; border-radius: 10px; padding: 10px 12px; }
.ai-suggest .row-s { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #F3E3BC; }
.ai-filled { box-shadow: 0 0 0 3px #FFE3A3 !important; }

/* ---------- Learn: tutorial videos ---------- */
.learn-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.learn-card { background: #fff; border: 1px solid var(--nm-line); border-radius: var(--nm-r); overflow: hidden; display: flex; flex-direction: column; }
.learn-card.first { grid-column: 1 / -1; }
.learn-card.first .learn-thumb { aspect-ratio: 16 / 9; }
.learn-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #000; cursor: pointer; overflow: hidden; }
.learn-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92; transition: opacity .2s, transform .3s; }
.learn-thumb:hover img, .learn-thumb:focus-visible img { opacity: 1; transform: scale(1.02); }
.learn-thumb .play { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; border-radius: 50%; background: var(--nm-amber); color: var(--nm-ink); display: grid; place-items: center; font-size: 1.9rem; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.learn-thumb .len { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.8); color: #fff; font-size: .75rem; font-weight: 600; padding: 2px 6px; border-radius: 4px; }
.learn-thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.learn-meta { padding: 12px 14px 14px; }
.learn-meta h3 { line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 575.98px) { .learn-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- form-or-WhatsApp chooser */
.channel-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.channel { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border: 1.5px solid var(--nm-line-strong); border-radius: var(--nm-r); text-decoration: none; color: var(--nm-ink); transition: border-color .15s, box-shadow .15s; }
.channel:hover, .channel:focus-visible { border-color: var(--nm-ink); color: var(--nm-ink); box-shadow: 0 2px 0 var(--nm-amber); }
.channel .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--nm-ink); color: var(--nm-amber); font-size: 1.25rem; flex-shrink: 0; }
.channel.wa .ic { background: #E7F8EE; color: #128C4A; }
.channel .go { color: var(--nm-ink-soft); }

/* ---------------------------------------------------------------- trainers */
.person-ava { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; object-fit: cover; background: var(--nm-ink); color: #fff; display: inline-grid; place-items: center; font-family: var(--nm-font-display); font-weight: 700; font-size: 1.05rem; position: relative; }
.person-ava.lg { width: 96px; height: 96px; font-size: 1.6rem; }
.person-ava.sm { width: 40px; height: 40px; font-size: .85rem; }
.trainer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.trainer-card { display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1.5px solid var(--nm-line); border-radius: var(--nm-r-lg); padding: 20px; }
.trainer-card .top { display: flex; gap: 12px; align-items: center; }
.trainer-card h3 { font-size: 1.05rem; margin: 0; }
.trainer-card h3 a { color: inherit; text-decoration: none; }
.trainer-card h3 a:hover { text-decoration: underline; }
.trainer-card .meta { font-size: .82rem; color: var(--nm-ink-soft); }
.trainer-card .teaches { display: flex; flex-wrap: wrap; gap: 6px; }
.trainer-card .actions { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.fee { font-weight: 700; white-space: nowrap; }
.fee.free { color: var(--nm-ok); }
.train-box { border: 1.5px solid var(--nm-line); border-radius: var(--nm-r-lg); background: #fff; padding: 22px; }
.train-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--nm-line); }
.train-row:first-of-type { border-top: 0; }
.train-row .who { min-width: 0; flex: 1; }
.train-row .who a { font-weight: 600; }
.train-row .btns { display: flex; gap: 6px; flex-shrink: 0; }
@media (max-width: 575.98px) { .train-row { flex-wrap: wrap; } .train-row .btns { width: 100%; } .train-row .btns .btn { flex: 1; } }
.teach-rows .teach-row { display: grid; grid-template-columns: 2fr 1fr 1.1fr 1fr auto; gap: 8px; align-items: start; padding: 12px; border: 1px solid var(--nm-line); border-radius: var(--nm-r); margin-bottom: 8px; background: var(--nm-paper); }
@media (max-width: 767.98px) { .teach-rows .teach-row { grid-template-columns: 1fr 1fr; } .teach-rows .teach-row .sw { grid-column: 1 / -1; } }
.teach-row .form-label { font-size: .78rem; margin-bottom: 2px; }
.ask-gate { border-color: var(--nm-amber); box-shadow: 0 3px 0 var(--nm-amber); }
.teach-row [data-remove] { margin-top: 22px; }
@media (max-width: 575.98px) { .row.g-5, .row.gx-5 { --bs-gutter-x: 2rem; } }

/* ---------------------------------------------------------------- video guide */
.guide-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
@media (max-width: 991.98px) { .guide-wrap { grid-template-columns: 1fr; } }
.guide-player { position: relative; aspect-ratio: 16 / 9; background: var(--nm-ink); border-radius: var(--nm-r-lg); overflow: hidden; box-shadow: 0 18px 40px rgba(45, 56, 58, .18); }
.guide-player video, .guide-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--nm-ink); }
.guide-chapters ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.guide-chapters button { display: flex; gap: 12px; width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 10px; color: var(--nm-ink); font-weight: 600; font-size: .92rem; }
.guide-chapters button:hover, .guide-chapters button.on { background: #fff; box-shadow: inset 3px 0 0 var(--nm-amber); }
.guide-chapters .t { font-variant-numeric: tabular-nums; color: var(--nm-ink-soft); font-weight: 500; min-width: 40px; }
.guide-cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.guide-cta .play { width: 30px; height: 30px; border-radius: 50%; background: var(--nm-amber); color: var(--nm-ink); display: grid; place-items: center; }
.home-guide-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; }
@media (max-width: 991.98px) { .home-guide-grid { grid-template-columns: 1fr; gap: 24px; } }
.home-guide-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; font-size: .92rem; font-weight: 500; }
.home-guide-list i { color: var(--nm-ok); margin-right: 6px; }
@media (max-width: 575.98px) { .home-guide-list { grid-template-columns: 1fr; } }
.guide-lite { position: absolute; inset: 0; border: 0; padding: 0; background: var(--nm-ink); cursor: pointer; }
.guide-lite img { width: 100%; height: 100%; object-fit: cover; display: block; }
.big-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%; background: var(--nm-amber); color: var(--nm-ink); display: grid; place-items: center; font-size: 2.2rem; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.guide-lite:hover .big-play { transform: translate(-50%, -50%) scale(1.06); }
