/*
 * AIXS Cloud client area: shared atoms (same names and values as the main
 * site's styles/global.css), the dark frame (header, title band, footer) and
 * the body shell. Tokens live in custom.css.
 */

/* ============ ATOMS ============ */
.aixs-eyebrow {
    margin: 0;
    font-family: var(--aixs-font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--primary);
}
.aixs-zh .aixs-eyebrow { letter-spacing: 0.2em; }

/* four 6px corner squares */
.aixs-ticks {
    --tick: var(--primary);
    background-image:
        linear-gradient(var(--tick), var(--tick)),
        linear-gradient(var(--tick), var(--tick)),
        linear-gradient(var(--tick), var(--tick)),
        linear-gradient(var(--tick), var(--tick));
    background-size: 6px 6px;
    background-position: 0 0, 100% 0, 0 100%, 100% 100%;
    background-repeat: no-repeat;
}
.aixs-panel {
    background-color: var(--bg);
    border: 1px solid var(--border-muted);
    box-shadow: 0 1px 0 rgba(11, 11, 22, 0.03), 0 18px 40px -32px rgba(11, 11, 22, 0.35);
}

/* striped display type (main site .striae) */
.striae {
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}
.striae-white {
    background-image:
        repeating-linear-gradient(to bottom, rgba(11, 11, 22, 0.62) 0, rgba(11, 11, 22, 0.62) 2px, transparent 2px, transparent 5px),
        linear-gradient(to bottom, #fff 0%, #dcdce8 100%);
}
.striae-accent {
    background-image:
        repeating-linear-gradient(to bottom, rgba(11, 11, 22, 0.5) 0, rgba(11, 11, 22, 0.5) 2px, transparent 2px, transparent 5px),
        linear-gradient(120deg, #9d7bff 0%, #7b61ff 45%, #b44dff 80%, #ff2e8c 100%);
    filter: drop-shadow(0 0 16px rgba(123, 97, 255, 0.5));
}
@media (forced-colors: active) {
    .striae { -webkit-background-clip: border-box; background-clip: border-box; background-image: none; color: CanvasText; filter: none; }
}
.aixs-title {
    margin: 0;
    font-family: var(--aixs-font-display);
    font-weight: 700;
    font-size: clamp(2.25rem, 1.35rem + 3.4vw, 4rem);
    line-height: 0.98;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #fff;
}
.aixs-zh .aixs-title { letter-spacing: 0.04em; line-height: 1.1; }

/* buttons: slanted neon (dark frame), slanted violet (light body), ghost, line */
.aixs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 2.75rem;
    padding: 0 1.35rem;
    border: 1px solid transparent;
    font-family: var(--aixs-font-display);
    font-weight: 600;
    font-size: 0.8125rem;
    line-height: 1.1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color 160ms var(--aixs-ease), color 160ms var(--aixs-ease), box-shadow 160ms var(--aixs-ease), border-color 160ms var(--aixs-ease), transform 160ms var(--aixs-ease);
}
.aixs-zh .aixs-btn { letter-spacing: 0.06em; }
.aixs-btn:active { transform: translateY(1px); }
.aixs-btn--block { display: flex; width: 100%; }
.aixs-btn--neon {
    background: var(--aixs-neon);
    color: var(--aixs-abyss) !important;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    padding: 0 1.6rem;
}
.aixs-btn--neon:hover { background: #b39bff; box-shadow: 0 0 28px rgba(157, 123, 255, 0.55); }
.aixs-btn--neon:focus-visible { outline: 2px solid var(--aixs-abyss); outline-offset: -6px; }
.aixs-btn--violet {
    background: var(--primary);
    color: #fff !important;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    padding: 0 1.6rem;
}
.aixs-btn--violet:hover { background: var(--primary-lifted); box-shadow: 0 10px 26px rgba(91, 63, 217, 0.35); }
.aixs-btn--violet:focus-visible { outline: 2px solid #fff; outline-offset: -6px; }
.aixs-btn--ghost {
    color: #fff !important;
    border-color: rgba(157, 123, 255, 0.35);
    background: rgba(18, 18, 34, 0.6);
}
.aixs-btn--ghost:hover { border-color: var(--aixs-neon); background: rgba(157, 123, 255, 0.12); }
.aixs-btn--line {
    color: var(--text) !important;
    border-color: var(--border);
    background: var(--bg);
}
.aixs-btn--line:hover { border-color: var(--primary); color: var(--primary-accented) !important; background: var(--primary-50); }
.aixs-btn--off {
    color: var(--text-lifted);
    border-color: var(--border-muted);
    background: var(--bg-lifted);
    cursor: not-allowed;
}

/* status chips (main site .chip); light-body inks, dark-frame colours under .aixs-dark */
.aixs-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.2rem 0.5rem;
    border: 1px solid currentColor;
    font-family: var(--aixs-font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}
.aixs-zh .aixs-chip { letter-spacing: 0.06em; }
.aixs-chip::before { content: ""; width: 6px; height: 6px; background: currentColor; flex: none; }
.aixs-chip i { font-size: 0.75em; }
.aixs-chip:has(i)::before { display: none; }
.aixs-chip--in { color: var(--aixs-signal-ink); }
.aixs-chip--order,
.aixs-chip--low { color: var(--aixs-amber-ink); }
.aixs-chip--out { color: var(--text-lifted); }
.aixs-chip--tag { color: var(--aixs-plasma-ink); }
.aixs-chip--save { color: var(--aixs-signal-ink); border-style: dashed; }
.aixs-chip--incl { color: var(--text-lifted); border-color: var(--border); }
.aixs-chip--incl::before,
.aixs-chip--tag::before,
.aixs-chip--save::before { display: none; }

/* terminal window (main site TerminalWindow) */
.aixs-term {
    position: relative;
    background-color: rgba(18, 18, 34, 0.86);
    border: 1px solid var(--aixs-line-dark);
    color: #fff;
    --tick: var(--aixs-neon);
    background-image:
        linear-gradient(var(--tick), var(--tick)),
        linear-gradient(var(--tick), var(--tick)),
        linear-gradient(var(--tick), var(--tick)),
        linear-gradient(var(--tick), var(--tick));
    background-size: 6px 6px;
    background-position: 0 0, 100% 0, 0 100%, 100% 100%;
    background-repeat: no-repeat;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.aixs-term__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--aixs-line-dark);
    background: rgba(11, 11, 22, 0.5);
}
.aixs-term__title { font-family: var(--aixs-font-mono); font-size: 0.6875rem; color: var(--aixs-cold); }
.aixs-dots { display: inline-flex; gap: 6px; }
.aixs-dots i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f87; }
.aixs-dots i:nth-child(2) { background: #ffb547; }
.aixs-dots i:nth-child(3) { background: #3ddc97; }
.aixs-live {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--aixs-font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--aixs-signal);
}
.aixs-live i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: aixs-pulse 2s ease-in-out infinite; }
@keyframes aixs-pulse { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.6); } 50% { opacity: 0.55; box-shadow: 0 0 0 4px rgba(61, 220, 151, 0); } }

/* section heading in the light body */
.aixs-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-bottom: 1.25rem;
}
.aixs-section-head__title { margin: 0.35rem 0 0; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); text-transform: uppercase; letter-spacing: 0.03em; }
.aixs-zh .aixs-section-head__title { text-transform: none; }
.aixs-section-head__lead { margin: 0.4rem 0 0; color: var(--text-lifted); max-width: 46rem; }

/* skip link */
.aixs-skip {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 2000;
    padding: 0.75rem 1rem;
    background: var(--aixs-neon);
    color: var(--aixs-abyss) !important;
    font-size: 0.75rem;
}
.aixs-skip:focus { top: 1rem; }

/* ============ HEADER ============ */
/* header.header: Nexus styles that selector (white background, 16px links), so ours repeat it to win. */
header.header.aixs-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(11, 11, 22, 0.94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: #fff;
}
header.header .aixs-header__rule {
    height: 1px;
    background: linear-gradient(90deg, var(--aixs-quantum), var(--aixs-neon) 45%, var(--aixs-plasma));
    opacity: 0.55;
}
header.header .aixs-bar { padding: 0; border-bottom: 1px solid var(--aixs-line-dark); }
header.header .aixs-bar__inner {
    min-height: 4rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 1.5rem;
}
header.header .aixs-brand { display: inline-flex; align-items: center; min-height: 2.75rem; margin-right: auto; }
header.header .aixs-brand:hover { text-decoration: none; }

/* AIXS.CLOUD wordmark (includes/aixs-logo.tpl), as on the main site: the A on the baseline, neon AIXS, soft white suffix. */
.aixs-logo {
    display: inline-block;
    font-family: var(--aixs-font-display);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.025em;
    text-transform: none;
    white-space: nowrap;
}
.aixs-logo__aixs { color: #9d7bff; text-shadow: 0 0 10px rgba(157, 123, 255, 0.6); }
.aixs-logo__a {
    display: inline-block;
    width: 0.657em;
    height: 0.865em;
    margin-right: 0.13em;
    vertical-align: baseline;
    fill: currentColor;
    filter: drop-shadow(0 0 6px rgba(157, 123, 255, 0.55));
}
.aixs-logo__suffix { color: rgba(255, 255, 255, 0.85); }
header.header .aixs-bar__actions { display: flex; align-items: center; gap: 0.75rem; }
header.header .navbar .aixs-bar__link,
header.header .navbar .aixs-lang a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    font-family: var(--aixs-font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--aixs-cold);
}
header.header .navbar .aixs-bar__link:hover,
header.header .navbar .aixs-lang a:hover { color: #fff; text-decoration: none; }
header.header .aixs-lang { align-items: center; gap: 0.4rem; color: var(--aixs-dim); font-size: 0.6875rem; }
header.header .navbar .aixs-lang a[aria-current] { color: #fff; }
header.header .aixs-bar__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--aixs-line-dark);
    background: transparent;
    color: #fff !important;
    text-decoration: none !important;
}
header.header .aixs-bar__icon:hover { border-color: var(--aixs-neon); background: rgba(157, 123, 255, 0.1); }
header.header .aixs-bar__count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--aixs-neon);
    color: var(--aixs-abyss);
    font-family: var(--aixs-font-mono);
    font-size: 0.625rem;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(157, 123, 255, 0.6);
}
header.header .aixs-bar__count.is-empty { display: none; }

/* primary navigation */
header.header .aixs-nav__list > li > a,
header.header .aixs-account > li > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
    min-height: 2.75rem;
    padding: 0 0.75rem;
    font-family: var(--aixs-font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--aixs-cold);
    text-decoration: none !important;
    transition: color 140ms ease;
}
.aixs-zh header.header .aixs-nav__list > li > a,
.aixs-zh header.header .aixs-account > li > a { font-size: 0.8125rem; letter-spacing: 0.06em; }
header.header .aixs-nav__list > li > a:hover,
header.header .aixs-nav__list > li.show > a,
header.header .aixs-account > li > a:hover,
header.header .aixs-account > li.show > a { color: #fff; }
/* current page: a glowing rule under the label (::after is taken by the dropdown caret) */
header.header .aixs-nav__list > li > a[aria-current="page"] {
    color: #fff;
    background: linear-gradient(var(--aixs-neon), var(--aixs-neon)) center bottom / calc(100% - 1.5rem) 1px no-repeat;
    text-shadow: 0 0 12px rgba(157, 123, 255, 0.45);
}
header.header .aixs-prompt { color: rgba(157, 123, 255, 0.8); }
header.header .aixs-nav .dropdown-toggle::after,
header.header .aixs-account .dropdown-toggle::after {
    border: 0;
    width: 6px;
    height: 6px;
    margin-left: 0.45rem;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}
header.header.aixs-header .dropdown-menu {
    margin-top: 0.6rem;
    min-width: 14rem;
    background: var(--bg);
}
header.header.aixs-header .dropdown-menu .dropdown-item { padding: 0; background: transparent; }
header.header.aixs-header .dropdown-menu .dropdown-item > a.dropdown-item {
    display: block;
    padding: 0.55rem 1rem !important;
    font-family: var(--aixs-font-mono);
    font-size: 0.8125rem;
    color: var(--text);
    border-left: 2px solid transparent;
    white-space: normal;
}
header.header.aixs-header .dropdown-menu .dropdown-item > a.dropdown-item:hover {
    background: var(--primary-50);
    color: var(--primary-accented);
    border-left-color: var(--primary);
    text-decoration: none;
}
/* margin: Nexus' .navbar-nav margins (8px over, 20px under) would lift the account menu off the bar's line. */
header.header .aixs-account { flex-direction: row; margin: 0; }
header.header .aixs-account > li > a { color: #fff; border: 1px solid var(--aixs-line-dark); padding: 0 0.9rem; }
header.header .aixs-account > li > a:hover { border-color: var(--aixs-neon); }
header.header .aixs-account .dropdown-menu { right: 0; left: auto; }

@media (min-width: 1200px) {
    header.header .aixs-brand { margin-right: 0; }
    header.header .aixs-nav { order: 0; }
    /* Nexus' .navbar-nav margins (8px over, 20px under) would lift the menu above the logo's line. */
    header.header .aixs-nav__list { gap: 0.25rem; margin: 0; }
    header.header .aixs-bar__actions { margin-left: auto; }
}
@media (max-width: 1199.98px) {
    /* Bootstrap zeroes the container gutters in a collapsed .navbar-expand-xl; keep the bar in line with the page. */
    header.header .aixs-bar > .aixs-bar__inner { padding-right: 15px; padding-left: 15px; }
    header.header .aixs-nav {
        order: 3;
        flex-basis: 100%;
        margin: 0 -15px;
        padding: 0 15px;
        background: var(--aixs-abyss);
        border-top: 1px solid var(--aixs-line-dark);
    }
    header.header .aixs-nav__list { padding: 0.5rem 0; }
    header.header .aixs-nav__list > li { border-bottom: 1px solid rgba(157, 123, 255, 0.12); }
    /* "./LABEL" reads as one word, as in the main site's menu panel; the arrow or caret sits at the far end. */
    header.header .aixs-nav__list > li > a {
        display: flex;
        width: 100%;
        min-height: 3rem;
        padding: 0;
        font-size: 0.8125rem;
    }
    header.header .aixs-nav__list > li > a:not(.dropdown-toggle)::after { content: "\25B8"; margin-left: auto; color: var(--aixs-neon); }
    header.header .aixs-nav__list > li > a.dropdown-toggle::after { margin-left: auto; margin-right: 0.2rem; }
    header.header .aixs-nav__list > li > a[aria-current="page"] { background: none; }
    header.header .aixs-nav .dropdown-menu {
        position: static !important;
        float: none;
        transform: none !important;
        margin: 0 0 0.75rem;
        border: 0;
        border-left: 1px solid var(--aixs-line-dark);
        background: transparent;
        box-shadow: none;
    }
    header.header .aixs-nav .dropdown-menu .dropdown-item > a.dropdown-item { color: #c9c8da; }
    header.header .aixs-nav .dropdown-menu .dropdown-item > a.dropdown-item:hover { background: rgba(157, 123, 255, 0.1); color: #fff; }
    /* Log in + create account side by side on phones; from sm the bar has "create account", so log in spans. */
    header.header .aixs-nav__extra { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; padding: 0.75rem 0 1.25rem; }
}
@media (min-width: 576px) {
    header.header .aixs-nav__extra { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575.98px) {
    header.header .aixs-bar__inner { gap: 0 0.75rem; }
    header.header .aixs-account > li > a { max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; line-height: 2.75rem; }
}

/* logged-in strip above the bar */
header.header .aixs-topbar {
    background: #07070f;
    border-bottom: 1px solid var(--aixs-line-dark);
    font-size: 0.75rem;
    color: var(--aixs-cold);
}
header.header .aixs-topbar__btn,
header.header .aixs-topbar a.aixs-topbar__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.25rem;
    padding: 0 0.6rem;
    border: 0;
    background: transparent;
    color: var(--aixs-cold);
    font-family: var(--aixs-font-mono);
    font-size: 0.75rem;
    text-transform: none;
    letter-spacing: 0;
}
header.header .aixs-topbar__btn:hover { color: #fff; }
header.header .aixs-topbar__count { color: var(--aixs-amber); font-weight: 700; }
header.header .aixs-topbar__client { display: flex; align-items: center; gap: 0.5rem; }
header.header .aixs-topbar__name { color: #fff; }
header.header .aixs-topbar__name:hover { color: var(--aixs-neon); }

/* ============ TITLE BAND ============ */
.aixs-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(60rem 26rem at 88% -20%, rgba(123, 97, 255, 0.28), transparent 60%),
        radial-gradient(40rem 22rem at -10% 120%, rgba(255, 46, 140, 0.12), transparent 60%),
        var(--aixs-abyss);
    border-bottom: 1px solid var(--aixs-line-dark);
    color: #fff;
}
.aixs-hero__grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(157, 123, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(157, 123, 255, 0.07) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 92%);
    mask-image: linear-gradient(to bottom, #000 0%, transparent 92%);
}
.aixs-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--aixs-neon) 30%, var(--aixs-plasma) 70%, transparent);
    opacity: 0.45;
}
.aixs-hero__inner {
    position: relative;
    display: grid;
    gap: 2.5rem;
    padding-top: clamp(2.25rem, 1.5rem + 2.5vw, 3.75rem);
    padding-bottom: clamp(2.25rem, 1.5rem + 2.5vw, 3.75rem);
}
.aixs-hero__main { min-width: 0; }
.aixs-hero__eyebrow { color: var(--aixs-neon); margin-top: 1.5rem; }
.aixs-hero__main > .aixs-hero__eyebrow:first-child { margin-top: 0; }
.aixs-hero .aixs-title { margin-top: 0.85rem; }
.aixs-hero__lead {
    max-width: 42rem;
    margin: 1.25rem 0 0;
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--aixs-cold);
}
.aixs-hero__action { margin-top: 1.5rem; }
.aixs-hero--page .aixs-title,
.aixs-hero--cart .aixs-title { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); }
@media (min-width: 992px) {
    .aixs-hero--store .aixs-hero__inner,
    .aixs-hero--home .aixs-hero__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 3.5rem; }
    .aixs-hero--cart .aixs-hero__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}

.aixs-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: var(--aixs-font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--aixs-cold);
}
.aixs-crumbs li + li::before { content: "/"; margin-right: 0.6rem; color: var(--aixs-dim); }
.aixs-crumbs a { color: var(--aixs-cold); }
.aixs-crumbs a:hover { color: #fff; text-decoration: none; }
.aixs-crumbs [aria-current] { color: #fff; }

/* fleet.stat panel (store) */
.aixs-fleet__grid { display: grid; grid-template-columns: 1fr 1fr; }
.aixs-fleet__cell { padding: 1rem 1.1rem; border-bottom: 1px solid var(--aixs-line-dark); }
.aixs-fleet__cell:nth-child(odd) { border-right: 1px solid var(--aixs-line-dark); }
.aixs-fleet__cell .aixs-eyebrow,
.aixs-fleet__bars .aixs-eyebrow { color: var(--aixs-cold); font-size: 0.625rem; }
.aixs-fleet__num { margin: 0.45rem 0 0; font-family: var(--aixs-font-display); font-weight: 700; font-size: 1.75rem; line-height: 1; color: #fff; }
.aixs-fleet__num small { font-family: var(--aixs-font-mono); font-size: 0.75rem; font-weight: 400; color: var(--aixs-cold); margin-left: 0.15rem; }
.aixs-fleet__num--neon { color: var(--aixs-neon); }
.aixs-fleet__note { margin: 0.45rem 0 0; font-family: var(--aixs-font-mono); font-size: 0.6875rem; letter-spacing: 0.1em; color: var(--aixs-neon); }
.aixs-fleet__bars { padding: 1rem 1.1rem 1.15rem; display: grid; gap: 0.6rem; }
.aixs-fleet__bar { display: grid; grid-template-columns: 2.75rem 1fr auto; align-items: center; gap: 0.85rem; font-family: var(--aixs-font-mono); font-size: 0.6875rem; }
.aixs-fleet__code { color: #fff; font-weight: 700; letter-spacing: 0.1em; }
.aixs-fleet__track { position: relative; height: 8px; background: rgba(157, 123, 255, 0.1); }
.aixs-fleet__track span {
    position: absolute;
    inset: 0 auto 0 0;
    background: repeating-linear-gradient(90deg, var(--aixs-signal) 0 4px, transparent 4px 6px);
    box-shadow: 0 0 10px rgba(61, 220, 151, 0.35);
    animation: aixs-grow 900ms var(--aixs-ease) both;
    transform-origin: left;
}
@keyframes aixs-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.aixs-fleet__qty { color: var(--aixs-signal); white-space: nowrap; }
.aixs-fleet__qty.is-out { color: var(--aixs-dim); }

/* order steps (cart) */
.aixs-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0;
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: var(--aixs-font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.aixs-steps__item { display: flex; align-items: center; gap: 0.6rem; color: var(--aixs-dim); }
.aixs-steps__item + .aixs-steps__item::before {
    content: "";
    width: 2.25rem;
    height: 1px;
    margin: 0 0.75rem;
    background: rgba(157, 123, 255, 0.25);
}
.aixs-steps__n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border: 1px solid rgba(157, 123, 255, 0.3);
    font-weight: 700;
    letter-spacing: 0;
}
.aixs-steps__item.is-done { color: var(--aixs-cold); }
.aixs-steps__item.is-done .aixs-steps__n { border-color: var(--aixs-signal); color: var(--aixs-signal); }
.aixs-steps__item.is-done + .aixs-steps__item::before { background: var(--aixs-signal); opacity: 0.6; }
.aixs-steps__item.is-current { color: #fff; }
.aixs-steps__item.is-current .aixs-steps__n { background: var(--aixs-neon); border-color: var(--aixs-neon); color: var(--aixs-abyss); box-shadow: 0 0 18px rgba(157, 123, 255, 0.6); }
@media (max-width: 575.98px) {
    .aixs-steps__item + .aixs-steps__item::before { width: 0.9rem; margin: 0 0.4rem; }
    .aixs-steps__item:not(.is-current) .aixs-steps__label { display: none; }
}

/* sign-in panel on the portal home */
.aixs-session__body { padding: 1.25rem 1.25rem 1.1rem; display: grid; gap: 0.9rem; }
.aixs-session label { color: var(--aixs-cold); }
.aixs-session .form-control {
    background: rgba(11, 11, 22, 0.7);
    border-color: var(--aixs-line-dark);
    color: #fff;
}
.aixs-session .form-control:focus { border-color: var(--aixs-neon); box-shadow: 0 0 0 3px rgba(157, 123, 255, 0.2); }
.aixs-session .form-control::placeholder { color: var(--aixs-dim); }
.aixs-session .aixs-field__row a { color: var(--aixs-neon); }
.aixs-session .aixs-check { color: var(--aixs-cold); }
.aixs-session__foot { margin: 0; font-size: 0.75rem; color: var(--aixs-cold); text-align: center; }
.aixs-session__foot a { color: var(--aixs-neon); }
.aixs-session__title { margin: 0; font-family: var(--aixs-font-display); font-weight: 700; font-size: 1.5rem; }
.aixs-session__lead { margin: 0; color: var(--aixs-cold); }
.aixs-session__links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.4rem; }

/* fields shared by the sign-in panel, auth card and configure page */
.aixs-field { display: grid; gap: 0.4rem; }
.aixs-field label { margin: 0; }
.aixs-field__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.aixs-field__row a { font-size: 0.75rem; }
.aixs-field__help { color: var(--text-lifted); font-size: 0.75rem; }
.aixs-check { display: inline-flex; align-items: center; gap: 0.55rem; margin: 0; font-size: 0.8125rem; color: var(--text-accented); cursor: pointer; }
.aixs-check input { width: 1rem; height: 1rem; margin: 0; }

/* ============ BODY ============ */
.aixs-main {
    padding: 2.5rem 0 4.5rem;
    background:
        radial-gradient(rgba(91, 63, 217, 0.05) 1px, transparent 1.4px) 0 0 / 22px 22px,
        var(--aixs-paper);
    min-height: 40vh;
}
section#main-body { background-color: var(--aixs-paper); }
.primary-content > .card:first-child,
.primary-content > .header-lined:first-child { margin-top: 0; }
.header-lined h1 { font-size: 1.75rem; }

/* sidebar panels */
.sidebar .card {
    margin-bottom: 1.25rem;
    border-color: var(--border-muted);
}
.sidebar .card-header {
    padding: 0.85rem 1rem;
    background: var(--bg);
}
.sidebar .card-header .card-title {
    font-family: var(--aixs-font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary);
}
.sidebar .card-header .card-title i { color: var(--primary); }
.sidebar .list-group-item {
    font-size: 0.8125rem;
    padding: 0.65rem 1rem;
    color: var(--text);
}
.sidebar .list-group-item:hover { color: var(--primary-accented); }
.sidebar .list-group-item.active,
.sidebar .list-group-item.active:hover {
    background-color: var(--primary-50);
    color: var(--primary-accented);
    box-shadow: inset 3px 0 0 var(--primary);
}

/* ============ FOOTER ============ */
/* Same layout as the main site's footer (web/src/components/site/Footer.astro). */
.aixs-footer {
    position: relative;
    overflow: hidden;
    padding: 0;
    margin: 0;
    background: var(--aixs-band);
    border-top: 1px solid var(--aixs-line-dark);
    color: var(--aixs-cold);
    font-family: var(--aixs-font-mono);
}
.aixs-footer__dots {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(157, 123, 255, 0.075) 1px, transparent 1.4px);
    background-size: 22px 22px;
    opacity: 0.8;
}
.aixs-footer__glow {
    position: absolute;
    inset: auto 0 0;
    height: 24rem;
    pointer-events: none;
    background: radial-gradient(ellipse 55% 75% at 50% 100%, rgba(123, 97, 255, 0.16), transparent 72%);
}
.aixs-footer__inner { position: relative; padding-top: 3.5rem; }
.aixs-footer a { color: var(--aixs-cold); transition: color 160ms ease; }
.aixs-footer a:hover,
.aixs-footer a:focus-visible { color: #fff; text-decoration: none; }

/* brand bar */
.aixs-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--aixs-line-dark);
}
.aixs-footer__id { display: flex; flex-direction: column; gap: 1rem; }
.aixs-footer__logo { display: inline-block; align-self: flex-start; }
.aixs-footer__logo .aixs-logo { font-size: 1.625rem; }
.aixs-footer__tagline { max-width: 28rem; margin: 0; color: var(--aixs-cold); font-size: 0.875rem; line-height: 1.7; }
@media (min-width: 768px) {
    .aixs-footer__brand { flex-direction: row; align-items: center; justify-content: space-between; }
    .aixs-footer__id { flex-direction: row; align-items: center; gap: 2rem; }
    .aixs-footer__tagline { padding-left: 2rem; border-left: 1px solid var(--aixs-line-dark); }
}
.aixs-footer a.aixs-footer__status {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.6rem;
    min-height: 2.75rem;
    padding: 0 0.85rem;
    border: 1px solid var(--aixs-line-dark);
    background: rgba(18, 18, 34, 0.7);
    font-size: 0.625rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    transition: color 160ms ease, border-color 160ms ease;
}
.aixs-footer a.aixs-footer__status:hover { border-color: var(--aixs-neon); }
.aixs-footer__status i { width: 6px; height: 6px; background: var(--aixs-cold); }
.aixs-footer__status span { color: var(--aixs-neon); }
@media (min-width: 768px) {
    .aixs-footer a.aixs-footer__status { align-self: center; }
}

/* link columns: four, plus a wider one for the email addresses */
.aixs-footer__cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 1.5rem;
    padding-top: 3rem;
}
.aixs-footer__mailcol { grid-column: span 2; }
@media (min-width: 576px) {
    .aixs-footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
    .aixs-footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.3fr); }
    .aixs-footer__mailcol { grid-column: auto; }
}
/* Two text levels, as on the main site: 14px links, and 10px labels at 0.2em (column titles, bottom line). */
.aixs-footer__cols h2 { margin-bottom: 1rem; color: var(--aixs-neon); font-size: 0.625rem; letter-spacing: 0.2em; }
.aixs-zh .aixs-footer__cols h2 { font-size: 0.6875rem; letter-spacing: 0.08em; }
.aixs-footer__cols ul { margin: 0; padding: 0; list-style: none; font-size: 0.875rem; }
/* Inline content (not flex items), so the location code shares the city's baseline. */
.aixs-footer__cols li a { display: inline-block; line-height: 1.75rem; }
.aixs-footer__code { margin-right: 0.6em; color: var(--aixs-neon); font-size: 0.6875rem; line-height: 1; letter-spacing: 0.12em; }
/* Page links get the header's "./" prompt on hover; screen readers skip it. */
.aixs-footer__path::before {
    content: "./";
    content: "./" / "";
    display: inline-block;
    overflow: hidden;
    width: 0;
    /* an overflow-clipped inline block sits on its bottom edge; align it to the line top instead */
    vertical-align: top;
    color: var(--aixs-neon);
    opacity: 0;
    transition: width 180ms ease, opacity 180ms ease;
}
.aixs-footer__path:hover::before,
.aixs-footer__path:focus-visible::before { width: 1.3em; opacity: 1; }
@media (pointer: coarse) {
    .aixs-footer__cols li a { line-height: 2.75rem; }
}

/* bottom line */
.aixs-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--aixs-line-dark);
    font-size: 0.625rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.aixs-zh .aixs-footer__bottom { font-size: 0.6875rem; letter-spacing: 0.08em; }
/* Nexus' footer.footer .copyright centres it and sets its own size and margin. */
footer.aixs-footer .copyright { margin: 0; color: var(--aixs-cold); font-size: inherit; text-align: left; }
footer.aixs-footer .copyright span { color: rgba(157, 123, 255, 0.5); }
.aixs-footer__locale {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.5rem;
    padding: 0 0.9rem;
    border: 1px solid var(--aixs-line-dark);
    background: transparent;
    color: #fff;
    font-family: var(--aixs-font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.aixs-footer__locale:hover { border-color: var(--aixs-neon); }
.aixs-footer__locale span { color: var(--aixs-dim); }

/* The giant wordmark sinks into the foot of the page: the footer's edge cuts the bottom of the letters. */
.aixs-footer__mark {
    margin-top: 3rem;
    margin-bottom: -2.4%;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 96%);
    mask-image: linear-gradient(to bottom, #000 30%, transparent 96%);
}
.aixs-footer__mark svg { display: block; width: 100%; height: auto; overflow: visible; }
.aixs-footer__mark path { stroke-width: 1px; vector-effect: non-scaling-stroke; }
@media (prefers-reduced-motion: reduce) {
    .aixs-footer a,
    .aixs-footer__path::before { transition: none; }
}

@media (prefers-reduced-motion: reduce) {
    .aixs-live i,
    .aixs-fleet__track span { animation: none; }
}
@media (forced-colors: active) {
    .aixs-ticks,
    .aixs-term { background-image: none; }
    .aixs-btn--neon,
    .aixs-btn--violet { border: 1px solid ButtonText; }
}
