/* Netera Partner Hub — founder marketplace UI */

:root {
    --nh-bg: oklch(98.4% .003 247.858);
    --nh-fg: oklch(20.8% .042 265.755);
    --nh-card: #fff;
    --nh-primary: oklch(54.6% .215 262.881);
    --nh-primary-hover: oklch(48% .21 262.881);
    --nh-primary-fg: #fff;
    --nh-primary-soft: oklch(95.5% .025 262.881);
    --nh-muted: oklch(96.8% .007 247.896);
    --nh-muted-fg: oklch(55.4% .046 257.417);
    --nh-success: oklch(58% .14 163);
    --nh-success-soft: oklch(95.5% .04 163);
    --nh-warning: oklch(72% .16 66);
    --nh-violet: oklch(55% .22 300);
    --nh-border: oklch(92.9% .013 255.508);
    --nh-radius: 1rem;
    --nh-font: "Inter", ui-sans-serif, system-ui, sans-serif;
    --nh-display: "Plus Jakarta Sans", "Inter", sans-serif;
    --nh-shadow: 0 1px 2px oklch(20% .04 260 / .04), 0 10px 28px -14px oklch(20% .04 260 / .14);
    --nh-shadow-lg: 0 2px 6px oklch(20% .04 260 / .05), 0 22px 48px -18px oklch(20% .04 260 / .2);
    --nh-header-h: 72px;
    --nh-max: 1180px;
}

html.theme-dark {
    --nh-bg: #161616;
    --nh-fg: #f2f2f2;
    --nh-card: #1e1e1e;
    --nh-primary: #8b9cff;
    --nh-primary-hover: #a3b0ff;
    --nh-primary-fg: #141414;
    --nh-primary-soft: rgba(139, 156, 255, .16);
    --nh-muted: #262626;
    --nh-muted-fg: #b0b0b0;
    --nh-success: #7dcea0;
    --nh-success-soft: rgba(125, 206, 160, .14);
    --nh-border: #3a3a3a;
    --nh-shadow: 0 8px 28px rgba(0, 0, 0, .45);
    --nh-shadow-lg: 0 18px 48px rgba(0, 0, 0, .55);
}

html[dir="rtl"] body.nh-body,
html[dir="rtl"] body.nh-body h1,
html[dir="rtl"] body.nh-body h2,
html[dir="rtl"] body.nh-body h3 {
    font-family: "Tajawal", var(--nh-display), sans-serif;
}

body.nh-body {
    font-family: var(--nh-font);
    background: var(--nh-bg) !important;
    color: var(--nh-fg);
    padding-top: var(--nh-header-h) !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

body.nh-body main { flex: 1; }

body.nh-dash {
    padding-top: 0 !important;
}

.nh-display { font-family: var(--nh-display); letter-spacing: -.03em; }

/* ── Header ── */
.nh-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--nh-header-h);
    z-index: 1000;
    background: color-mix(in oklab, var(--nh-card) 88%, transparent);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    border-bottom: 1px solid var(--nh-border);
}

.nh-header__inner {
    max-width: 1280px;
    margin: 0 auto;
    height: 100%;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.nh-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--nh-fg);
    flex-shrink: 0;
}

.nh-brand:hover { color: var(--nh-fg); }

.nh-brand__logo {
    height: 36px;
    width: 36px;
    object-fit: contain;
    border-radius: 10px;
    display: block;
    background: #fff;
    box-shadow: 0 0 0 1px color-mix(in oklab, var(--nh-border) 80%, transparent);
}

.nh-brand__mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--nh-violet);
    color: #fff;
    font-family: var(--nh-display);
    font-weight: 800;
    font-size: 15px;
    display: grid;
    place-items: center;
}

.nh-brand__mark img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: contain;
    background: #fff;
}

.nh-brand__name {
    font-family: var(--nh-display);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -.045em;
    line-height: 1;
}

.nh-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-inline-start: 4px;
}

.nh-nav a {
    color: var(--nh-muted-fg);
    text-decoration: none;
    font-weight: 500;
    font-size: .875rem;
    padding: 7px 11px;
    border-radius: 999px;
}

.nh-nav a:hover { color: var(--nh-fg); background: var(--nh-muted); }
.nh-nav a.is-active {
    color: var(--nh-fg);
    background: var(--nh-muted);
    font-weight: 600;
}

.nh-header__actions {
    margin-inline-start: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nh-header .nh-btn {
    padding: 8px 14px;
    font-size: .82rem;
    border-radius: 999px;
}

.nh-header__tools {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px 4px 8px;
    border: 1px solid var(--nh-border);
    border-radius: 999px;
    background: color-mix(in oklab, var(--nh-muted) 70%, var(--nh-card));
}

.nh-lang {
    display: inline-flex;
    align-items: center;
    padding: 2px;
    border-radius: 999px;
    background: transparent;
    gap: 0;
}

.nh-lang__opt {
    min-width: 32px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-decoration: none !important;
    color: var(--nh-muted-fg) !important;
    transition: background .15s, color .15s, box-shadow .15s;
}

.nh-lang__opt:hover { color: var(--nh-fg) !important; }

.nh-lang__opt.is-active {
    background: var(--nh-card);
    color: var(--nh-fg) !important;
    box-shadow: 0 1px 2px rgba(0,0,0,.07);
}

html.theme-dark .nh-lang__opt.is-active {
    background: #2c2c2c;
    box-shadow: 0 1px 2px rgba(0,0,0,.35);
}

.nh-lang--drawer {
    width: 100%;
    justify-content: stretch;
    padding: 3px;
    background: var(--nh-muted);
    border: 1px solid var(--nh-border);
}

.nh-lang--drawer .nh-lang__opt {
    flex: 1;
    height: 32px;
}

.nh-header .theme-toggle-btn,
.nh-dhead .theme-toggle-btn {
    --theme-toggle-w: 48px;
    --theme-toggle-h: 26px;
    --theme-toggle-thumb: 20px;
}

.nh-footer .nh-brand { margin-bottom: 4px; }
.nh-footer .nh-brand__logo { height: 40px; width: 40px; border-radius: 11px; }

.nh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none !important;
    border: 1px solid transparent;
    cursor: pointer;
    transition: .15s ease;
    white-space: nowrap;
}

.nh-btn--ghost {
    color: var(--nh-fg);
    background: transparent;
}

.nh-btn--ghost:hover { background: var(--nh-muted); color: var(--nh-fg); }

.nh-btn--primary {
    background: var(--nh-primary);
    color: var(--nh-primary-fg) !important;
}

.nh-btn--primary:hover { background: var(--nh-primary-hover); color: var(--nh-primary-fg) !important; }

.nh-btn--outline {
    background: var(--nh-card);
    color: var(--nh-fg) !important;
    border-color: var(--nh-border);
}

.nh-btn--outline:hover { background: var(--nh-muted); }

.nh-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--nh-border);
    background: var(--nh-card);
    color: var(--nh-muted-fg);
    display: grid;
    place-items: center;
    text-decoration: none;
    position: relative;
}

.nh-icon-btn:hover { color: var(--nh-fg); background: var(--nh-muted); }

.nh-badge-dot {
    position: absolute;
    top: -4px;
    inset-inline-end: -4px;
    min-width: 18px;
    height: 18px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--nh-card);
}

.nh-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border: 1px solid var(--nh-border);
    border-radius: 99px;
    background: var(--nh-card);
    cursor: pointer;
}

.nh-user img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.nh-user span {
    font-size: .85rem;
    font-weight: 600;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nh-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--nh-border);
    border-radius: 12px;
    background: var(--nh-card);
    color: var(--nh-fg);
}

.nh-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .4);
    z-index: 998;
}

.nh-overlay.is-open { display: block; }

body.nh-menu-open { overflow: hidden; }

.nh-nav__auth {
    padding-top: 12px;
    border-top: 1px solid var(--nh-border);
    margin-top: 8px;
}

/* ── Footer ── */
.nh-footer {
    background: var(--nh-card);
    border-top: 1px solid var(--nh-border);
    padding: 56px 24px 0;
    margin-top: auto;
}

.nh-footer__inner {
    max-width: var(--nh-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 40px;
}

.nh-footer p {
    color: var(--nh-muted-fg);
    font-size: .92rem;
    line-height: 1.6;
    margin: 14px 0 0;
    max-width: 280px;
}

.nh-footer h4 {
    font-family: var(--nh-display);
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.nh-footer ul { list-style: none; padding: 0; margin: 0; }
.nh-footer li { margin-bottom: 8px; }
.nh-footer a { color: var(--nh-muted-fg); text-decoration: none; font-size: .9rem; }
.nh-footer a:hover { color: var(--nh-fg); }

.nh-footer__copy {
    max-width: var(--nh-max);
    margin: 40px auto 0;
    padding: 18px 0;
    border-top: 1px solid var(--nh-border);
    color: var(--nh-muted-fg);
    font-size: .85rem;
}

/* ── Landing ── */
.nh-wrap { max-width: var(--nh-max); margin: 0 auto; padding: 0 24px; }

.nh-hero {
    text-align: center;
    padding: 72px 24px 28px;
}

.nh-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--nh-primary-soft);
    color: var(--nh-primary);
    border: 1px solid color-mix(in oklab, var(--nh-primary) 16%, transparent);
    border-radius: 99px;
    padding: 6px 14px;
    font-size: .78rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.nh-hero h1 {
    font-family: var(--nh-display);
    font-size: clamp(2.1rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.12;
    max-width: 18ch;
    margin: 0 auto 16px;
}

.nh-hero__sub {
    color: var(--nh-muted-fg);
    font-size: 1.08rem;
    max-width: 560px;
    margin: 0 auto 28px;
    line-height: 1.55;
}

.nh-hero__actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.nh-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-width: var(--nh-max);
    margin: 48px auto 0;
    padding: 0 24px 8px;
}

.nh-stat {
    text-align: center;
    padding: 8px;
}

.nh-stat strong {
    display: block;
    font-family: var(--nh-display);
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -.03em;
}

.nh-stat span { color: var(--nh-muted-fg); font-size: .85rem; }

.nh-marquee {
    --nh-marquee-gap: 10px;
    overflow: hidden;
    width: 100%;
    margin: 36px 0 8px;
    direction: ltr;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 96px, #000 calc(100% - 96px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 96px, #000 calc(100% - 96px), transparent 100%);
}

.nh-marquee__track {
    display: flex;
    width: max-content;
    animation: nh-marquee 36s linear infinite;
    will-change: transform;
}

.nh-marquee__group {
    display: flex;
    align-items: center;
    gap: var(--nh-marquee-gap);
    padding-inline-end: var(--nh-marquee-gap);
    flex-shrink: 0;
    min-width: 100vw;
}

.nh-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 99px;
    background: var(--nh-card);
    border: 1px solid var(--nh-border);
    color: var(--nh-fg);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

@keyframes nh-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.nh-section { padding: 64px 0; }
.nh-section__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 28px;
}
.nh-section__head h2 {
    font-family: var(--nh-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -.03em;
    margin: 0 0 6px;
}
.nh-section__head p { color: var(--nh-muted-fg); margin: 0; }
.nh-link { color: var(--nh-primary); font-weight: 600; text-decoration: none; font-size: .92rem; }
.nh-link:hover { text-decoration: underline; }

.nh-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.nh-cat {
    background: var(--nh-card);
    border: 1px solid var(--nh-border);
    border-radius: var(--nh-radius);
    padding: 22px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--nh-shadow);
    transition: .2s ease;
    min-height: 148px;
    display: flex;
    flex-direction: column;
}

.nh-cat:hover { transform: translateY(-3px); box-shadow: var(--nh-shadow-lg); color: inherit; }

.nh-cat__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--nh-primary-soft);
    color: var(--nh-primary);
    display: grid;
    place-items: center;
    margin-bottom: 14px;
}

.nh-cat h3 {
    font-family: var(--nh-display);
    font-size: 1.02rem;
    font-weight: 700;
    margin: 0 0 6px;
}

.nh-cat p { color: var(--nh-muted-fg); font-size: .85rem; margin: 0 0 auto; line-height: 1.4; }
.nh-cat small { color: var(--nh-muted-fg); margin-top: 14px; font-weight: 600; }

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

.nh-step {
    background: var(--nh-card);
    border: 1px solid var(--nh-border);
    border-radius: var(--nh-radius);
    padding: 26px 24px;
    box-shadow: var(--nh-shadow);
}

.nh-step__n {
    font-family: var(--nh-display);
    font-weight: 800;
    color: var(--nh-primary);
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.nh-step h3 { font-family: var(--nh-display); font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.nh-step p { color: var(--nh-muted-fg); margin: 0; line-height: 1.55; }

.nh-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.nh-trust__item {
    background: var(--nh-card);
    border: 1px solid var(--nh-border);
    border-radius: var(--nh-radius);
    padding: 22px;
}

.nh-trust__item h3 { font-family: var(--nh-display); font-size: 1.05rem; font-weight: 700; margin: 10px 0 6px; }
.nh-trust__item p { color: var(--nh-muted-fg); margin: 0; font-size: .9rem; line-height: 1.5; }

/* ── Provider card ── */
.nh-pcard {
    background: var(--nh-card);
    border: 1px solid var(--nh-border);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--nh-shadow);
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.nh-pcard__top {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.nh-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--nh-primary-soft);
    color: var(--nh-primary);
    font-family: var(--nh-display);
    font-weight: 800;
    font-size: .78rem;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    overflow: hidden;
}

.nh-avatar img { width: 100%; height: 100%; object-fit: cover; }

.nh-pcard__info { min-width: 0; flex: 1; }

.nh-pcard h3 {
    font-family: var(--nh-display);
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0 0 3px;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.25;
    min-width: 0;
}

.nh-pcard h3 span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nh-pcard__verified {
    color: var(--nh-primary);
    font-size: .82rem;
    flex-shrink: 0;
}

.nh-pcard__tagline {
    color: var(--nh-muted-fg);
    font-size: .84rem;
    margin: 0 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nh-pcard__rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    margin-bottom: 4px;
}

.nh-pcard__rating b { font-weight: 800; }

.nh-pcard__rating span:last-child { color: var(--nh-muted-fg); }

.nh-stars {
    display: inline-flex;
    gap: 2px;
    color: #f59e0b;
    font-size: .72rem;
}

.nh-pcard__loc {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--nh-muted-fg);
    font-size: .8rem;
}

.nh-pcard__loc i { font-size: .72rem; }

.nh-pcard .nh-match {
    margin-inline-start: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    background: var(--nh-primary-soft);
    color: var(--nh-primary);
    border-radius: 14px;
    padding: 8px 12px 6px;
    line-height: 1.1;
    min-width: 72px;
}

.nh-pcard .nh-match span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .68rem;
    font-weight: 600;
}

.nh-pcard .nh-match strong {
    font-family: var(--nh-display);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -.04em;
}

.nh-pcard__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--nh-muted);
    border-radius: 14px;
    padding: 14px 6px;
    text-align: center;
}

.nh-pcard__stats strong {
    display: block;
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.nh-pcard__stats span {
    display: block;
    margin-top: 3px;
    color: var(--nh-muted-fg);
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.nh-pcard__price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.nh-pcard__price small {
    color: var(--nh-muted-fg);
    display: block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.nh-pcard__price b {
    font-family: var(--nh-display);
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -.03em;
}

.nh-pcard .nh-btn--primary {
    border-radius: 999px;
    padding: 10px 16px;
    font-size: .84rem;
}

.nh-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.nh-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .72rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--nh-muted);
    color: var(--nh-muted-fg);
}
.nh-tag i { font-size: .68rem; }
.nh-tag--ok,
.nh-tag--soft {
    background: var(--nh-primary-soft);
    color: var(--nh-primary);
}

.nh-pcard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.nh-pcard-grid--3 { gap: 18px; }

/* ── Marketplace ── */
.nh-page-head { padding: 40px 0 18px; }
.nh-page-head h1 {
    font-family: var(--nh-display);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -.03em;
    margin: 0 0 8px;
}
.nh-page-head p { color: var(--nh-muted-fg); margin: 0; max-width: 52ch; }

.nh-cats-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 22px;
}

.nh-cats-row a, .nh-cats-row span {
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 99px;
    border: 1px solid var(--nh-border);
    background: var(--nh-card);
    color: var(--nh-fg);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 600;
}

.nh-cats-row a.is-active, .nh-cats-row span.is-active {
    background: var(--nh-fg);
    color: var(--nh-card);
    border-color: var(--nh-fg);
}

.nh-market {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    padding-bottom: 64px;
}

.nh-filters {
    background: var(--nh-card);
    border: 1px solid var(--nh-border);
    border-radius: var(--nh-radius);
    padding: 18px;
    height: fit-content;
    position: sticky;
    top: calc(var(--nh-header-h) + 16px);
}

.nh-filters h3 { font-size: .95rem; font-weight: 700; margin-bottom: 14px; }
.nh-filters label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: var(--nh-muted-fg);
    margin: 12px 0 6px;
}
.nh-filters select {
    width: 100%;
    border: 1px solid var(--nh-border);
    background: var(--nh-bg);
    color: var(--nh-fg);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: .85rem;
}

.nh-market__count { color: var(--nh-muted-fg); font-size: .9rem; margin-bottom: 14px; }

/* ── Dashboard ── */
.nh-dhead {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in oklab, var(--nh-card) 90%, transparent);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--nh-border);
}

.nh-dhead__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.nh-dnav { display: flex; gap: 6px; flex-wrap: wrap; }
.nh-dnav a {
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--nh-muted-fg);
    text-decoration: none;
    font-weight: 500;
    font-size: .9rem;
}
.nh-dnav a.is-active, .nh-dnav a:hover {
    background: var(--nh-primary-soft);
    color: var(--nh-primary);
}

.nh-plan {
    margin-inline-start: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--nh-muted);
    border: 1px solid var(--nh-border);
    border-radius: 14px;
    padding: 8px 10px 8px 14px;
    font-size: .8rem;
}

.nh-plan strong { display: block; font-size: .82rem; }
.nh-plan span { color: var(--nh-muted-fg); }

.nh-dmain {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}

.nh-dhero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 28px;
}

.nh-dhero h1 {
    font-family: var(--nh-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -.03em;
    margin: 0 0 6px;
}

.nh-dhero p { color: var(--nh-muted-fg); margin: 0; }

.nh-dgrid {
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    gap: 16px;
}

.nh-card {
    background: var(--nh-card);
    border: 1px solid var(--nh-border);
    border-radius: var(--nh-radius);
    padding: 22px;
    box-shadow: var(--nh-shadow);
}

.nh-card h2 {
    font-family: var(--nh-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 14px;
}

.nh-progress {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.nh-progress__ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: conic-gradient(var(--nh-primary) calc(var(--p, 33) * 1%), var(--nh-muted) 0);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.nh-progress__ring span {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--nh-card);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: .9rem;
}

.nh-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.nh-pills span {
    padding: 6px 10px;
    border-radius: 99px;
    background: var(--nh-muted);
    font-size: .78rem;
    font-weight: 600;
}

.nh-timeline { list-style: none; padding: 0; margin: 0; }
.nh-timeline li {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--nh-border);
}
.nh-timeline li:last-child { border-bottom: 0; }
.nh-timeline time { color: var(--nh-muted-fg); font-size: .8rem; font-weight: 600; }
.nh-timeline strong { display: block; font-size: .92rem; }
.nh-timeline small { color: var(--nh-muted-fg); }

.nh-tasks { list-style: none; padding: 0; margin: 0; }
.nh-tasks li {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--nh-border);
    font-size: .9rem;
}
.nh-tasks li:last-child { border-bottom: 0; }
.nh-tasks i { color: var(--nh-primary); margin-top: 3px; }
.nh-tasks small { color: var(--nh-muted-fg); display: block; }

.nh-note {
    background: var(--nh-success-soft);
    border-radius: 14px;
    padding: 14px;
    margin-top: 14px;
}
.nh-note strong { display: block; margin-bottom: 4px; }
.nh-note p { margin: 0; color: var(--nh-muted-fg); font-size: .85rem; }

.nh-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.nh-mini a {
    background: var(--nh-card);
    border: 1px solid var(--nh-border);
    border-radius: 14px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
}

.nh-mini strong { display: block; font-size: .95rem; }
.nh-mini span { color: var(--nh-muted-fg); font-size: .8rem; }

.nh-rec a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    padding: 10px 0;
    border-bottom: 1px solid var(--nh-border);
}
.nh-rec a:last-child { border-bottom: 0; }
.nh-rec small { color: var(--nh-muted-fg); display: block; }
.nh-rec .nh-match {
    margin-inline-start: auto;
    background: var(--nh-primary-soft);
    color: var(--nh-primary);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: .75rem;
    font-weight: 700;
    white-space: nowrap;
}

/* ── Provider profile ── */
.nh-profile { padding: 28px 0 72px; }
.nh-crumb { color: var(--nh-muted-fg); font-size: .85rem; margin-bottom: 16px; }
.nh-crumb a { color: inherit; text-decoration: none; }
.nh-phero {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}
.nh-phero__main {
    background: var(--nh-card);
    border: 1px solid var(--nh-border);
    border-radius: 1.2rem;
    padding: 24px;
    box-shadow: var(--nh-shadow);
}
.nh-phero h1 { font-family: var(--nh-display); font-size: 2rem; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 6px; }
.nh-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    margin: 18px 0 0;
    border-bottom: 1px solid var(--nh-border);
}
.nh-tabs a {
    padding: 10px 12px;
    color: var(--nh-muted-fg);
    text-decoration: none;
    font-weight: 600;
    font-size: .88rem;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.nh-tabs a:hover, .nh-tabs a.is-active { color: var(--nh-fg); border-bottom-color: var(--nh-primary); }

.nh-side {
    background: var(--nh-card);
    border: 1px solid var(--nh-border);
    border-radius: 1.2rem;
    padding: 20px;
    position: sticky;
    top: calc(var(--nh-header-h) + 16px);
    box-shadow: var(--nh-shadow);
}

.nh-side .nh-btn { width: 100%; margin-top: 8px; }

/* ── Landing AI match restyle ── */
.nh-landing .ai-procurement {
    max-width: 1120px;
    margin: 0 auto 8px;
    text-align: start;
}

.nh-hero .ai-input-wrap,
.nh-hero .ai-input-wrap textarea,
.nh-hero .ai-typewriter {
    text-align: start;
}
.nh-landing .ai-hero-block { display: none; }
.nh-hero { overflow: visible; }
.nh-landing .ai-results-section,
.nh-landing .ai-no-results,
.nh-landing .ai-understood {
    text-align: start;
    margin-top: 20px;
}

.nh-landing .ai-provider-card {
    background: var(--nh-card);
    border: 1px solid var(--nh-border);
    border-radius: 1.15rem;
    box-shadow: var(--nh-shadow);
}

/* ── Auth / inner pages inherit chrome ── */
.nh-inner { padding: 28px 0 64px; }

.nh-profile .cp-hero {
    background: var(--nh-card) !important;
    color: var(--nh-fg) !important;
    border: 1px solid var(--nh-border);
    box-shadow: var(--nh-shadow);
}
.nh-profile .cp-hero::after { display: none; }
.nh-profile .cp-name, .nh-profile .cp-meta, .nh-profile .cp-stat strong, .nh-profile .cp-stat small { color: inherit; }
.nh-profile .cp-badge { background: var(--nh-success-soft); color: var(--nh-success); border: 0; }
.nh-profile .cp-stat { background: var(--nh-muted); border-color: var(--nh-border); }
.nh-profile .cp-btn-primary {
    background: var(--nh-primary) !important;
    border-radius: 12px;
}

.nh-dmain .my-requests-page { max-width: none; }

@media (max-width: 991px) {
    .nh-header .d-lg-flex { display: none !important; }
    .nh-menu-toggle {
        display: grid;
        place-items: center;
        position: relative;
        z-index: 1001;
        flex-shrink: 0;
        cursor: pointer;
    }
    .nh-nav {
        display: none !important;
        position: fixed;
        top: var(--nh-header-h);
        inset-inline-start: 0;
        width: min(320px, 86vw);
        height: calc(100vh - var(--nh-header-h));
        background: var(--nh-card);
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        gap: 4px;
        z-index: 999;
        box-shadow: var(--nh-shadow-lg);
        margin: 0;
        overflow-y: auto;
    }
    .nh-nav.is-open { display: flex !important; }
    .nh-nav a { padding: 12px 10px; border-radius: 10px; }
    .nh-cat-grid, .nh-steps, .nh-trust, .nh-stats, .nh-dgrid, .nh-phero, .nh-market, .nh-footer__inner, .nh-mini {
        grid-template-columns: 1fr;
    }
    .nh-filters { position: static; }
    .nh-dnav {
        display: flex;
        overflow-x: auto;
        width: 100%;
        order: 3;
        padding-bottom: 4px;
    }
    .nh-dhead__inner { flex-wrap: wrap; }
    .nh-plan { display: none; }
    .nh-dhead .nh-header__tools { margin-inline-start: auto; }
}

@media (max-width: 520px) {
    .nh-header .nh-brand__name,
    .nh-dhead .nh-brand__name { display: none; }
    .nh-header__inner { padding: 0 14px; gap: 10px; }
    .nh-header .nh-btn--signin {
        padding: 8px 10px;
        font-size: .78rem;
    }
}

@media (min-width: 700px) {
    .nh-pcard-grid { grid-template-columns: 1fr; }
}

@media (min-width: 960px) {
    .nh-cat-grid { grid-template-columns: repeat(4, 1fr); }
    .nh-pcard-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ── Scroll reveal ── */
.nh-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .75s cubic-bezier(.22, 1, .36, 1),
                transform .75s cubic-bezier(.22, 1, .36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.nh-reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .nh-reveal,
    .nh-reveal.is-in {
        opacity: 1;
        transform: none;
        transition: none;
        will-change: auto;
    }
    .nh-marquee__track {
        animation: none;
        will-change: auto;
    }
}

/* ── Live chat (startup messages) ── */
body.nh-dash:has(.lc-app) .nh-dmain {
    width: 85vw;
    max-width: 85vw;
    padding: 16px 0 20px;
    min-height: calc(100vh - var(--nh-header-h));
    display: flex;
    flex-direction: column;
}

.lc-app {
    flex: 1;
    width: 100%;
    min-height: calc(100vh - var(--nh-header-h) - 36px);
    display: grid;
    grid-template-columns: minmax(280px, 28%) 1fr;
    background: var(--nh-card);
    border: 1px solid var(--nh-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--nh-shadow-lg);
}

.lc-inbox {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-inline-end: 1px solid var(--nh-border);
    background: color-mix(in oklab, var(--nh-muted) 55%, var(--nh-card));
}

.lc-inbox__head {
    padding: 20px 18px 8px;
}

.lc-inbox__head h1 {
    font-family: var(--nh-display);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0;
}

.lc-inbox__head p {
    margin: 4px 0 0;
    color: var(--nh-muted-fg);
    font-size: .78rem;
}

.lc-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 14px 12px;
    padding: 0 12px;
    height: 40px;
    border-radius: 12px;
    background: var(--nh-card);
    border: 1px solid var(--nh-border);
    color: var(--nh-muted-fg);
}

.lc-search input {
    border: 0;
    background: transparent;
    color: var(--nh-fg);
    width: 100%;
    outline: none;
    font-size: .86rem;
}

.lc-threads {
    flex: 1;
    overflow-y: auto;
    padding: 0 8px 12px;
}

.lc-thread-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    margin-bottom: 2px;
}

.lc-thread-item:hover {
    background: color-mix(in oklab, var(--nh-primary-soft) 70%, var(--nh-card));
}

.lc-thread-item.is-active {
    background: var(--nh-primary-soft);
}

.lc-thread-item__body {
    flex: 1;
    min-width: 0;
}

.lc-thread-item__row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: baseline;
}

.lc-thread-item__row strong {
    font-size: .9rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lc-thread-item__row time {
    flex-shrink: 0;
    font-size: .7rem;
    color: var(--nh-muted-fg);
}

.lc-thread-item__preview {
    display: block;
    margin-top: 2px;
    font-size: .78rem;
    color: var(--nh-muted-fg);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lc-thread-item.is-unread .lc-thread-item__preview {
    color: var(--nh-fg);
    font-weight: 600;
}

.lc-unread {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--nh-primary);
    color: var(--nh-primary-fg);
    font-size: .68rem;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.lc-empty-inbox {
    padding: 24px 16px;
    color: var(--nh-muted-fg);
    font-size: .85rem;
}

.lc-avatar {
    position: relative;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}

.lc-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: var(--nh-muted);
}

.lc-avatar--lg { width: 46px; height: 46px; }
.lc-avatar--sm { width: 28px; height: 28px; align-self: flex-end; }

.lc-presence {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--nh-success);
    border: 2px solid var(--nh-card);
    inset-inline-end: 0;
    bottom: 0;
}

.lc-stage {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--nh-card);
}

.lc-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--nh-border);
    background: var(--nh-card);
}

.lc-back {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    place-items: center;
    color: var(--nh-fg);
    text-decoration: none;
    background: var(--nh-muted);
}

.lc-head__meta { flex: 1; min-width: 0; }

.lc-head__name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lc-head__name h2 {
    font-size: 1.02rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -.02em;
}

.lc-head__meta p {
    margin: 2px 0 0;
    color: var(--nh-muted-fg);
    font-size: .78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lc-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .7rem;
    font-weight: 700;
    color: var(--nh-success);
    background: var(--nh-success-soft);
    border-radius: 999px;
    padding: 2px 8px;
}

.lc-live i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--nh-success);
    box-shadow: 0 0 0 0 var(--nh-success);
    animation: lc-pulse 1.8s infinite;
}

@keyframes lc-pulse {
    0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--nh-success) 55%, transparent); }
    70% { box-shadow: 0 0 0 6px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

.lc-head__action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid var(--nh-border);
    color: var(--nh-fg);
    text-decoration: none;
    font-size: .8rem;
    font-weight: 600;
    background: var(--nh-muted);
}

.lc-head__action:hover { border-color: var(--nh-primary); color: var(--nh-primary); }

.lc-thread {
    flex: 1;
    overflow-y: auto;
    padding: 20px 22px 12px;
    background:
        radial-gradient(1200px 400px at 10% -10%, color-mix(in oklab, var(--nh-primary-soft) 70%, transparent), transparent 60%),
        var(--nh-muted);
}

.lc-day {
    display: flex;
    justify-content: center;
    margin: 8px 0 16px;
}

.lc-day span,
.lc-system span {
    font-size: .72rem;
    font-weight: 600;
    color: var(--nh-muted-fg);
    background: color-mix(in oklab, var(--nh-card) 88%, transparent);
    border: 1px solid var(--nh-border);
    border-radius: 999px;
    padding: 4px 10px;
}

.lc-system {
    display: flex;
    justify-content: center;
    margin: 10px 0 16px;
}

.lc-msg {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 10px;
    max-width: 78%;
}

.lc-msg.is-mine {
    margin-inline-start: auto;
    flex-direction: row-reverse;
}

.lc-bubble {
    min-width: 0;
}

.lc-bubble__text {
    padding: 10px 14px;
    border-radius: 18px;
    font-size: .92rem;
    line-height: 1.45;
    word-break: break-word;
}

.lc-msg.is-theirs .lc-bubble__text {
    background: var(--nh-card);
    border: 1px solid var(--nh-border);
    color: var(--nh-fg);
    border-end-start-radius: 6px;
}

.lc-msg.is-mine .lc-bubble__text {
    background: var(--nh-primary);
    color: var(--nh-primary-fg);
    border-end-end-radius: 6px;
}

.lc-bubble time {
    display: block;
    margin-top: 4px;
    font-size: .68rem;
    color: var(--nh-muted-fg);
}

.lc-msg.is-mine .lc-bubble time { text-align: end; }

.lc-thread-empty,
.lc-placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--nh-muted-fg);
    padding: 32px;
}

.lc-thread-empty i,
.lc-placeholder__icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
    background: var(--nh-primary-soft);
    color: var(--nh-primary);
    font-size: 1.4rem;
}

.lc-placeholder h2 {
    color: var(--nh-fg);
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 6px;
}

.lc-placeholder p { margin: 0; max-width: 320px; }

.lc-composer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px 16px;
    border-top: 1px solid var(--nh-border);
    background: var(--nh-card);
}

.lc-composer input {
    flex: 1;
    height: 48px;
    border: 1px solid var(--nh-border);
    border-radius: 16px;
    padding: 0 16px;
    background: var(--nh-muted);
    color: var(--nh-fg);
    outline: none;
    font-size: .92rem;
}

.lc-composer input:focus {
    border-color: var(--nh-primary);
    box-shadow: 0 0 0 3px var(--nh-primary-soft);
    background: var(--nh-card);
}

.lc-composer button {
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 16px;
    background: var(--nh-primary);
    color: var(--nh-primary-fg);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    cursor: pointer;
}

.lc-composer button:hover { background: var(--nh-primary-hover); }
.lc-composer button:disabled { opacity: .55; }

.lc-stage--empty .lc-placeholder { min-height: 420px; }

@media (max-width: 900px) {
    body.nh-dash:has(.lc-app) .nh-dmain {
        width: 100%;
        max-width: none;
        padding: 10px 10px 12px;
    }
    .lc-app { min-height: calc(100vh - var(--nh-header-h) - 22px); border-radius: 16px; }
    .lc-app:not(.is-open) { grid-template-columns: 1fr; }
    .lc-app:not(.is-open) .lc-stage { display: none; }
    .lc-app.is-open { grid-template-columns: 1fr; }
    .lc-app.is-open .lc-inbox { display: none; }
    .lc-back { display: grid; }
    .lc-head__action span { display: none; }
    .lc-msg { max-width: 88%; }
}
