/* ==========================================================================
   NUBRYX CLIENT PORTAL
   Design tokens mirror nubryx.com (app/globals.css and components/ui/*):
   Geist, brand blue #2563eb -> cyan #06b6d4, slate neutrals, 16px/24px radii.
   Loaded after huraga.css and nubryx-checkout.css.
   ========================================================================== */

/* Geist exactly as nubryx.com serves it (next/font, variable 100-900), so text metrics match */
@font-face {
    font-family: "Geist";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/geist-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Geist";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/geist-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root,
[data-bs-theme="light"] {
    --nx-brand: #2563eb;
    --nx-brand-hover: #1d4ed8;
    --nx-brand-soft: #eff6ff;
    --nx-cyan: #06b6d4;
    /* Neutrals and gradient use the Tailwind v4 values the website renders with */
    --nx-gradient: linear-gradient(to right, oklch(54.6% .245 262.881) 0%, oklch(62.3% .214 259.815) 50%, oklch(71.5% .143 215.221) 100%);
    --nx-text: oklch(20.8% .042 265.755);
    --nx-text-2: oklch(37.2% .044 257.287);
    --nx-slate-600: oklch(44.6% .043 257.281);
    --nx-muted: oklch(55.4% .046 257.417);
    --nx-subtle: #94a3b8;
    --nx-border: #e2e8f0;
    --nx-border-soft: #f1f5f9;
    --nx-bg: #f8fafc;
    --nx-surface: #ffffff;
    --nx-radius-sm: 10px;
    --nx-radius: 16px;
    --nx-radius-lg: 24px;
    --nx-shadow: 0 10px 30px rgba(15, 23, 42, .05);
    --nx-shadow-hover: 0 22px 55px rgba(15, 23, 42, .08);
    --nx-shadow-brand: 0 12px 35px rgba(37, 99, 235, .30);
    --nx-header-h: 74px;
    --nx-ease: cubic-bezier(.22, 1, .36, 1);

    --bs-primary: #2563eb;
    --bs-primary-rgb: 37, 99, 235;
    --bs-link-color: #2563eb;
    --bs-link-color-rgb: 37, 99, 235;
    --bs-link-hover-color: #1d4ed8;
    --bs-link-hover-color-rgb: 29, 78, 216;
    --bs-body-color: #0f172a;
    --bs-body-color-rgb: 15, 23, 42;
    --bs-secondary-color: #64748b;
    --bs-body-bg: #f8fafc;
    --bs-border-color: #e2e8f0;
    --bs-border-radius: 10px;
    --bs-border-radius-lg: 16px;
    --bs-border-radius-sm: 8px;
    --bs-focus-ring-color: rgba(37, 99, 235, .25);
    --bs-body-font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    /* Checkout stylesheet palette, aligned to the brand */
    --nubryx-blue: #2563eb;
    --nubryx-violet: #06b6d4;
}

body.order-product {
    --nubryx-blue: #2563eb;
    --nubryx-violet: #06b6d4;
    --nubryx-border: rgba(37, 99, 235, .2);
    --nubryx-line: #e2e8f0;
    --nubryx-shadow: var(--nx-shadow);
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--bs-body-font-family);
    color: var(--nx-text);
    background: var(--nx-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--nx-text);
    font-weight: 700;
    letter-spacing: -.02em;
}

a { color: var(--nx-brand); text-underline-offset: 3px; }
a:hover { color: var(--nx-brand-hover); }

:focus-visible {
    outline: 2px solid var(--nx-brand);
    outline-offset: 2px;
}

.nx-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.nx-icon--sm { width: 15px; height: 15px; }

.nx-skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 2000;
    padding: 10px 16px;
    border-radius: var(--nx-radius-sm);
    background: var(--nx-text);
    color: #fff;
    font-weight: 600;
    transition: top .2s;
}
.nx-skip-link:focus { top: 12px; color: #fff; }

.nx-wrap {
    width: 100%;
    max-width: 80rem;              /* website Container: max-w-7xl */
    margin-inline: auto;
    padding-inline: 24px;
}
@media (min-width: 1024px) { .nx-wrap { padding-inline: 32px; } }

/* --------------------------------------------------------------------------
   Header (mirrors components/layout/Navbar.tsx)
   -------------------------------------------------------------------------- */

.nx-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .7);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 10px 35px rgba(15, 23, 42, .05);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
}

.nx-header__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    min-height: var(--nx-header-h);
    padding-block: 0 !important;
}

.nx-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.nx-logo img { display: block; width: 200px; height: auto; } /* the website's own logo (partial_nx_logo), at its w-[165px] sm:w-[180px] lg:w-[200px] h-auto */
@media (max-width: 1023.98px) { .nx-logo img { width: 180px; } }
@media (max-width: 639.98px)  { .nx-logo img { width: 165px; } }

/* Desktop navigation from 1024px, the website's lg breakpoint */
.nx-header__links {
    display: none;
    align-items: center;
    gap: 28px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}
@media (min-width: 1024px) {
    .nx-header__bar { justify-content: space-between; gap: 0; }
    .nx-header__links { display: flex; margin: 0; }
    .nx-menu-toggle,
    .nx-drawer,
    .nx-drawer-overlay { display: none !important; }
}
@media (min-width: 1280px) { .nx-header__links { gap: 36px; } }

.nx-header__links a {
    position: relative;
    display: block;
    padding: 0;
    color: var(--nx-slate-600);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
    transition: color .3s;
}
.nx-header__links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--nx-brand);
    opacity: 0;
    transition: width .3s var(--nx-ease), opacity .3s;
}
.nx-header__links a:hover,
.nx-header__links a.active { color: var(--nx-brand); }
.nx-header__links a:hover::after,
.nx-header__links a.active::after { width: 100%; opacity: 1; }

.nx-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}
@media (min-width: 1024px) { .nx-header__actions { margin-left: 0; padding-left: 16px; } }
/* Signed in, the actions take the website's Client Portal slot (lg:pl-4 + the 159.8px button), so the
   space-between bar puts the navigation exactly where nubryx.com does; wider content extends to the left. */
@media (min-width: 1024px) { .nx-header__actions:has(.client-dropdown) { flex: 0 0 175.8px; min-width: 0; justify-content: flex-end; } }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .nx-header { background: rgba(255, 255, 255, .6); } }

/* The website's primary Button (Client Portal: px-6 py-3 text-sm, light sweep, arrow) */
.nx-btn.nx-btn--site {
    position: relative;
    overflow: hidden;
    min-height: 44px;
    padding: 12px 24px;
    border-radius: 16px;
    line-height: 20px;
    border: 0;
    letter-spacing: .01em;
    box-shadow: 0 12px 35px rgba(37, 99, 235, .35);
}
.nx-btn--site::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, .2), transparent);
    transform: translateX(-100%);
    transition: transform .7s;
}
.nx-btn--site:hover::before { transform: translateX(100%); }
.nx-btn--site .nx-icon { width: 16px; height: 16px; transition: transform .3s; }
.nx-btn--site:hover .nx-icon { transform: translateX(4px); }
.nx-btn--primary.nx-btn--site:hover { transform: translateY(-4px) scale(1.02); filter: brightness(1.1); box-shadow: 0 20px 45px rgba(37, 99, 235, .45); }
.nx-btn--primary.nx-btn--site:active { transform: scale(.98); }
@media (max-width: 1023.98px) { .nx-header__portal { display: none !important; } } /* in the mobile menu instead, as on the website */

.nx-footer .js-locale-selector { width: auto; min-width: 140px; }

/* Desktop dropdowns: open on hover and keyboard focus, like the website navbar */
.nx-nav-group { position: relative; display: flex; align-items: center; height: var(--nx-header-h); }
.nx-nav-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--nx-slate-600);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    transition: color .3s;
}
.nx-nav-trigger .nx-icon { transition: transform .2s; }
.nx-nav-trigger::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--nx-brand);
    opacity: 0;
    transition: width .3s var(--nx-ease), opacity .3s;
}
.nx-nav-group:hover .nx-nav-trigger,
.nx-nav-group:focus-within .nx-nav-trigger { color: var(--nx-brand); }
.nx-nav-group:hover .nx-nav-trigger::after,
.nx-nav-group:focus-within .nx-nav-trigger::after { width: 100%; opacity: 1; }
.nx-nav-group:hover .nx-nav-trigger .nx-icon { transform: rotate(180deg); }

.nx-nav-menu {
    position: absolute;
    top: 64px;
    left: -20px;
    z-index: 1040;
    width: 320px;
    padding-top: 8px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-4px) scale(.98);
    transform-origin: top;
    transition: opacity .2s ease-out, transform .2s ease-out, visibility .2s;
}
.nx-nav-group:hover .nx-nav-menu,
.nx-nav-group:focus-within .nx-nav-menu { visibility: visible; opacity: 1; transform: none; }
.nx-nav-menu__panel {
    padding: 8px;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: var(--nx-radius);
    background: var(--nx-surface);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .14);
}
.nx-header__links .nx-nav-menu__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: #334155;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    transition: background-color .2s, color .2s;
}
.nx-header__links .nx-nav-menu__item::after { content: none; }
.nx-header__links .nx-nav-menu__item:hover,
.nx-header__links .nx-nav-menu__item:focus-visible { background: var(--nx-bg); color: var(--nx-brand); }
.nx-nav-menu__item > span { flex: 1; min-width: 0; }
.nx-nav-menu__label { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; line-height: 20px; }
.nx-nav-menu__desc { display: block; margin-top: 2px; color: var(--nx-muted); font-size: 12px; font-weight: 400; line-height: 20px; }
.nx-nav-menu__item .nx-icon { margin-top: 2px; color: var(--nx-brand); opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; }
.nx-nav-menu__item:hover .nx-icon { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .nx-nav-menu, .nx-nav-trigger .nx-icon { transition: none; } }
body.order-product #wrapper,
body.order-index #wrapper { max-width: none !important; margin: 0 !important; padding: 0 !important; }

.nx-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--nx-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, .7);
    color: var(--nx-text);
    transition: border-color .3s, box-shadow .3s;
}
.nx-menu-toggle:hover { border-color: rgba(37, 99, 235, .3); box-shadow: 0 10px 25px rgba(15, 23, 42, .08); }
.nx-menu-toggle .nx-icon { width: 20px; height: 20px; }

/* The site chrome keeps the portal's own tokens: nubryx-checkout.css (root-owned) redefines --nx-text, --nx-muted,
   --nx-border and --nx-radius on body.order-product, which would otherwise recolour the header, drawer and footer there. */
.nx-header,
.nx-drawer,
.nx-footer { --nx-text: oklch(20.8% .042 265.755); --nx-muted: oklch(55.4% .046 257.417); --nx-border: #e2e8f0; --nx-radius: 16px; }
[data-bs-theme="dark"] :is(.nx-header, .nx-drawer, .nx-footer) { --nx-text: #f1f5f9; --nx-muted: #94a3b8; --nx-border: #1e293b; }
.nx-header { color: var(--nx-text); } /* text inherits the portal colour, not the page body's */

/* lucide-react draws every icon on the website with stroke-width 2 */
.nx-header .nx-icon,
.nx-drawer .nx-icon,
.nx-footer .nx-icon { stroke-width: 2; }

.nx-mobile-divider { height: 1px; margin: 8px 0; background: var(--nx-border); list-style: none; }

.nx-mobile-menu-item {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 11px 12px !important;
    border-radius: 12px;
    color: var(--nx-text-2) !important;
    font-weight: 500;
}
.nx-mobile-menu-item svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.nx-mobile-menu-item:hover { background: var(--nx-bg); color: var(--nx-brand) !important; }
.nx-mobile-menu-item.active { background: var(--nx-brand-soft); color: var(--nx-brand) !important; }
.nx-mobile-logout { color: #dc2626 !important; }
/* --------------------------------------------------------------------------
   Mobile drawer (mirrors the website's: right side, w-80 / 85vw, overlay)
   -------------------------------------------------------------------------- */
.nx-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(2, 6, 23, .5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.nx-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    overflow-y: auto;
    background: rgba(255, 255, 255, .95);
    -webkit-backdrop-filter: blur(40px);
    backdrop-filter: blur(40px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25);
    transform: translateX(100%);
    transition: transform .3s;
}
.nx-drawer.is-open { transform: none; }
.nx-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 24px; border-bottom: 1px solid var(--nx-border); }
.nx-drawer__head .nx-logo img { width: 165px; }
@media (min-width: 640px) { .nx-drawer__head .nx-logo img { width: 180px; } }
.nx-drawer__close {
    display: inline-flex;
    padding: 8px;
    border: 1px solid var(--nx-border);
    border-radius: 20px; /* the website's rounded-lg */
    background: none;
    color: var(--nx-text);
    transition: background-color .15s;
}
.nx-drawer__close:hover { background: oklch(96.8% .007 247.896); }
.nx-drawer__close .nx-icon { width: 20px; height: 20px; }
.nx-drawer__nav { display: flex; flex-direction: column; padding: 24px; }
.nx-drawer__link {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 0;
    border-radius: 20px;
    background: none;
    color: var(--nx-text);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    text-align: left;
    text-decoration: none;
    transition: background-color .15s;
}
.nx-drawer__link:hover { background: oklch(96.8% .007 247.896); color: var(--nx-text); }
.nx-drawer__link .nx-icon { width: 18px; height: 18px; transition: transform .2s; }
.nx-drawer__link[aria-expanded="true"] .nx-icon { transform: rotate(180deg); }
.nx-drawer__children { margin: 0 0 8px 16px; padding-left: 12px; border-left: 1px solid var(--nx-border); }
.nx-drawer__children a {
    display: block;
    padding: 12px 16px;
    border-radius: 20px;
    color: var(--nx-slate-600);
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
}
.nx-drawer__children a:hover { background: oklch(96.8% .007 247.896); color: var(--nx-brand); }
.nx-drawer__account { margin: 0 0 16px; padding: 0 0 16px; border-bottom: 1px solid var(--nx-border); list-style: none; }
.nx-drawer__foot { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--nx-border); }
.nx-btn.nx-drawer__portal { display: flex; width: 100%; padding: 16px 32px; font-size: 15px; line-height: 22.5px; }
.nx-drawer__support {
    display: block;
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 20px;
    color: var(--nx-slate-600);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-align: center;
    text-decoration: none;
}
.nx-drawer__support:hover { background: oklch(96.8% .007 247.896); color: var(--nx-brand); }
.nx-drawer__contact { margin: 8px 0 0; color: var(--nx-muted); font-size: 12px; line-height: 20px; text-align: center; }
.nx-drawer__contact a { color: oklch(37.2% .044 257.287); font-weight: 600; text-decoration: none; }
.nx-drawer__contact a:hover { color: var(--nx-brand); }
@media (prefers-reduced-motion: reduce) { .nx-drawer, .nx-drawer__link .nx-icon { transition: none; } }

/* Account menu */
.nx-account {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 6px 6px;
    border: 1px solid var(--nx-border);
    border-radius: 999px;
    background: var(--nx-surface);
    color: var(--nx-text);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
    transition: border-color .2s, box-shadow .2s;
}
.nx-account:hover { border-color: rgba(37, 99, 235, .3); box-shadow: 0 8px 20px rgba(15, 23, 42, .08); }
.nx-account img, .nx-account .rounded-circle { width: 28px; height: 28px; }

.client-dropdown .dropdown-menu {
    min-width: 240px;
    margin-top: 8px !important;
    padding: 8px;
    border: 1px solid var(--nx-border);
    border-radius: var(--nx-radius);
    box-shadow: 0 20px 45px rgba(15, 23, 42, .12);
}
.client-dropdown .dropdown-header {
    display: flex;
    flex-direction: column;
    padding: 8px 12px 10px;
    white-space: normal;
}
.client-dropdown .dropdown-header strong { color: var(--nx-text); font-size: 14px; }
.client-dropdown .dropdown-header span { color: var(--nx-muted); font-size: 12px; word-break: break-all; }
.client-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 14px;
    color: var(--nx-text-2);
}
.client-dropdown .dropdown-item:hover,
.client-dropdown .dropdown-item:focus { background: var(--nx-brand-soft); color: var(--nx-brand); }

/* --------------------------------------------------------------------------
   Buttons (mirrors components/ui/Button.tsx)
   -------------------------------------------------------------------------- */

.nx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 18px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .3s var(--nx-ease), box-shadow .3s, background-color .2s, border-color .2s, color .2s, filter .2s;
}
.nx-btn--primary {
    background: var(--nx-gradient);
    color: #fff;
    box-shadow: var(--nx-shadow-brand);
}
.nx-btn--primary:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 18px 40px rgba(37, 99, 235, .4); }
.nx-btn--ghost { color: var(--nx-text-2); }
.nx-btn--ghost:hover,
.nx-btn--ghost.active { color: var(--nx-brand); background: var(--nx-brand-soft); }

.btn {
    --bs-btn-font-weight: 600;
    --bs-btn-border-radius: 12px;
    --bs-btn-padding-x: 1rem;
    --bs-btn-padding-y: .55rem;
    --bs-btn-focus-box-shadow: 0 0 0 .25rem rgba(37, 99, 235, .25);
    font-weight: 600;
    transition: transform .25s var(--nx-ease), box-shadow .25s, background-color .2s, border-color .2s, color .2s, filter .2s;
}
.btn-sm { --bs-btn-border-radius: 10px; --bs-btn-padding-y: .35rem; --bs-btn-padding-x: .75rem; }
.btn-lg { --bs-btn-border-radius: 16px; --bs-btn-padding-y: .8rem; --bs-btn-padding-x: 1.5rem; }

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #2563eb;
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #1d4ed8;
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-bg: #1d4ed8;
    --bs-btn-active-border-color: transparent;
    --bs-btn-disabled-bg: #2563eb;
    --bs-btn-disabled-border-color: transparent;
    background-image: var(--nx-gradient);
    box-shadow: 0 8px 22px rgba(37, 99, 235, .25);
}
.btn-primary:hover,
.btn-primary:focus-visible { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 14px 30px rgba(37, 99, 235, .35); }

.btn-outline-primary {
    --bs-btn-color: #2563eb;
    --bs-btn-border-color: #bfdbfe;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #2563eb;
    --bs-btn-hover-border-color: #2563eb;
    --bs-btn-active-bg: #1d4ed8;
    --bs-btn-active-border-color: #1d4ed8;
    background: #fff;
}

.btn-secondary,
.btn-light,
.btn-outline-secondary {
    --bs-btn-color: #334155;
    --bs-btn-bg: #fff;
    --bs-btn-border-color: #e2e8f0;
    --bs-btn-hover-color: #2563eb;
    --bs-btn-hover-bg: #eff6ff;
    --bs-btn-hover-border-color: #bfdbfe;
    --bs-btn-active-color: #1d4ed8;
    --bs-btn-active-bg: #dbeafe;
    --bs-btn-active-border-color: #93c5fd;
}

.btn-dark {
    --bs-btn-bg: #0f172a;
    --bs-btn-border-color: #0f172a;
    --bs-btn-hover-bg: #1e293b;
    --bs-btn-hover-border-color: #1e293b;
}

.btn-danger { --bs-btn-bg: #dc2626; --bs-btn-border-color: #dc2626; --bs-btn-hover-bg: #b91c1c; --bs-btn-hover-border-color: #b91c1c; }
.btn-success { --bs-btn-bg: #16a34a; --bs-btn-border-color: #16a34a; --bs-btn-hover-bg: #15803d; --bs-btn-hover-border-color: #15803d; }

.btn:disabled,
.btn.disabled { transform: none; box-shadow: none; filter: none; }

/* --------------------------------------------------------------------------
   Shell: sidebar + content
   -------------------------------------------------------------------------- */

.nx-main { flex: 1 0 auto; padding-block: 28px 56px; }

.nx-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
@media (min-width: 992px) {
    .nx-shell { grid-template-columns: 256px minmax(0, 1fr); }
    .nx-shell--full { grid-template-columns: minmax(0, 1fr); }
}
.nx-shell--full .nx-shell__content { width: 100%; }

.nx-shell__content { min-width: 0; }
#nx-main:focus { outline: none; }

.nx-sidebar {
    position: sticky;
    top: calc(var(--nx-header-h) + 20px);
    padding: 12px;
    border: 1px solid var(--nx-border);
    border-radius: var(--nx-radius-lg);
    background: var(--nx-surface);
    box-shadow: var(--nx-shadow);
}
.nx-sidebar-nav { display: flex; flex-direction: column; }
.nx-menu-section { padding: 4px 0 10px; margin-bottom: 4px; border-bottom: 1px solid var(--nx-border-soft); }
.nx-menu-section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 2px; }
.nx-menu-label {
    padding: 8px 12px 6px;
    color: var(--nx-subtle);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.nx-menu-item {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 42px;
    padding: 9px 12px;
    margin: 1px 0;
    border-radius: 12px;
    color: var(--nx-slate-600);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color .2s, color .2s, transform .2s var(--nx-ease);
}
.nx-menu-item:hover { background: var(--nx-bg); color: var(--nx-brand); transform: translateX(2px); }
.nx-menu-item.active {
    background: var(--nx-brand-soft);
    color: var(--nx-brand);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--nx-brand);
}
.nx-menu-icon { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; }
.nx-menu-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.nx-logout-item { color: var(--nx-muted); }
.nx-logout-item:hover { color: #dc2626; background: #fef2f2; }

.nx-balance-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid #dbeafe;
    border-radius: var(--nx-radius);
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}
.nx-balance-icon {
    display: flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #fff;
    color: var(--nx-brand);
}
.nx-balance-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nx-balance-label { color: var(--nx-muted); font-size: 12px; font-weight: 500; }
.nx-balance-value { margin-top: 2px; color: var(--nx-text); font-size: 16px; font-weight: 700; }
.nx-sidebar-note { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--nx-bg); color: var(--nx-muted); font-size: 12px; }
.nx-sidebar-note strong, .nx-sidebar-note span { display: block; }
.nx-sidebar-note strong { margin-bottom: 4px; color: var(--nx-text-2); }

/* --------------------------------------------------------------------------
   Content components
   -------------------------------------------------------------------------- */

.breadcrumb { margin-bottom: 20px; font-size: 14px; --bs-breadcrumb-divider-color: var(--nx-subtle); }
.breadcrumb-item a { color: var(--nx-muted); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--nx-brand); }
.breadcrumb-item.active { color: var(--nx-text); font-weight: 500; }

.card {
    --bs-card-border-color: var(--nx-border);
    --bs-card-border-radius: var(--nx-radius-lg);
    --bs-card-inner-border-radius: calc(var(--nx-radius-lg) - 1px);
    --bs-card-cap-bg: var(--nx-surface);
    --bs-card-bg: var(--nx-surface);
    --bs-card-spacer-x: 1.5rem;
    --bs-card-spacer-y: 1.25rem;
    --bs-card-cap-padding-y: 1.1rem;
    --bs-card-cap-padding-x: 1.5rem;
    border-color: var(--nx-border);
    box-shadow: var(--nx-shadow);
    transition: box-shadow .4s var(--nx-ease), border-color .3s;
}
.card-header {
    border-bottom-color: var(--nx-border-soft);
    background: var(--nx-surface);
}
.card-header h1, .card-header h2, .card-header h3,
.card-header h4, .card-header h5, .card-header .card-title {
    margin-bottom: 0;
    font-size: 1.125rem;
    font-weight: 700;
}
.card-footer { border-top-color: var(--nx-border-soft); background: var(--nx-bg); }
.card-body { background: var(--nx-surface); }
/* Keep the body's background inside the card's rounded corners when there is no header or footer */
.card > .card-body:first-child { border-top-left-radius: var(--bs-card-inner-border-radius); border-top-right-radius: var(--bs-card-inner-border-radius); }
.card > .card-body:last-child { border-bottom-left-radius: var(--bs-card-inner-border-radius); border-bottom-right-radius: var(--bs-card-inner-border-radius); }

.content-block > h1:first-child,
.content-block > .h1:first-child { font-size: clamp(1.75rem, 2.4vw, 2.25rem); }

.table {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: #f8fafc;
    --bs-table-striped-bg: #f8fafc;
    --bs-table-border-color: var(--nx-border-soft);
    margin-bottom: 0;
    vertical-align: middle;
    font-size: 14px;
}
.table > :not(caption) > * > * { padding: .85rem 1rem; }
.table thead th,
.table > thead > tr > th {
    background: var(--nx-bg);
    color: var(--nx-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--nx-border);
    white-space: nowrap;
}
.table tbody tr { transition: background-color .15s; }
.table a { font-weight: 500; text-decoration: none; }
.table a:hover { text-decoration: underline; }
.table-responsive { border-radius: inherit; }

.badge {
    --bs-badge-font-weight: 600;
    --bs-badge-border-radius: 999px;
    --bs-badge-padding-x: .7em;
    --bs-badge-padding-y: .4em;
    letter-spacing: .01em;
}
.badge.bg-success, .badge.text-bg-success { background: #dcfce7 !important; color: #15803d !important; }
.badge.bg-warning, .badge.text-bg-warning { background: #fef3c7 !important; color: #b45309 !important; }
.badge.bg-danger, .badge.text-bg-danger { background: #fee2e2 !important; color: #b91c1c !important; }
.badge.bg-info, .badge.text-bg-info { background: #e0f2fe !important; color: #0369a1 !important; }
.badge.bg-primary, .badge.text-bg-primary { background: #dbeafe !important; color: #1d4ed8 !important; }
.badge.bg-secondary, .badge.text-bg-secondary, .badge.bg-light { background: #f1f5f9 !important; color: #475569 !important; }

.alert {
    --bs-alert-border-radius: var(--nx-radius);
    --bs-alert-padding-x: 1.1rem;
    --bs-alert-padding-y: .9rem;
    font-size: 14px;
    line-height: 1.6;
}
.alert-success { --bs-alert-bg: #f0fdf4; --bs-alert-border-color: #bbf7d0; --bs-alert-color: #166534; }
.alert-danger { --bs-alert-bg: #fef2f2; --bs-alert-border-color: #fecaca; --bs-alert-color: #991b1b; }
.alert-warning { --bs-alert-bg: #fffbeb; --bs-alert-border-color: #fde68a; --bs-alert-color: #92400e; }
.alert-info, .alert-primary { --bs-alert-bg: #eff6ff; --bs-alert-border-color: #bfdbfe; --bs-alert-color: #1e40af; }

.form-label { margin-bottom: .4rem; color: var(--nx-text); font-size: 14px; font-weight: 500; }
.form-text { color: var(--nx-muted); }
.form-control,
.form-select {
    min-height: 44px;
    border-color: var(--nx-border);
    border-radius: 12px;
    color: var(--nx-text);
    font-size: 15px;
    transition: border-color .2s, box-shadow .2s;
}
.form-control-sm, .form-select-sm { min-height: 36px; border-radius: 10px; font-size: 14px; }
.form-control::placeholder { color: var(--nx-subtle); }
.form-control:focus,
.form-select:focus {
    border-color: var(--nx-brand);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}
.form-control.is-invalid, .was-validated .form-control:invalid { border-color: #f87171; }
.invalid-feedback { font-size: 13px; }
.form-check-input:checked { background-color: var(--nx-brand); border-color: var(--nx-brand); }
.form-check-input:focus { box-shadow: 0 0 0 4px rgba(37, 99, 235, .15); border-color: var(--nx-brand); }
.input-group-text { border-color: var(--nx-border); background: var(--nx-bg); color: var(--nx-muted); }

.nav-tabs { --bs-nav-tabs-border-color: var(--nx-border); --bs-nav-tabs-link-active-color: var(--nx-brand); --bs-nav-tabs-link-active-border-color: var(--nx-border) var(--nx-border) #fff; }
.nav-tabs .nav-link { color: var(--nx-muted); font-weight: 500; }
.nav-pills { --bs-nav-pills-link-active-bg: var(--nx-brand); --bs-nav-pills-border-radius: 10px; }
.nav-link { color: var(--nx-text-2); }

.list-group { --bs-list-group-border-color: var(--nx-border-soft); --bs-list-group-action-hover-bg: var(--nx-bg); --bs-list-group-active-bg: var(--nx-brand); --bs-list-group-active-border-color: var(--nx-brand); }

.pagination { --bs-pagination-color: var(--nx-text-2); --bs-pagination-border-color: var(--nx-border); --bs-pagination-hover-bg: var(--nx-brand-soft); --bs-pagination-hover-color: var(--nx-brand); --bs-pagination-active-bg: var(--nx-brand); --bs-pagination-active-border-color: var(--nx-brand); --bs-pagination-border-radius: 10px; gap: 4px; }
.page-link { border-radius: 10px !important; }

.modal { --bs-modal-border-radius: var(--nx-radius-lg); --bs-modal-border-color: var(--nx-border); --bs-modal-header-border-color: var(--nx-border-soft); --bs-modal-footer-border-color: var(--nx-border-soft); }
.modal-content { box-shadow: 0 30px 80px rgba(15, 23, 42, .25); }

.dropdown-menu { --bs-dropdown-border-color: var(--nx-border); --bs-dropdown-border-radius: 14px; --bs-dropdown-link-active-bg: var(--nx-brand); box-shadow: 0 15px 45px rgba(15, 23, 42, .12); }

.toast { border: 1px solid var(--nx-border); border-radius: var(--nx-radius); box-shadow: 0 20px 45px rgba(15, 23, 42, .15); }

.text-muted, .text-body-secondary { color: var(--nx-muted) !important; }
.text-primary { color: var(--nx-brand) !important; }
.bg-primary { background-color: var(--nx-brand) !important; }
.link-primary { color: var(--nx-brand) !important; }

/* Empty states: FOSSBilling renders "no items" as a single centred table cell */
.table td[colspan].text-center,
.table td[colspan] .text-center {
    padding-block: 2.5rem !important;
    color: var(--nx-muted);
}

/* Loading overlay */
.wait {
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(248, 250, 252, .6);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

/* Back to top */
.nx-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1020;
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--nx-surface);
    border: 1px solid var(--nx-border);
    color: var(--nx-text-2);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .12);
    transition: transform .3s var(--nx-ease), color .2s, border-color .2s;
}
.nx-to-top:hover { transform: translateY(-2px); color: var(--nx-brand); border-color: #bfdbfe; }

/* --------------------------------------------------------------------------
   Footer (mirrors components/layout/Footer.tsx)
   -------------------------------------------------------------------------- */

.nx-footer {
    flex-shrink: 0;
    margin-top: auto;
    border-top: 1px solid rgba(226, 232, 240, .8);
    background: var(--nx-surface);
    color: var(--nx-muted);
    font-size: 14px;
}
/* Mirrors the website footer grid: two columns on phones (Company and Support full width),
   brand split in two above four content-sized columns until 1280px, then five columns. */
.nx-footer__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 24px;
    padding-block: 48px;
}
.nx-footer__brand,
.nx-footer__wide { grid-column: 1 / -1; }
.nx-footer__split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.nx-footer .nx-footer__split li + li { margin-top: 0; }
@media (min-width: 640px) {
    .nx-footer__grid { gap: 48px 32px; padding-block: 56px; }
    .nx-footer__wide { grid-column: auto; }
    .nx-footer__split { display: block; }
    .nx-footer .nx-footer__split li + li { margin-top: 14px; }
}
@media (min-width: 768px) {
    .nx-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr) minmax(0, 1.2fr) minmax(0, 1.3fr); column-gap: 24px; }
    .nx-footer__brand { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; column-gap: 32px; }
    .nx-footer__brand .nx-footer__location { margin-top: 0; justify-self: end; }
}
@media (min-width: 1024px) { .nx-footer__grid { column-gap: 40px; padding-block: 80px 64px; } }
@media (min-width: 1280px) {
    .nx-footer__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1.15fr) minmax(0, 1.35fr); column-gap: 48px; }
    .nx-footer__brand { display: block; grid-column: auto; padding-right: 24px; }
    .nx-footer__brand .nx-footer__location { margin-top: 24px; }
}

.nx-footer__intro,
.nx-footer__location { max-width: 24rem; }
.nx-footer .nx-logo { display: flex; width: max-content; }
.nx-footer__intro > p { margin: 24px 0 0; line-height: 28px; color: var(--nx-slate-600); }
.nx-footer__location {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 24px;
    padding: 16px;
    border: 1px solid rgba(226, 232, 240, .8);
    border-radius: var(--nx-radius);
    background: rgba(248, 250, 252, .7);
}
/* Inline icons sit in a 20px box (24px for the pin) so they centre on the first line of the text beside them. */
.nx-footer__icon { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 16px; height: 20px; color: var(--nx-brand); }
.nx-footer__icon--pin { width: 18px; height: 24px; }
.nx-footer__location .nx-icon { width: 18px; height: 18px; }
.nx-footer__location p { margin: 0; color: var(--nx-slate-600); line-height: 24px; }
.nx-footer__location strong { display: block; margin-top: 2px; color: var(--nx-text); font-weight: 600; }
.nx-footer__eyebrow { display: block; line-height: 16px; color: var(--nx-muted); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.nx-flag { display: inline-block; width: 18px; height: 12px; border-radius: 2px; vertical-align: -1px; box-shadow: 0 0 0 1px rgba(15, 23, 42, .1); }
.nx-footer__contacts { display: grid; gap: 16px; margin: 20px 0 0; }
.nx-footer__contacts dt { color: var(--nx-muted); font-size: 12px; font-weight: 500; line-height: 16px; }
.nx-footer__contacts dd { margin: 4px 0 0; line-height: 20px; overflow-wrap: anywhere; }
.nx-footer__contacts--hours { margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(226, 232, 240, .8); }
.nx-footer__strong { display: inline-flex; align-items: flex-start; gap: 8px; line-height: 20px; color: var(--nx-text) !important; font-weight: 500; overflow-wrap: normal; }
.nx-footer__contacts .nx-footer__hours { display: flex; align-items: flex-start; gap: 8px; line-height: 20px; color: var(--nx-slate-600); overflow-wrap: normal; }
.nx-footer__hours .d-block + .d-block { margin-top: 2px; }
.nx-footer__contacts dd.nx-footer__strong { display: flex; margin-top: 6px; }

.nx-footer h2 {
    margin: 0;
    color: var(--nx-text);
    font-size: 12px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.nx-footer ul { margin: 20px 0 0; padding: 0; list-style: none; }
.nx-footer li { line-height: 24px; } .nx-footer li > a { line-height: 20px; } /* the website's list items keep the 16px/24px root line box */
.nx-footer li + li { margin-top: 14px; }
.nx-footer a { border-radius: 4px; color: var(--nx-slate-600); text-decoration: none; text-decoration-color: color-mix(in srgb, var(--nx-brand) 30%, transparent); text-underline-offset: 4px; transition: color .2s; }
.nx-footer a:hover { color: var(--nx-brand); text-decoration-line: underline; }
.nx-footer a.nx-logo:hover { text-decoration-line: none; }
/* Knowledge Base is an external link on the website (it lives here), so it carries lucide's ArrowUpRight (13px, slate-400, gap-1). */
.nx-footer nav a[href$="/support/kb"] { display: inline-flex; align-items: center; gap: 4px; }
.nx-footer nav a[href$="/support/kb"]::after {
    content: "";
    flex-shrink: 0;
    width: 13px;
    height: 13px;
    background-color: oklch(70.4% .04 256.788);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E") center / 13px 13px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E") center / 13px 13px no-repeat;
    transition: background-color .2s;
}
.nx-footer nav a[href$="/support/kb"]:hover::after { background-color: var(--nx-brand); }

.nx-footer__bank { margin: 0 0 16px; font-size: 13px; }
.nx-footer__bottom {
    display: block;
    padding-block: 24px;
    line-height: 24px;
    border-top: 1px solid rgba(226, 232, 240, .8);
    color: var(--nx-muted);
}
.nx-footer__bottom p { margin: 0; }
.nx-footer__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.nx-footer__meta p { margin: 0; }
.nx-footer__meta a { display: inline-flex; align-items: center; gap: 6px; }
@media (min-width: 640px) { .nx-footer__bottom { padding-block: 28px; } }

/* --------------------------------------------------------------------------
   Error page
   -------------------------------------------------------------------------- */

.nx-error {
    max-width: 640px;
    margin: 24px auto;
    padding: 56px 32px;
    border: 1px solid var(--nx-border);
    border-radius: var(--nx-radius-lg);
    background: var(--nx-surface);
    box-shadow: var(--nx-shadow);
    text-align: center;
}
.nx-error__code {
    display: inline-flex;
    margin-bottom: 20px;
    padding: 6px 14px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: var(--nx-brand-soft);
    color: var(--nx-brand);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.nx-error h1 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.nx-error p { margin: 14px auto 0; max-width: 460px; color: var(--nx-muted); line-height: 1.7; }
.nx-error__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.nx-error__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--nx-border-soft); font-size: 14px; }
.nx-error__links a { text-decoration: none; font-weight: 500; }

/* --------------------------------------------------------------------------
   Order flow: one frame instead of nested cards, brand-coloured steps
   -------------------------------------------------------------------------- */

.nx-order-toolbar { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.nx-order-toolbar label { margin: 0 !important; }
.nx-order-toolbar .form-select { min-height: 38px; margin: 0 !important; font-size: 14px; }

.nbx-checkout-page { padding: 0 !important; background: none !important; }
.nbx-checkout-page > .container,
.nbx-checkout-hero > .container { max-width: none; padding-inline: 0; }
.nbx-checkout-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-bottom: 24px !important;
    padding: 36px 36px 32px !important;
    border: 0 !important;
    border-radius: var(--nx-radius-lg) !important;
    background:
        radial-gradient(circle at 20% 0%, rgba(59, 130, 246, .35), transparent 55%),
        radial-gradient(circle at 90% 20%, rgba(34, 211, 238, .18), transparent 45%),
        linear-gradient(160deg, #10366f 0%, #07192d 60%, #04111f 100%) !important;
    color: #fff;
    box-shadow: 0 24px 60px rgba(7, 25, 45, .25);
}
.nbx-checkout-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .06;
    background-image: linear-gradient(to right, #60a5fa 1px, transparent 1px), linear-gradient(to bottom, #60a5fa 1px, transparent 1px);
    background-size: 48px 48px;
}
.nbx-checkout-hero h1 { margin: 10px 0 8px; color: #fff !important; font-size: clamp(1.75rem, 3vw, 2.4rem) !important; }
.nbx-checkout-hero p { max-width: 640px; color: rgba(219, 234, 254, .78) !important; }
.nbx-checkout-hero .nbx-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid rgba(96, 165, 250, .3);
    border-radius: 999px;
    background: rgba(96, 165, 250, .12);
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.nbx-checkout-hero .nbx-trust-items { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px !important; }
.nbx-checkout-hero .nbx-trust-items li {
    border-color: rgba(255, 255, 255, .15) !important;
    background: rgba(255, 255, 255, .08) !important;
    color: #fff;
    font-weight: 500 !important;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.nbx-checkout-hero .nbx-trust-items .icon { color: #67e8f9 !important; }
.nbx-order-shell { background: transparent !important; box-shadow: none !important; }
.nbx-order-shell > .card-body { padding: 0 !important; background: transparent; }
@media (max-width: 575.98px) { .nbx-checkout-hero { padding: 24px 20px !important; } }
#orderManager .accordion-item { border-color: var(--nx-border-soft); }
#orderManager .accordion-button { font-weight: 600; color: var(--nx-text); }
#orderManager .accordion-button:not(.collapsed) { color: var(--nx-brand); background: #f5f9ff; box-shadow: none; }
#orderManager .accordion-button.collapsed { color: var(--nx-muted); }
#orderManager .accordion-button:focus { box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
#orderManager .badge.bg-info,
#orderManager .badge.text-bg-info { background: var(--nx-brand-soft) !important; color: var(--nx-brand) !important; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 767.98px) {
    .nx-main { padding-block: 16px 40px; }
    .card { --bs-card-border-radius: var(--nx-radius); --bs-card-spacer-x: 1.1rem; --bs-card-cap-padding-x: 1.1rem; }
    .table > :not(caption) > * > * { padding: .7rem .75rem; }
    .nx-error { padding: 40px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* --------------------------------------------------------------------------
   Dark mode
   -------------------------------------------------------------------------- */

[data-bs-theme="dark"] {
    --nx-brand-soft: rgba(37, 99, 235, .16);
    --nx-text: #f1f5f9;
    --nx-text-2: #cbd5e1;
    --nx-muted: #94a3b8;
    --nx-subtle: #64748b;
    --nx-border: #1e293b;
    --nx-border-soft: #172033;
    --nx-bg: #0b1120;
    --nx-surface: #111827;
    --nx-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    --bs-body-color: #e2e8f0;
    --bs-body-bg: #0b1120;
    --bs-border-color: #1e293b;
}
[data-bs-theme="dark"] .nx-header { background: rgba(11, 17, 32, .8); border-bottom-color: #1e293b; }
[data-bs-theme="dark"] .nx-header__links a,
[data-bs-theme="dark"] .nx-footer a,
[data-bs-theme="dark"] .nx-footer__brand p,
[data-bs-theme="dark"] .nx-menu-item { color: #cbd5e1; }
[data-bs-theme="dark"] .nx-menu-toggle { background: #111827; }
[data-bs-theme="dark"] .nx-balance-card { background: #172554; border-color: #1e3a8a; }
[data-bs-theme="dark"] .nx-balance-icon { background: #1e293b; }
[data-bs-theme="dark"] .btn-outline-primary,
[data-bs-theme="dark"] .btn-secondary,
[data-bs-theme="dark"] .btn-light,
[data-bs-theme="dark"] .btn-outline-secondary { --bs-btn-bg: #111827; background: #111827; --bs-btn-color: #e2e8f0; --bs-btn-border-color: #334155; }
[data-bs-theme="dark"] .card-footer { background: #0f172a; }
[data-bs-theme="dark"] .wait { background: rgba(11, 17, 32, .6); }

/* --------------------------------------------------------------------------
   Public pages: page header, knowledge base, contact, empty states
   -------------------------------------------------------------------------- */

.nx-public-main { display: block; }
.nx-public-main:focus { outline: none; }

.nx-eyebrow-label {
    margin: 0 0 10px;
    color: var(--nx-brand);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.nx-page-head { margin-bottom: 28px; }
.nx-page-head h1 { margin: 0; color: var(--nx-text); font-size: clamp(1.75rem, 2.6vw, 2.25rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.nx-page-head p:not(.nx-eyebrow-label) { max-width: 640px; margin: 10px 0 0; color: var(--nx-muted); font-size: 16px; line-height: 1.7; }
.nx-page-head--split { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 992px) { .nx-page-head--split { flex-direction: row; align-items: flex-end; justify-content: space-between; } }

.nx-search { position: relative; display: flex; gap: 8px; width: 100%; max-width: 420px; }
.nx-search > .nx-icon { position: absolute; top: 50%; left: 14px; color: var(--nx-subtle); transform: translateY(-50%); pointer-events: none; }
.nx-search .form-control { padding-left: 42px; }
.nx-search .btn { flex-shrink: 0; }

.nx-section-label { margin: 0 0 12px; color: var(--nx-text); font-size: 16px; font-weight: 600; }

.nx-card-grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .nx-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .nx-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.nx-kb-card { height: 100%; transition: transform .3s var(--nx-ease), border-color .3s, box-shadow .3s; }
.nx-kb-card:hover { transform: translateY(-4px); border-color: rgba(37, 99, 235, .25); box-shadow: var(--nx-shadow-hover); }
.nx-kb-card .card-body { display: flex; flex-direction: column; height: 100%; padding: 28px; }
.nx-kb-card__icon, .nx-empty__icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(37, 99, 235, .1);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(37, 99, 235, .1), rgba(37, 99, 235, .05));
    color: var(--nx-brand);
}
.nx-kb-card h2 { margin: 18px 0 0; font-size: 19px; font-weight: 700; }
.nx-kb-card h2 a { color: var(--nx-text); text-decoration: none; }
.nx-kb-card h2 a:hover { color: var(--nx-brand); }
.nx-kb-card p { margin: 8px 0 0; color: var(--nx-muted); line-height: 1.7; }
.nx-kb-card ul { margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid var(--nx-border-soft); list-style: none; }
.nx-kb-card li + li { margin-top: 8px; }
.nx-kb-card li a { color: var(--nx-text-2); font-size: 14px; text-decoration: none; }
.nx-kb-card li a:hover { color: var(--nx-brand); }
.nx-kb-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 20px; font-size: 14px; font-weight: 600; text-decoration: none; }
.nx-kb-card__more .nx-icon { transition: transform .2s; }
.nx-kb-card__more:hover .nx-icon { transform: translateX(3px); }

.nx-link-list { overflow: hidden; border: 1px solid var(--nx-border); border-radius: var(--nx-radius); background: var(--nx-surface); box-shadow: var(--nx-shadow); }
.nx-link-list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; color: var(--nx-text); font-weight: 500; text-decoration: none; transition: background-color .2s, color .2s; }
.nx-link-list a + a { border-top: 1px solid var(--nx-border-soft); }
.nx-link-list a:hover { background: var(--nx-bg); color: var(--nx-brand); }
.nx-link-list .nx-icon { flex-shrink: 0; color: var(--nx-subtle); }
.nx-link-list a:hover .nx-icon { color: var(--nx-brand); }

.nx-empty {
    grid-column: 1 / -1;
    padding: 48px 24px;
    border: 1px dashed var(--nx-border);
    border-radius: var(--nx-radius-lg);
    background: var(--nx-surface);
    text-align: center;
}
.nx-empty h2 { margin: 16px 0 0; color: var(--nx-text); font-size: 18px; font-weight: 600; }
.nx-empty p { max-width: 460px; margin: 8px auto 0; color: var(--nx-muted); line-height: 1.7; }
.nx-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }

.nx-help-cta { margin-top: 28px; }
.nx-help-cta .card-body { display: flex; flex-direction: column; gap: 16px; padding: 24px 28px; }
@media (min-width: 768px) { .nx-help-cta .card-body { flex-direction: row; align-items: center; justify-content: space-between; } }
.nx-help-cta h2 { margin: 0; color: var(--nx-text); font-size: 18px; font-weight: 600; }
.nx-help-cta p { margin: 4px 0 0; color: var(--nx-muted); }

.nx-contact-layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 992px) { .nx-contact-layout { grid-template-columns: minmax(0, 1fr) 320px; } }
.nx-contact-layout > .card > .card-body { padding: 28px; }
.nx-contact-aside h2 { margin: 0; color: var(--nx-text); font-size: 16px; font-weight: 600; }
.nx-contact-list { display: grid; gap: 14px; margin: 16px 0 0; }
.nx-contact-list dt { color: var(--nx-muted); font-size: 12px; font-weight: 500; }
.nx-contact-list dd { margin: 2px 0 0; font-size: 14px; word-break: break-all; }
.nx-contact-list a { color: var(--nx-text-2); font-weight: 500; text-decoration: none; }
.nx-contact-list a:hover { color: var(--nx-brand); }
.nx-contact-hours { margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--nx-border-soft); list-style: none; color: var(--nx-text-2); font-size: 13px; line-height: 1.6; }
.nx-contact-hours li { display: flex; gap: 8px; }
.nx-contact-hours li + li { margin-top: 10px; }
.nx-contact-hours .nx-icon { flex-shrink: 0; margin-top: 3px; color: var(--nx-brand); }

.nx-auth-simple { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - var(--nx-header-h)); padding: 56px 20px; background: var(--nx-bg); }
.nx-auth-simple__card { width: 100%; max-width: 440px; }
.nx-auth-simple__card .card-body { padding: 36px; }
.nx-auth-simple h1 { margin: 0; color: var(--nx-text); font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.nx-auth-simple h1 + p { margin: 8px 0 24px; }
.nx-auth-simple__footer { margin: 20px 0 0; text-align: center; font-size: 14px; }

[data-bs-theme="dark"] .nx-nav-menu__panel,
[data-bs-theme="dark"] .nx-link-list,
[data-bs-theme="dark"] .nx-empty { background: #111827; border-color: #1e293b; }
[data-bs-theme="dark"] .nx-footer__location { background: #0f172a; border-color: #1e293b; }
[data-bs-theme="dark"] .nx-nav-trigger,
[data-bs-theme="dark"] .nx-header__links .nx-nav-menu__item { color: #cbd5e1; }
[data-bs-theme="dark"] .nx-header__links .nx-nav-menu__item:hover,
[data-bs-theme="dark"] .nx-link-list a:hover { background: #1e293b; }

/* --------------------------------------------------------------------------
   Footer social links: mirrors nubryx.com components/layout/SocialLinks.tsx
   (40px tiles, 10px gap). Hidden in the order flow, like the website.
   -------------------------------------------------------------------------- */
.nx-footer__social { margin-top: 24px; }
@media (min-width: 768px) { .nx-footer__brand .nx-footer__social { grid-column: 1 / -1; } }
.nx-footer .nx-social { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
.nx-footer .nx-social li { line-height: 0; }
.nx-footer .nx-social li + li { margin-top: 0; }
.nx-footer .nx-social a {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--nx-border);
    border-radius: 12px;
    background: var(--nx-surface);
    color: var(--nx-muted);
    text-decoration: none;
    transition: color .2s, background-color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.nx-footer .nx-social a:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--nx-brand) 30%, transparent);
    background: color-mix(in srgb, var(--nx-brand) 5%, var(--nx-surface));
    color: var(--nx-brand);
    box-shadow: 0 8px 20px rgba(37, 99, 235, .14);
    text-decoration: none;
}
.nx-footer .nx-social svg { width: 18px; height: 18px; }
[data-bs-theme="dark"] .nx-footer .nx-social a { color: var(--nx-muted); }
[data-bs-theme="dark"] .nx-footer .nx-social a:hover { color: #60a5fa; border-color: rgba(96, 165, 250, .35); background: rgba(37, 99, 235, .12); box-shadow: 0 8px 20px rgba(0, 0, 0, .3); }
body:is(.order-index, .order-product) .nx-footer__social { display: none; }
@media (prefers-reduced-motion: reduce) { .nx-footer .nx-social a { transition: none; } .nx-footer .nx-social a:hover { transform: none; } }
