@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300;400;500;700&display=swap');

:root {
    --astrix-bg: #0a0a0a;
    --astrix-bg-elevated: #1a1a1a;
    --astrix-surface: #111111;
    --astrix-surface-hover: #222222;
    --astrix-surface-active: #2a2a2a;
    --astrix-border: #222222;
    --astrix-border-strong: #333333;
    --astrix-border-soft: #2a2a2a;
    --astrix-text: #cccccc;
    --astrix-text-secondary: #888888;
    --astrix-text-muted: #666666;
    --astrix-text-faint: #555555;
    --astrix-heading: #ffffff;
    --astrix-accent: #ffffff;
    --astrix-accent-hover: #e5e5e5;
    --astrix-accent-text: #000000;
    --astrix-accent-pink: #ffb3d9;
    --astrix-focus: rgba(255, 255, 255, 0.24);
    --astrix-success: #22c55e;
    --astrix-success-bg: rgba(34, 197, 94, 0.12);
    --astrix-danger: #ef4444;
    --astrix-danger-bg: rgba(239, 68, 68, 0.12);
    --astrix-warning: #eab308;
    --astrix-warning-bg: rgba(234, 179, 8, 0.12);
    --astrix-info: #3b82f6;
    --astrix-info-bg: rgba(59, 130, 246, 0.12);
    --astrix-radius-sm: 4px;
    --astrix-radius: 4px;
    --astrix-radius-lg: 6px;
    --astrix-shadow: 0 0 0 1px var(--astrix-border), 0 8px 32px rgba(0, 0, 0, 0.6);
    --astrix-font: 'Roboto Mono', 'SF Mono', 'Fira Code', monospace;
    --astrix-mono: 'Roboto Mono', 'SF Mono', 'Fira Code', monospace;
    --astrix-nav-height: 52px;
    --astrix-transition: 0.18s ease;
    --astrix-content-width: 820px;
    --astrix-tracking-wide: 0.03em;
    --astrix-tracking-wider: 0.08em;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    zoom: 1.15;
}

body.astrix-dark,
body.astrix-theme {
    position: relative;
    font-family: var(--astrix-font);
    font-size: 14px;
    line-height: 1.6;
    color: var(--astrix-text);
    background-color: var(--astrix-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Bootstrap ships a blanket `body { padding-bottom: 50px; }` reset
       that has nothing to do with this theme — it was the real reason
       the dashboard always had dead space at the bottom of the screen. */
    padding-bottom: 0;
}

/* ── Galaxy hero backdrop (ported 1:1 from astrix.gg's canvas animation) ── */

.astrix-galaxy-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: block;
    pointer-events: none;
    background-color: var(--astrix-bg);
    transition: opacity 0.4s ease;
    /* Cancel the page-wide zoom so the fixed, viewport-sized canvas isn't
       stretched/misaligned by the inherited scale. */
    zoom: 0.869565;
}

body.astrix-authed .astrix-galaxy-canvas {
    opacity: 0.4;
}

body.astrix-guest .astrix-galaxy-canvas {
    opacity: 1;
}

body.astrix-dark ::selection,
body.astrix-theme ::selection {
    background: rgba(255, 255, 255, 0.18);
    color: var(--astrix-heading);
}

a {
    color: var(--astrix-text);
    text-decoration: none;
    transition: color var(--astrix-transition);
}

a:hover,
a:focus {
    color: var(--astrix-heading);
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--astrix-heading);
    font-family: var(--astrix-font);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--astrix-tracking-wide);
}

/* ── Navbar ── */

body.astrix-dark .navbar,
body.astrix-theme .navbar {
    min-height: var(--astrix-nav-height);
    margin-bottom: 0;
    border: none;
    border-bottom: 1px solid var(--astrix-border);
    border-radius: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: background var(--astrix-transition), box-shadow var(--astrix-transition);
}

body.astrix-dark .navbar.astrix-nav-scrolled,
body.astrix-theme .navbar.astrix-nav-scrolled {
    background: rgba(0, 0, 0, 0.92);
    box-shadow: 0 1px 0 var(--astrix-border);
}

body.astrix-dark .navbar-default,
body.astrix-theme .navbar-default {
    background-color: transparent;
    border-color: var(--astrix-border);
}

body.astrix-dark .navbar-brand,
body.astrix-theme .navbar-brand {
    height: var(--astrix-nav-height);
    padding: 14px 20px;
    font-family: var(--astrix-font);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--astrix-tracking-wide);
    color: var(--astrix-heading) !important;
    line-height: 24px;
}

body.astrix-dark .navbar-brand:hover,
body.astrix-dark .navbar-brand:focus,
body.astrix-theme .navbar-brand:hover,
body.astrix-theme .navbar-brand:focus {
    color: var(--astrix-heading) !important;
}

body.astrix-dark .navbar-brand img,
body.astrix-theme .navbar-brand img {
    max-height: 24px;
    width: auto;
    /* Force the logo to render as a flat white silhouette regardless of
       its original colors, so it sits cleanly on the dark navbar. */
    filter: brightness(0) invert(1);
}

body.astrix-dark .navbar-nav > li > a,
body.astrix-theme .navbar-nav > li > a {
    padding: 15px 14px;
    font-family: var(--astrix-font);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--astrix-tracking-wider);
    line-height: 22px;
    color: var(--astrix-text-secondary) !important;
    transition: color var(--astrix-transition), background var(--astrix-transition);
}

body.astrix-dark .navbar-nav > li > a:hover,
body.astrix-dark .navbar-nav > li > a:focus,
body.astrix-theme .navbar-nav > li > a:hover,
body.astrix-theme .navbar-nav > li > a:focus {
    color: var(--astrix-heading) !important;
    background: transparent !important;
}

body.astrix-dark .navbar-nav > .active > a,
body.astrix-dark .navbar-nav > .active > a:hover,
body.astrix-dark .navbar-nav > .active > a:focus,
body.astrix-theme .navbar-nav > .active > a,
body.astrix-theme .navbar-nav > .active > a:hover,
body.astrix-theme .navbar-nav > .active > a:focus {
    color: var(--astrix-heading) !important;
    background: transparent !important;
    box-shadow: inset 0 -2px 0 var(--astrix-accent);
}

body.astrix-dark .navbar-default .navbar-toggle,
body.astrix-theme .navbar-default .navbar-toggle {
    margin-top: 9px;
    margin-bottom: 9px;
    padding: 6px 10px;
    border-color: var(--astrix-border-strong);
    border-radius: var(--astrix-radius);
}

body.astrix-dark .navbar-default .navbar-toggle:hover,
body.astrix-dark .navbar-default .navbar-toggle:focus,
body.astrix-theme .navbar-default .navbar-toggle:hover,
body.astrix-theme .navbar-default .navbar-toggle:focus {
    background: var(--astrix-surface);
}

body.astrix-dark .navbar-default .navbar-toggle .icon-bar,
body.astrix-theme .navbar-default .navbar-toggle .icon-bar {
    background-color: var(--astrix-text);
}

body.astrix-dark .navbar-default .navbar-collapse,
body.astrix-dark .navbar-default .navbar-form,
body.astrix-theme .navbar-default .navbar-collapse,
body.astrix-theme .navbar-default .navbar-form {
    border-color: var(--astrix-border);
}

body.astrix-dark .dropdown-currencies .badge,
body.astrix-theme .dropdown-currencies .badge {
    background: var(--astrix-surface);
    color: var(--astrix-heading);
    border: 1px solid var(--astrix-border-strong);
    border-radius: 999px;
    font-family: var(--astrix-mono);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
}

/* ── Layout containers ──
   Note: the `>` direct-child scoping below is intentional — it targets only
   the page-content container (a direct child of <body>) and skips the
   .container/.container-fluid nested inside <nav>, which was previously
   picking up this padding and inflating the header's height. */

body.astrix-dark > .container,
body.astrix-dark > .container-fluid,
body.astrix-theme > .container,
body.astrix-theme > .container-fluid {
    min-height: calc(100vh - var(--astrix-nav-height));
    padding-top: 24px;
    padding-bottom: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.astrix-dark > .container-fluid,
body.astrix-theme > .container-fluid {
    padding-left: 32px;
    padding-right: 32px;
}

@media (min-width: 1440px) {
    body.astrix-dark > .container,
    body.astrix-theme > .container {
        width: 1280px;
    }
}

@media (max-width: 767px) {
    body.astrix-dark > .container-fluid,
    body.astrix-theme > .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ── Authenticated dashboard pages ──
   Signed-in pages get a wider, top-anchored, denser "management panel"
   treatment instead of the guest landing page's single centered card:
   content fills the screen instead of vertically centering, and the whole
   body renders slightly smaller so more fits without scrolling. */

body.astrix-authed {
    zoom: 0.78;
}

/* The galaxy canvas is a fixed, viewport-sized background — cancel out
   both the page-wide zoom (1.15) and the authed dashboard zoom (0.78) so
   it still fills the screen at 1:1 instead of shrinking with the content. */
body.astrix-authed .astrix-galaxy-canvas {
    zoom: 1.114826;
}

body.astrix-authed > .container,
body.astrix-authed > .container-fluid {
    min-height: 0;
    justify-content: flex-start;
    padding-top: 28px;
    padding-bottom: 40px;
}

@media (min-width: 768px) {
    body.astrix-authed .col-md-8.col-md-offset-2 {
        max-width: 1440px;
    }
}

@media (min-width: 1440px) {
    body.astrix-authed > .container {
        width: 100%;
        max-width: 1600px;
    }
}

/* ── Cards / Wells ── */

body.astrix-dark .well,
body.astrix-theme .well {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid var(--astrix-border-strong);
    border-radius: var(--astrix-radius);
    box-shadow: var(--astrix-shadow);
    color: var(--astrix-text);
    padding: 28px;
    margin-bottom: 24px;
}

body.astrix-dark .well-float,
body.astrix-theme .well-float {
    overflow: hidden;
}

body.astrix-dark .panel-body,
body.astrix-theme .panel-body {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--astrix-border);
    border-radius: var(--astrix-radius);
    color: var(--astrix-text-secondary);
    padding: 16px;
}

body.astrix-dark .border-solid.border-rounded,
body.astrix-theme .border-solid.border-rounded {
    border-color: var(--astrix-border) !important;
    border-radius: var(--astrix-radius) !important;
}

/* ── Forms ── */

body.astrix-dark .control-label,
body.astrix-theme .control-label {
    color: var(--astrix-text-secondary);
    font-family: var(--astrix-font);
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: var(--astrix-tracking-wider);
    margin-bottom: 8px;
}

body.astrix-dark .form-control,
body.astrix-theme .form-control {
    height: 44px;
    padding: 10px 14px;
    font-family: var(--astrix-font);
    font-size: 14px;
    color: var(--astrix-heading);
    background: var(--astrix-bg-elevated);
    border: 1px solid var(--astrix-border-strong);
    border-radius: var(--astrix-radius);
    box-shadow: none;
    transition: border-color var(--astrix-transition), box-shadow var(--astrix-transition), background var(--astrix-transition);
}

body.astrix-dark textarea.form-control,
body.astrix-theme textarea.form-control {
    height: auto;
    min-height: 100px;
}

body.astrix-dark .form-control:focus,
body.astrix-theme .form-control:focus {
    border-color: rgba(255, 255, 255, 0.28);
    background: var(--astrix-surface);
    box-shadow: 0 0 0 2px var(--astrix-bg), 0 0 0 4px var(--astrix-focus);
    outline: none;
}

body.astrix-dark .form-control::placeholder,
body.astrix-theme .form-control::placeholder {
    color: var(--astrix-text-muted);
}

body.astrix-dark .form-control[disabled],
body.astrix-dark .form-control[readonly],
body.astrix-theme .form-control[disabled],
body.astrix-theme .form-control[readonly] {
    background: var(--astrix-surface);
    color: var(--astrix-text-secondary);
    opacity: 1;
}

body.astrix-dark select.form-control,
body.astrix-theme select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

body.astrix-dark .help-block,
body.astrix-theme .help-block {
    color: var(--astrix-text-muted);
}

body.astrix-dark .checkbox label,
body.astrix-dark .radio label,
body.astrix-theme .checkbox label,
body.astrix-theme .radio label {
    color: var(--astrix-text-secondary);
}

body.astrix-dark .form-group__password,
body.astrix-theme .form-group__password {
    position: relative;
}

body.astrix-dark .forgot-password,
body.astrix-theme .forgot-password {
    position: absolute;
    top: 0;
    right: 0;
    bottom: auto;
    color: var(--astrix-text-secondary);
    font-family: var(--astrix-font);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: var(--astrix-tracking-wider);
}

body.astrix-dark .forgot-password:hover,
body.astrix-theme .forgot-password:hover {
    color: var(--astrix-heading);
}

body.astrix-dark .pull-right-middle,
body.astrix-theme .pull-right-middle {
    display: block;
    color: var(--astrix-text-secondary);
    font-size: 13px;
    line-height: 1.6;
    white-space: nowrap;
}

body.astrix-dark .well .row > .col-md-6,
body.astrix-theme .well .row > .col-md-6 {
    width: 100%;
    float: none;
}

body.astrix-dark .well .row > .col-md-6.text-md-right,
body.astrix-theme .well .row > .col-md-6.text-md-right {
    margin-top: 14px;
    text-align: left;
}

/* ── Buttons ── */

body.astrix-dark .btn,
body.astrix-theme .btn {
    font-family: var(--astrix-font);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--astrix-tracking-wider);
    border-radius: var(--astrix-radius);
    padding: 10px 18px;
    border: 1px solid transparent;
    transition: background var(--astrix-transition), border-color var(--astrix-transition), color var(--astrix-transition), transform 0.1s ease, box-shadow var(--astrix-transition);
}

body.astrix-dark .btn:active,
body.astrix-theme .btn:active {
    transform: scale(0.98);
}

body.astrix-dark .btn-primary,
body.astrix-theme .btn-primary {
    color: var(--astrix-accent-text) !important;
    background: var(--astrix-accent) !important;
    border-color: var(--astrix-accent) !important;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

body.astrix-dark .btn-primary:hover,
body.astrix-dark .btn-primary:focus,
body.astrix-dark .btn-primary:active,
body.astrix-dark .btn-primary.active,
body.astrix-theme .btn-primary:hover,
body.astrix-theme .btn-primary:focus,
body.astrix-theme .btn-primary:active,
body.astrix-theme .btn-primary.active {
    color: var(--astrix-accent-text) !important;
    background: var(--astrix-accent-hover) !important;
    border-color: var(--astrix-accent-hover) !important;
}

body.astrix-dark .btn-default,
body.astrix-theme .btn-default {
    color: var(--astrix-text) !important;
    background: var(--astrix-surface) !important;
    border-color: var(--astrix-border-strong) !important;
}

body.astrix-dark .btn-default:hover,
body.astrix-dark .btn-default:focus,
body.astrix-theme .btn-default:hover,
body.astrix-theme .btn-default:focus {
    color: var(--astrix-heading) !important;
    background: var(--astrix-surface-hover) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}

body.astrix-dark .btn-xs,
body.astrix-theme .btn-xs {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: var(--astrix-radius-sm);
}

body.astrix-dark .btn.disabled,
body.astrix-dark .btn[disabled],
body.astrix-theme .btn.disabled,
body.astrix-theme .btn[disabled] {
    opacity: 0.45;
}

/* ── Nav pills / tabs ── */

body.astrix-dark .nav-pills,
body.astrix-theme .nav-pills {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

body.astrix-dark .nav-pills > li,
body.astrix-theme .nav-pills > li {
    float: none;
    margin: 0;
}

body.astrix-dark .nav-pills > li + li,
body.astrix-theme .nav-pills > li + li {
    margin-left: 0;
}

body.astrix-dark .nav-pills > li > a,
body.astrix-theme .nav-pills > li > a {
    color: var(--astrix-text-secondary);
    background: var(--astrix-surface);
    border: 1px solid var(--astrix-border);
    border-radius: 999px;
    padding: 8px 16px;
    font-family: var(--astrix-font);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--astrix-tracking-wider);
    transition: all var(--astrix-transition);
}

body.astrix-dark .nav-pills > li > a:hover,
body.astrix-dark .nav-pills > li > a:focus,
body.astrix-theme .nav-pills > li > a:hover,
body.astrix-theme .nav-pills > li > a:focus {
    color: var(--astrix-heading);
    background: var(--astrix-surface-hover);
    border-color: var(--astrix-border-strong);
}

body.astrix-dark .nav-pills > li.active > a,
body.astrix-dark .nav-pills > li.active > a:hover,
body.astrix-dark .nav-pills > li.active > a:focus,
body.astrix-theme .nav-pills > li.active > a,
body.astrix-theme .nav-pills > li.active > a:hover,
body.astrix-theme .nav-pills > li.active > a:focus {
    color: var(--astrix-accent-text);
    background: var(--astrix-accent);
    border-color: var(--astrix-accent);
}

body.astrix-dark .nav-pills > li.pull-right,
body.astrix-theme .nav-pills > li.pull-right {
    margin-left: auto;
}

body.astrix-dark .nav-pills .input-group,
body.astrix-theme .nav-pills .input-group {
    min-width: 220px;
}

body.astrix-dark .nav-pills .input-group .form-control,
body.astrix-theme .nav-pills .input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

body.astrix-dark .nav-pills .input-group-btn .btn,
body.astrix-theme .nav-pills .input-group-btn .btn {
    height: 44px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* ── Tables ── */

body.astrix-dark .table,
body.astrix-theme .table {
    color: var(--astrix-text);
    margin-bottom: 0;
}

body.astrix-dark .table > thead > tr > th,
body.astrix-dark .table > tbody > tr > th,
body.astrix-dark .table > tfoot > tr > th,
body.astrix-dark .table > thead > tr > td,
body.astrix-dark .table > tbody > tr > td,
body.astrix-dark .table > tfoot > tr > td,
body.astrix-theme .table > thead > tr > th,
body.astrix-theme .table > tbody > tr > th,
body.astrix-theme .table > tfoot > tr > th,
body.astrix-theme .table > thead > tr > td,
body.astrix-theme .table > tbody > tr > td,
body.astrix-theme .table > tfoot > tr > td {
    border-color: var(--astrix-border);
    padding: 12px 14px;
    vertical-align: middle;
}

body.astrix-dark .table > thead > tr > th,
body.astrix-theme .table > thead > tr > th {
    color: var(--astrix-text-secondary);
    font-family: var(--astrix-font);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--astrix-tracking-wider);
    border-bottom: 1px solid var(--astrix-border-strong);
    background: var(--astrix-bg-elevated);
}

body.astrix-dark .table > tbody > tr,
body.astrix-theme .table > tbody > tr {
    transition: background var(--astrix-transition);
}

body.astrix-dark .table > tbody > tr:hover,
body.astrix-theme .table > tbody > tr:hover {
    background: var(--astrix-surface-hover);
}

body.astrix-dark .table-striped > tbody > tr:nth-of-type(odd),
body.astrix-theme .table-striped > tbody > tr:nth-of-type(odd) {
    background: rgba(255, 255, 255, 0.02);
}

body.astrix-dark .table-striped > tbody > tr:nth-of-type(odd):hover,
body.astrix-theme .table-striped > tbody > tr:nth-of-type(odd):hover {
    background: var(--astrix-surface-hover);
}

body.astrix-dark .table tr[data-filter-table-category-id] td,
body.astrix-theme .table tr[data-filter-table-category-id] td {
    background: var(--astrix-bg-elevated);
    color: var(--astrix-heading);
    font-size: 13px;
    letter-spacing: -0.01em;
    border-top: 1px solid var(--astrix-border-strong);
}

body.astrix-dark .service-name,
body.astrix-theme .service-name {
    color: var(--astrix-text);
}

body.astrix-dark .favorite-active,
body.astrix-dark [data-favorite-icon].fas.fa-star,
body.astrix-theme .favorite-active,
body.astrix-theme [data-favorite-icon].fas.fa-star {
    color: #fbbf24;
}

/* ── Pagination ── */

body.astrix-dark .pagination,
body.astrix-theme .pagination {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

body.astrix-dark .pagination > li > a,
body.astrix-dark .pagination > li > span,
body.astrix-theme .pagination > li > a,
body.astrix-theme .pagination > li > span {
    color: var(--astrix-text-secondary);
    background: var(--astrix-surface);
    border: 1px solid var(--astrix-border);
    border-radius: var(--astrix-radius-sm);
    padding: 8px 14px;
    margin: 0;
    transition: all var(--astrix-transition);
}

body.astrix-dark .pagination > li > a:hover,
body.astrix-dark .pagination > li > a:focus,
body.astrix-theme .pagination > li > a:hover,
body.astrix-theme .pagination > li > a:focus {
    color: var(--astrix-heading);
    background: var(--astrix-surface-hover);
    border-color: var(--astrix-border-strong);
}

body.astrix-dark .pagination > .active > a,
body.astrix-dark .pagination > .active > a:hover,
body.astrix-dark .pagination > .active > a:focus,
body.astrix-dark .pagination > .active > span,
body.astrix-theme .pagination > .active > a,
body.astrix-theme .pagination > .active > a:hover,
body.astrix-theme .pagination > .active > a:focus,
body.astrix-theme .pagination > .active > span {
    color: var(--astrix-accent-text);
    background: var(--astrix-accent);
    border-color: var(--astrix-accent);
}

/* ── Alerts ── */

body.astrix-dark .alert,
body.astrix-theme .alert {
    border-radius: var(--astrix-radius);
    border: 1px solid transparent;
    padding: 14px 18px;
    font-size: 14px;
}

body.astrix-dark .alert .close,
body.astrix-theme .alert .close {
    color: inherit;
    opacity: 0.6;
    text-shadow: none;
}

body.astrix-dark .alert .close:hover,
body.astrix-theme .alert .close:hover {
    opacity: 1;
}

body.astrix-dark .alert-success,
body.astrix-theme .alert-success {
    color: var(--astrix-success);
    background: var(--astrix-success-bg);
    border-color: rgba(34, 197, 94, 0.24);
}

body.astrix-dark .alert-danger,
body.astrix-theme .alert-danger {
    color: var(--astrix-danger);
    background: var(--astrix-danger-bg);
    border-color: rgba(239, 68, 68, 0.24);
}

body.astrix-dark .alert-warning,
body.astrix-theme .alert-warning {
    color: var(--astrix-warning);
    background: var(--astrix-warning-bg);
    border-color: rgba(245, 158, 11, 0.24);
}

body.astrix-dark .alert-info,
body.astrix-theme .alert-info {
    color: var(--astrix-info);
    background: var(--astrix-info-bg);
    border-color: rgba(59, 130, 246, 0.24);
}

body.astrix-dark #notify-wrapper,
body.astrix-theme #notify-wrapper {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 9999;
    min-width: 280px;
    max-width: 420px;
    box-shadow: var(--astrix-shadow);
}

/* ── Dropdowns ── */

body.astrix-dark .dropdown-menu,
body.astrix-theme .dropdown-menu {
    background: var(--astrix-surface);
    border: 1px solid var(--astrix-border-strong);
    border-radius: var(--astrix-radius);
    box-shadow: var(--astrix-shadow);
    padding: 6px;
    margin-top: 6px;
}

body.astrix-dark .dropdown-menu > li > a,
body.astrix-dark .dropdown-menu .dropdown-item,
body.astrix-theme .dropdown-menu > li > a,
body.astrix-theme .dropdown-menu .dropdown-item {
    color: var(--astrix-text);
    border-radius: var(--astrix-radius-sm);
    padding: 8px 12px;
    transition: background var(--astrix-transition), color var(--astrix-transition);
}

body.astrix-dark .dropdown-menu > li > a:hover,
body.astrix-dark .dropdown-menu > li > a:focus,
body.astrix-dark .dropdown-menu .dropdown-item:hover,
body.astrix-theme .dropdown-menu > li > a:hover,
body.astrix-theme .dropdown-menu > li > a:focus,
body.astrix-theme .dropdown-menu .dropdown-item:hover {
    color: var(--astrix-heading);
    background: var(--astrix-surface-hover);
}

body.astrix-dark .dropdown-menu > .active > a,
body.astrix-dark .dropdown-menu > .active > a:hover,
body.astrix-dark .dropdown-menu > .active > a:focus,
body.astrix-theme .dropdown-menu > .active > a,
body.astrix-theme .dropdown-menu > .active > a:hover,
body.astrix-theme .dropdown-menu > .active > a:focus {
    color: var(--astrix-heading);
    background: var(--astrix-surface-active);
}

body.astrix-dark .caret,
body.astrix-theme .caret {
    border-top-color: var(--astrix-text-secondary);
}

/* ── Modals ── */

body.astrix-dark .modal-content,
body.astrix-theme .modal-content {
    background: rgba(17, 17, 17, 0.68);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--astrix-border-strong);
    border-radius: var(--astrix-radius-lg);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.64);
    color: var(--astrix-text);
}

body.astrix-dark .modal-header,
body.astrix-theme .modal-header {
    border-bottom: 1px solid var(--astrix-border);
    padding: 20px 24px;
}

body.astrix-dark .modal-title,
body.astrix-theme .modal-title {
    color: var(--astrix-heading);
    font-family: var(--astrix-font);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--astrix-tracking-wide);
}

body.astrix-dark .modal-body,
body.astrix-theme .modal-body {
    padding: 24px;
}

body.astrix-dark .modal-footer,
body.astrix-theme .modal-footer {
    border-top: 1px solid var(--astrix-border);
    padding: 16px 24px;
}

body.astrix-dark .modal-backdrop,
body.astrix-theme .modal-backdrop {
    background: rgba(0, 0, 0, 0.72);
}

/* ── Select2 ── */

body.astrix-dark .select2-container--default .select2-selection--single,
body.astrix-dark .select2-container--default .select2-selection--multiple,
body.astrix-theme .select2-container--default .select2-selection--single,
body.astrix-theme .select2-container--default .select2-selection--multiple {
    background: var(--astrix-bg-elevated);
    border: 1px solid var(--astrix-border-strong);
    border-radius: var(--astrix-radius);
    min-height: 44px;
    display: flex;
    align-items: center;
}

/* Flex-centered rather than relying on line-height, since the rendered
   selection often wraps a badge/id chip whose own height doesn't line up
   with a plain text line box and was pushing the text down inside it. */
body.astrix-dark .select2-container--default .select2-selection--single .select2-selection__rendered,
body.astrix-theme .select2-container--default .select2-selection--single .select2-selection__rendered {
    display: flex;
    align-items: center;
    width: 100%;
    color: var(--astrix-heading);
    line-height: normal;
    padding-left: 14px;
}

body.astrix-dark .select2-container--default .select2-selection--single .select2-selection__rendered .badge,
body.astrix-theme .select2-container--default .select2-selection--single .select2-selection__rendered .badge {
    flex: 0 0 auto;
}

body.astrix-dark .select2-container--default .select2-selection--single .select2-selection__arrow b,
body.astrix-theme .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-top-color: var(--astrix-text-secondary);
}

body.astrix-dark .select2-dropdown,
body.astrix-theme .select2-dropdown {
    background: var(--astrix-surface);
    border: 1px solid var(--astrix-border-strong);
    border-radius: var(--astrix-radius);
    box-shadow: var(--astrix-shadow);
}

body.astrix-dark .select2-results__option,
body.astrix-theme .select2-results__option {
    color: var(--astrix-text);
}

body.astrix-dark .select2-container--default .select2-results__option--highlighted[aria-selected],
body.astrix-theme .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--astrix-surface-hover);
    color: var(--astrix-heading);
}

body.astrix-dark .select2-container--default .select2-results__option[aria-selected=true],
body.astrix-theme .select2-container--default .select2-results__option[aria-selected=true] {
    background: var(--astrix-surface-active);
    color: var(--astrix-heading);
}

body.astrix-dark .select2-search__field,
body.astrix-theme .select2-search__field {
    background: var(--astrix-bg-elevated);
    border: 1px solid var(--astrix-border);
    border-radius: var(--astrix-radius-sm);
    color: var(--astrix-heading);
}

/* ── Tooltips ── */

body.astrix-dark .tooltip-inner,
body.astrix-theme .tooltip-inner {
    background: var(--astrix-surface);
    color: var(--astrix-text);
    border: 1px solid var(--astrix-border-strong);
    border-radius: var(--astrix-radius-sm);
    font-family: var(--astrix-font);
    font-size: 12px;
    padding: 6px 10px;
    box-shadow: var(--astrix-shadow);
}

body.astrix-dark .tooltip.top .tooltip-arrow,
body.astrix-theme .tooltip.top .tooltip-arrow {
    border-top-color: var(--astrix-border-strong);
}

/* ── Search dropdown (new order) ── */

body.astrix-dark .search-dropdown .form-control,
body.astrix-theme .search-dropdown .form-control {
    padding-left: 40px;
}

body.astrix-dark .search-dropdown button,
body.astrix-theme .search-dropdown button {
    color: var(--astrix-text-muted);
}

/* ── Tempus Dominus / datetime picker ── */

body.astrix-dark .tempus-dominus-widget.dark,
body.astrix-theme .tempus-dominus-widget.dark {
    background: var(--astrix-surface);
    border: 1px solid var(--astrix-border-strong);
    border-radius: var(--astrix-radius);
    box-shadow: var(--astrix-shadow);
}

/* ── RTL support ── */

body.astrix-dark.rtl-navbar .navbar-nav,
body.astrix-theme.rtl-navbar .navbar-nav {
    float: right;
}

/* ── Responsive ── */

@media (max-width: 767px) {
    body.astrix-dark .navbar-nav > li > a,
    body.astrix-theme .navbar-nav > li > a {
        padding: 12px 16px;
    }

    body.astrix-dark .navbar-collapse,
    body.astrix-theme .navbar-collapse {
        background: var(--astrix-bg-elevated);
        border-top: 1px solid var(--astrix-border);
        margin-top: 0;
        padding-bottom: 12px;
    }

    body.astrix-dark .nav-pills > li.pull-right,
    body.astrix-theme .nav-pills > li.pull-right {
        margin-left: 0;
        width: 100%;
    }

    body.astrix-dark .nav-pills .input-group,
    body.astrix-theme .nav-pills .input-group {
        width: 100%;
    }

    body.astrix-dark .well,
    body.astrix-theme .well {
        padding: 20px;
    }

    body.astrix-dark > .container,
    body.astrix-dark > .container-fluid,
    body.astrix-theme > .container,
    body.astrix-theme > .container-fluid {
        padding-top: 20px;
    }
}

@media (min-width: 768px) {
    body.astrix-dark .col-md-8.col-md-offset-2,
    body.astrix-theme .col-md-8.col-md-offset-2 {
        float: none;
        width: 100%;
        max-width: var(--astrix-content-width);
        margin-left: auto;
        margin-right: auto;
    }
}

/* ── Landing page (sign-in hero + marketing sections) ── */

.astrix-container {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

/* Modifier for sections whose content isn't self-padded by a bordered
   panel/card/banner (hero copy, stats, platform tags, footer) — keeps
   text off the physical viewport edge while the section itself stays
   full-bleed. */

.astrix-container-padded {
    padding-left: 40px;
    padding-right: 40px;
}

@media (min-width: 1920px) {
    .astrix-container-padded {
        padding-left: 72px;
        padding-right: 72px;
    }
}

@media (max-width: 767px) {
    .astrix-container-padded {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.astrix-section {
    padding-top: 0;
    padding-bottom: 0;
}

.astrix-section--platforms,
.astrix-section--testimonials {
    padding-top: 48px;
    padding-bottom: 0;
}

/* Full-bleed background bands — each marketing section sits on a solid
   panel (instead of the transparent galaxy canvas) and alternates shade
   for rhythm, matching the astrix.gg landing page. */

.astrix-band {
    width: 100%;
    background: var(--astrix-bg-elevated);
}

.astrix-band--alt {
    background: var(--astrix-surface);
}

.astrix-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    margin-bottom: 20px;
    border: 1px solid var(--astrix-border-strong);
    border-radius: 999px;
    background: var(--astrix-surface);
    color: var(--astrix-text-secondary);
    font-family: var(--astrix-font);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--astrix-tracking-wider);
}

.astrix-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--astrix-success);
    box-shadow: 0 0 0 3px var(--astrix-success-bg);
}

/* Hero */

.astrix-hero {
    min-height: calc(100vh - var(--astrix-nav-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 24px;
    padding-bottom: 48px;
}

.astrix-hero-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.astrix-hero-copy {
    padding-top: 24px;
    padding-bottom: 24px;
}

.astrix-hero-title {
    font-size: clamp(32px, 4.6vw, 52px);
    line-height: 1.12;
    margin: 0 0 20px;
    max-width: 600px;
}

.astrix-hero-subtitle {
    font-size: 17px;
    line-height: 1.6;
    color: var(--astrix-text-secondary);
    max-width: 500px;
    margin-bottom: 28px;
}

.astrix-hero-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.astrix-hero-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--astrix-text);
    font-size: 13px;
}

.astrix-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: none;
}

.astrix-dot-success {
    background: var(--astrix-success);
    box-shadow: 0 0 0 3px var(--astrix-success-bg);
}

.astrix-hero-form-col {
    display: flex;
    justify-content: center;
}

.astrix-hero-well {
    width: 100%;
    max-width: 460px;
    margin: 0;
    box-shadow: 0 0 0 1px var(--astrix-border-strong), 0 24px 64px rgba(0, 0, 0, 0.6);
}

/* Stats strip */

.astrix-stats-strip-wrap {
    border-top: 1px solid var(--astrix-border);
    border-bottom: 1px solid var(--astrix-border);
    background: var(--astrix-bg-elevated);
}

.astrix-stats-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 24px;
    padding: 40px 0;
    text-align: center;
}

.astrix-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 130px;
}

.astrix-stat-num {
    font-family: var(--astrix-font);
    font-size: 34px;
    font-weight: 700;
    color: var(--astrix-heading);
}

.astrix-stat-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--astrix-tracking-wider);
    color: var(--astrix-text-secondary);
}

/* Section headers — big heading + rule + asterisk, ported from astrix.gg */

.astrix-section-header {
    margin-bottom: 24px;
}

.astrix-heading-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 0;
}

.astrix-big-heading {
    margin: 0;
    font-size: clamp(28px, 4.6vw, 52px);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.astrix-heading-rule {
    flex: 1 1 auto;
    height: 1px;
    min-width: 40px;
    background: var(--astrix-border-strong);
}

.astrix-heading-asterisk {
    flex: none;
    font-family: var(--astrix-mono);
    font-size: 30px;
    font-weight: 700;
    color: var(--astrix-text-muted);
    line-height: 1;
}

/* Bordered panel — heading + shared-border grid sitting inside one outlined
   block (matches the dense, gapless card grid on astrix.gg) */

.astrix-panel {
    border: 1px solid var(--astrix-border);
}

.astrix-panel-head {
    padding: 32px 40px;
    border-bottom: 1px solid var(--astrix-border);
}

.astrix-panel-head .astrix-section-lede {
    margin-top: 8px;
}

.astrix-panel-grid {
    display: flex;
    flex-wrap: wrap;
}

.astrix-panel-grid > * {
    flex: 1 1 0;
    min-width: 220px;
    border-right: 1px solid var(--astrix-border);
}

.astrix-panel-grid > *:last-child {
    border-right: none;
}

@media (max-width: 767px) {
    .astrix-panel-grid {
        flex-direction: column;
    }

    .astrix-panel-grid > * {
        border-right: none;
        border-bottom: 1px solid var(--astrix-border);
    }

    .astrix-panel-grid > *:last-child {
        border-bottom: none;
    }
}

/* Scroll-reveal — elements fade/slide up into place once scrolled into view */

.astrix-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.astrix-reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

.astrix-reveal-group > *:nth-child(1) {
    transition-delay: 0s;
}

.astrix-reveal-group > *:nth-child(2) {
    transition-delay: 0.1s;
}

.astrix-reveal-group > *:nth-child(3) {
    transition-delay: 0.2s;
}

.astrix-reveal-group > *:nth-child(4) {
    transition-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
    .astrix-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.astrix-section-lede {
    color: var(--astrix-text-secondary);
    font-size: 15px;
    max-width: 600px;
    margin: 10px 0 0;
    text-transform: none;
}

/* Feature cards — sit as flush cells inside .astrix-panel-grid, no
   individual border/radius/shadow; dividers come from the parent grid */

.astrix-feature-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 32px 36px;
    transition: background var(--astrix-transition);
}

.astrix-feature-card:hover {
    background: rgba(255, 255, 255, 0.02);
}

.astrix-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 18px;
    border: 1px solid var(--astrix-border-strong);
    border-radius: var(--astrix-radius);
    background: var(--astrix-bg-elevated);
    font-size: 17px;
}

.astrix-feature-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.astrix-feature-card p {
    margin: 0;
    color: var(--astrix-text-secondary);
    font-size: 13px;
    line-height: 1.6;
    text-transform: none;
}

.astrix-feature-skeleton {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--astrix-border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.astrix-skeleton-bar {
    display: block;
    height: 5px;
    border-radius: 2px;
    background: var(--astrix-border-strong);
}

.astrix-skeleton-bar--full {
    width: 100%;
}

.astrix-skeleton-bar--short {
    width: 55%;
}

.astrix-skeleton-dots {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.astrix-skeleton-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.astrix-skeleton-dot--success {
    background: var(--astrix-success);
}

.astrix-skeleton-dot--warning {
    background: var(--astrix-warning);
}

.astrix-skeleton-dot--muted {
    background: var(--astrix-border-strong);
}

/* Steps */

.astrix-step {
    height: 100%;
    padding: 32px 36px;
    transition: background var(--astrix-transition);
}

.astrix-step:hover {
    background: rgba(255, 255, 255, 0.02);
}

.astrix-step-num {
    display: block;
    font-family: var(--astrix-font);
    font-size: 30px;
    font-weight: 700;
    color: var(--astrix-text-muted);
    margin-bottom: 12px;
}

.astrix-step h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.astrix-step p {
    margin: 0;
    color: var(--astrix-text-secondary);
    font-size: 13px;
    line-height: 1.6;
    text-transform: none;
}

/* Testimonials / client stories */

/* Testimonials — square (1:1) cards inside the infinite scroll marquee */

.astrix-testimonial-card {
    flex: none;
    width: 340px;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    padding: 32px 36px;
    border-right: 1px solid var(--astrix-border);
    overflow: hidden;
    transition: background var(--astrix-transition);
}

.astrix-testimonial-card:hover {
    background: rgba(255, 255, 255, 0.02);
}

.astrix-testimonial-stars {
    flex: none;
    color: var(--astrix-warning);
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.astrix-testimonial-card p {
    flex: 1 1 auto;
    color: var(--astrix-text);
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 16px;
    text-transform: none;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    overflow: hidden;
}

.astrix-testimonial-author {
    flex: none;
    display: block;
    color: var(--astrix-text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: var(--astrix-tracking-wider);
}

@media (max-width: 640px) {
    .astrix-testimonial-card {
        width: 250px;
    }
}

/* Shared infinite left-scrolling marquee — used for platform logos and
   client testimonials */

.astrix-marquee {
    position: relative;
    width: 100%;
    margin-top: 32px;
    overflow: hidden;
    border-top: 1px solid var(--astrix-border);
    border-bottom: 1px solid var(--astrix-border);
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.astrix-marquee-track {
    display: flex;
    align-items: stretch;
    width: max-content;
    animation: astrix-marquee-scroll 47s linear infinite;
}

.astrix-marquee--fast .astrix-marquee-track {
    animation-duration: 34s;
}

.astrix-marquee:hover .astrix-marquee-track {
    animation-play-state: paused;
}

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

.astrix-platform-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 200px;
    height: 120px;
    background: transparent;
    border-right: 1px solid var(--astrix-border);
    color: rgba(255, 255, 255, 0.75);
    font-size: 44px;
    transition: color var(--astrix-transition), background var(--astrix-transition);
}

.astrix-platform-tile:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.03);
}

@media (prefers-reduced-motion: reduce) {
    .astrix-marquee-track {
        animation: none;
    }

    .astrix-marquee {
        overflow-x: auto;
    }
}

@media (max-width: 640px) {
    .astrix-platform-tile {
        width: 150px;
        height: 96px;
        font-size: 32px;
    }
}

/* CTA — centered heading over a single bordered card (checklist, contact
   info, button), with a scattered asterisk pattern across the whole
   section rather than confined to the card */

.astrix-cta-section {
    position: relative;
    padding-top: 72px;
    padding-bottom: 72px;
    text-align: center;
    overflow: hidden;
}

.astrix-cta-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.9;
    pointer-events: none;
    background-repeat: repeat;
    background-size: 160px 160px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Ctext x='6' y='38' font-family='monospace' font-weight='700' font-size='30' fill='%23222222'%3E*%3C/text%3E%3Ctext x='96' y='30' font-family='monospace' font-weight='700' font-size='18' fill='%23333333'%3E*%3C/text%3E%3Ctext x='58' y='92' font-family='monospace' font-weight='700' font-size='22' fill='%23333333'%3E*%3C/text%3E%3Ctext x='118' y='128' font-family='monospace' font-weight='700' font-size='34' fill='%23222222'%3E*%3C/text%3E%3Ctext x='12' y='140' font-family='monospace' font-weight='700' font-size='16' fill='%23333333'%3E*%3C/text%3E%3C/svg%3E");
    mask-image: radial-gradient(ellipse 90% 90% at 50% 40%, black 60%, transparent 95%);
    -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 40%, black 60%, transparent 95%);
}

.astrix-cta-heading {
    position: relative;
    margin: 0 0 32px;
    font-size: clamp(24px, 3.6vw, 34px);
}

.astrix-cta-card {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
    text-align: left;
    background: rgba(17, 17, 17, 0.65);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--astrix-border-strong);
}

.astrix-cta-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.astrix-cta-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--astrix-border);
}

.astrix-check-dot {
    flex: none;
    width: 8px;
    height: 8px;
    margin-top: 6px;
    border-radius: 2px;
    background: var(--astrix-success);
}

.astrix-cta-checklist li strong {
    display: block;
    color: var(--astrix-heading);
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
    margin-bottom: 2px;
}

.astrix-cta-checklist li span {
    display: block;
    color: var(--astrix-text-secondary);
    font-size: 12px;
    text-transform: none;
}

.astrix-cta-info-row {
    display: flex;
    border-bottom: 1px solid var(--astrix-border);
}

.astrix-cta-info-cell {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-right: 1px solid var(--astrix-border);
}

.astrix-cta-info-cell:last-child {
    border-right: none;
}

.astrix-cta-info-icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--astrix-border-strong);
    color: var(--astrix-text-secondary);
    font-size: 13px;
}

.astrix-cta-info-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.astrix-cta-info-label {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: var(--astrix-tracking-wider);
    color: var(--astrix-text-muted);
    margin-bottom: 3px;
}

.astrix-cta-info-value {
    display: block;
    color: var(--astrix-heading);
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.astrix-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    text-align: center;
    padding: 16px;
    font-size: 13px;
    border-radius: 0;
}

.astrix-cta-btn-arrow {
    flex: none;
    transition: transform var(--astrix-transition);
}

.astrix-cta-btn:hover .astrix-cta-btn-arrow {
    transform: translateX(3px);
}

@media (max-width: 480px) {
    .astrix-cta-info-row {
        flex-direction: column;
    }

    .astrix-cta-info-cell {
        border-right: none;
        border-bottom: 1px solid var(--astrix-border);
    }

    .astrix-cta-info-cell:last-child {
        border-bottom: none;
    }
}

/* Footer — multi-column */

.astrix-landing-footer {
    border-top: 1px solid var(--astrix-border);
    padding: 56px 0 28px;
}

.astrix-footer-grid {
    margin-bottom: 40px;
}

.astrix-footer-brand-col {
    margin-bottom: 24px;
}

.astrix-footer-brand {
    display: block;
    font-family: var(--astrix-font);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--astrix-tracking-wide);
    color: var(--astrix-heading);
    font-size: 14px;
    margin-bottom: 10px;
}

.astrix-footer-tagline {
    color: var(--astrix-text-secondary);
    font-size: 13px;
    line-height: 1.6;
    text-transform: none;
    max-width: 320px;
    margin: 0;
}

.astrix-footer-col {
    margin-bottom: 24px;
}

.astrix-footer-col-title {
    display: block;
    color: var(--astrix-heading);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--astrix-tracking-wider);
    margin-bottom: 14px;
}

.astrix-footer-col a {
    display: block;
    color: var(--astrix-text-secondary);
    font-size: 13px;
    margin-bottom: 10px;
    text-transform: none;
}

.astrix-footer-col a:hover {
    color: var(--astrix-heading);
}

.astrix-footer-bottom {
    border-top: 1px solid var(--astrix-border);
    padding-top: 20px;
    color: var(--astrix-text-muted);
    font-size: 12px;
}

@media (max-width: 991px) {
    .astrix-hero-copy {
        text-align: center;
        padding-bottom: 0;
    }

    .astrix-hero-title,
    .astrix-hero-subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .astrix-hero-points {
        align-items: center;
    }

    .astrix-hero-form-col {
        margin-top: 32px;
    }

    .astrix-section--platforms,
    .astrix-section--testimonials {
        padding-top: 32px;
        padding-bottom: 0;
    }

    .astrix-stats-strip {
        justify-content: center;
    }

    .astrix-cta-banner {
        padding: 32px 24px;
    }

    .astrix-footer-brand-col,
    .astrix-footer-col {
        text-align: center;
    }

    .astrix-footer-tagline {
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .astrix-heading-row {
        flex-wrap: wrap;
        gap: 12px;
    }

    .astrix-heading-asterisk {
        display: none;
    }
}

/* ── Dashboard shell ──
   Full-width/full-height "management panel" layout for signed-in tool
   pages (new order, etc.): a main column of stacked panels beside a
   sticky order-summary sidebar, instead of one long centered card. */

.astrix-visually-hidden {
    display: none;
}

/* The shell's height used to be `calc(100vh - navheight)`, but that
   arithmetic gets thrown off by the *nested* zoom stack (html: 1.15 ×
   body.astrix-authed: 0.78) and was consistently coming up short, leaving
   a dead gap at the bottom of the screen. Making the body itself a flex
   column and letting the shell `flex-grow` into whatever's left after the
   nav sidesteps vh/zoom arithmetic entirely — flex-grow distributes real
   leftover space rather than computing it from viewport-unit subtraction. */
html:has(body.astrix-authed .astrix-dash-shell) {
    height: 100%;
    overflow: hidden;
}

body.astrix-authed:has(.astrix-dash-shell) {
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

.astrix-dash-shell {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* The generic authed-container rule pads every page with a roomy
   28px/40px top/bottom gap meant for normal scrolling content — the
   dashboard shell already spaces itself out via panel gaps, so it only
   needs a thin sliver of breathing room, freeing the rest of that
   padding up for the grid to stretch into. */
body.astrix-authed > .astrix-dash-shell {
    padding-top: 12px;
    padding-bottom: 12px;
}

.astrix-dash-shell .alert {
    flex: 0 0 auto;
}

.astrix-dash-grid {
    display: grid;
    /* fr units (not %) so the 24px→18px gaps are subtracted from the
       available width first — percentage tracks don't account for gaps
       and were overflowing the row, eating into the right-hand padding. */
    grid-template-columns: 2fr 5fr 3fr;
    gap: 18px;
    align-items: stretch;
    align-content: stretch;
    flex: 1 1 auto;
    min-height: 0;
}

/* Description always occupies its slot in the layout — even before a
   service is picked, or if the platform's own JS re-applies its
   ".hidden" toggle for services with no description text — rather than
   collapsing the middle column. */
#service_description.hidden {
    display: flex !important;
}

.astrix-dash-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    min-height: 0;
    height: 100%;
}

.astrix-dash-panel {
    background: rgba(17, 17, 17, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--astrix-border);
    border-radius: var(--astrix-radius);
    overflow: hidden;
    flex: 0 0 auto;
}

.astrix-dash-panel--grow {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.astrix-dash-panel--sticky {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.astrix-dash-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    height: 24px;
    padding: 0 16px;
    background: rgba(26, 26, 26, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--astrix-border);
    flex: 0 0 auto;
    overflow: hidden;
}

.astrix-dash-panel-title {
    font-family: var(--astrix-mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--astrix-tracking-wider);
    color: var(--astrix-text-muted);
    white-space: nowrap;
    line-height: 1;
}

.astrix-dash-panel-body {
    padding: 20px;
}

.astrix-dash-panel--grow .astrix-dash-panel-body,
.astrix-dash-panel--sticky .astrix-dash-panel-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

/* Description panel keeps the app's original flat label + .panel-body
   DOM structure (no extra wrapper divs) so the platform's own JS — which
   replaces the description's contents when the selected service changes
   — keeps targeting the same elements instead of duplicating output. */

.astrix-dash-panel-head.control-label {
    margin-bottom: 0;
    flex: 0 0 auto;
}

.astrix-dash-panel--grow > .panel-body {
    flex: 1 1 auto;
    min-height: 0;
    margin: 18px;
}

.astrix-dash-search {
    position: relative;
    flex: 1 1 200px;
    max-width: 260px;
}

.astrix-dash-search .form-control {
    height: 20px;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    font-size: 11px;
    line-height: 20px;
}

.astrix-dash-search button {
    top: 50% !important;
}

.astrix-dash-description {
    height: 100%;
    overflow-y: auto;
    color: var(--astrix-text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Category picker — deduplicated platform buttons (one per unique icon,
   not per fine-grained category) standing in for the plain <select>,
   which is kept in the DOM (hidden) purely so the app's existing
   category-change logic keeps working untouched. Picking a platform
   reveals its specific categories as a second row of chips. */

.astrix-category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-content: start;
    gap: 8px;
    padding: 16px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.astrix-category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 6px;
    background: rgba(26, 26, 26, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--astrix-border);
    border-radius: var(--astrix-radius);
    color: var(--astrix-text-muted);
    text-align: center;
    cursor: pointer;
    transition: border-color var(--astrix-transition), color var(--astrix-transition), background var(--astrix-transition);
}

.astrix-category-btn:hover {
    color: var(--astrix-text);
    border-color: var(--astrix-border-strong);
    background: var(--astrix-surface-hover);
}

.astrix-category-btn--active {
    color: var(--astrix-heading);
    border-color: var(--astrix-text);
    background: var(--astrix-surface-hover);
}

.astrix-category-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    font-size: 20px;
    line-height: 1;
    transition: transform var(--astrix-transition);
}

.astrix-category-btn:hover .astrix-category-btn-icon,
.astrix-category-btn--active .astrix-category-btn-icon {
    transform: scale(1.08);
}

.astrix-category-btn-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: var(--astrix-tracking-wide);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.astrix-subcategory-panel {
    flex: 0 0 auto;
    background: none;
    border: none;
}

.astrix-subcategory-wrap {
    padding: 0 2px 4px;
    max-height: 160px;
    overflow-y: auto;
}

.astrix-subcategory-list {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
}

.astrix-subcategory-list.astrix-subcategory-list--active {
    display: flex;
}

.astrix-subcategory-btn {
    padding: 8px 16px;
    background: var(--astrix-bg-elevated);
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--astrix-text-muted);
    font-family: var(--astrix-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--astrix-tracking-wide);
    cursor: pointer;
    transition: border-color var(--astrix-transition), color var(--astrix-transition), background var(--astrix-transition);
}

.astrix-subcategory-btn:hover {
    color: var(--astrix-text);
    border-color: var(--astrix-border-strong);
}

.astrix-subcategory-btn--active {
    color: var(--astrix-bg);
    border-color: var(--astrix-heading);
    background: var(--astrix-heading);
}

@media (max-width: 1300px) {
    html:has(body.astrix-authed .astrix-dash-shell) {
        height: auto;
        overflow: visible;
    }

    body.astrix-authed:has(.astrix-dash-shell) {
        height: auto;
        min-height: 100vh;
        max-height: none;
        overflow: visible;
    }

    .astrix-dash-shell {
        flex: 0 0 auto;
        height: auto;
        overflow: visible;
    }

    .astrix-dash-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .astrix-dash-col {
        height: auto;
    }

    .astrix-dash-panel--grow,
    .astrix-dash-panel--sticky {
        flex: 0 0 auto;
    }

    .astrix-category-grid {
        max-height: 320px;
    }

    .astrix-dash-description {
        height: auto;
        max-height: 320px;
    }
}

@media (max-width: 640px) {
    .astrix-dash-panel-head {
        padding: 14px 16px;
    }

    .astrix-dash-panel-body {
        padding: 16px;
    }

    .astrix-category-grid {
        padding: 14px 16px;
        grid-template-columns: repeat(2, 1fr);
    }
}
