/* =========================================================
   Chronexa site.css
   Clean consolidated version
   Bootstrap 4.6.2 compatible
   ========================================================= */

:root {
    --cx-bg: #020916;
    --cx-bg-2: #041325;
    --cx-bg-3: #061d36;
    --cx-panel: rgba(12, 27, 45, 0.88);
    --cx-panel-2: rgba(17, 36, 58, 0.96);
    --cx-panel-soft: rgba(255, 255, 255, 0.05);
    --cx-border: rgba(255, 255, 255, 0.08);
    --cx-border-strong: rgba(255, 255, 255, 0.12);
    --cx-text: #f4f7fb;
    --cx-text-soft: rgba(244, 247, 251, 0.72);
    --cx-text-dim: rgba(244, 247, 251, 0.55);
    --cx-blue: #62aaff;
    --cx-blue-2: #2f7df5;
    --cx-blue-soft: rgba(98, 170, 255, 0.14);
    --cx-danger-soft: rgba(255, 137, 137, 0.12);
    --cx-shadow: 0 16px 44px rgba(0, 0, 0, 0.26);
    --cx-shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.20);
    --cx-radius-xl: 28px;
    --cx-radius-lg: 22px;
    --cx-radius-md: 16px;
    --cx-radius-sm: 12px;
    --cx-sidebar-width: 246px;
    --cx-shell-gap: 1.25rem;
}

/* =========================================================
   Base
   ========================================================= */

html {
    min-height: 100%;
    font-size: 13px;
}

@media (min-width: 768px) {
    html {
        font-size: 14px;
    }
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--cx-text);
    background: radial-gradient(circle at 16% 10%, rgba(84, 156, 255, 0.24), transparent 24%), linear-gradient(180deg, #07264b 0%, #031427 34%, #020916 100%);
    background-attachment: fixed;
}

    body::before {
        content: "";
        position: fixed;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), transparent 16%);
        opacity: .55;
    }

main {
    position: relative;
    z-index: 1;
}

.container-fluid-wide {
    max-width: 1540px;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* =========================================================
   Global controls
   ========================================================= */

.btn,
.form-control {
    border-radius: 16px;
}

.form-control {
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .10);
    color: #fff;
}

    .form-control:focus {
        background: rgba(255, 255, 255, .14);
        border-color: rgba(116, 179, 255, .45);
        color: #fff;
        box-shadow: 0 0 0 .2rem rgba(46, 125, 246, .18);
    }

    .form-control::placeholder {
        color: rgba(223, 235, 255, .44);
    }

select.form-control option,
.auth-input option,
.profile-select option {
    background: #071423;
    color: #ffffff;
}

.btn {
    font-weight: 700;
    padding: .75rem 1.2rem;
    border-width: 1px;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease, background .18s ease, border-color .18s ease;
}

    .btn:hover {
        transform: translateY(-1px);
    }

.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active {
    color: #fff;
    border-color: rgba(118, 184, 255, .10);
    background: linear-gradient(180deg, #5da7ff 0%, #2c7cf4 100%);
    box-shadow: 0 10px 30px rgba(46, 125, 246, .28);
}

    .btn-primary:focus,
    .btn-primary.focus {
        box-shadow: 0 0 0 .2rem rgba(98, 170, 255, .22), 0 10px 30px rgba(46, 125, 246, .28);
    }

.btn-light {
    color: #06111e;
    background: #fff;
    border-color: rgba(255, 255, 255, .10);
}

.btn-outline-light {
    color: #fff;
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .10);
}

    .btn-outline-light:hover {
        color: #06111e;
        background: #fff;
    }

.btn-pill,
.btn-pill-action {
    border-radius: 999px;
}

.btn-pill-action {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
}

.alert {
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    box-shadow: var(--cx-shadow-soft);
}

.language-form-wrap {
    margin-right: .25rem;
}

.language-select {
    min-width: 180px;
    min-height: 42px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .10);
    color: #fff;
}

    .language-select option {
        color: #111;
    }

/* =========================================================
   Guest / public shell
   ========================================================= */

body.guest-body {
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at 9% 6%, rgba(96, 167, 255, .24), transparent 18%), linear-gradient(180deg, #071c35 0%, #031326 28%, #020916 100%);
}

.guest-body::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, .032), transparent 16%);
}

.app-header,
.guest-app-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    backdrop-filter: blur(14px);
}

.guest-app-header {
    margin-bottom: .4rem;
}

.topbar,
.guest-topbar {
    min-height: 78px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    background: linear-gradient(180deg, rgba(4, 15, 28, .94) 0%, rgba(4, 15, 28, .82) 100%);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
}

.guest-topbar {
    min-height: 66px;
    background: linear-gradient(180deg, rgba(4, 15, 28, .95) 0%, rgba(4, 15, 28, .84) 100%);
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    color: #fff !important;
    font-weight: 700;
    font-size: 1.08rem;
    letter-spacing: -.02em;
}

    .brand-lockup:hover {
        text-decoration: none;
        opacity: .98;
    }

.brand-mark {
    width: 38px;
    height: 38px;
    display: block;
}

.brand-word {
    color: #fff;
}

.topbar-actions,
.nav-pill-wrap,
.guest-nav-pill-wrap {
    gap: .75rem;
}

.guest-nav-pill-wrap {
    gap: .7rem;
}

.nav-pill {
    color: rgba(255, 255, 255, .84) !important;
    padding: .68rem 1rem !important;
    border-radius: 999px;
    line-height: 1;
    font-weight: 600;
    transition: .2s ease;
}

    .nav-pill:hover {
        color: #fff !important;
        background: rgba(255, 255, 255, .08);
    }

.page-shell {
    flex: 1 0 auto;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

.footer-shell {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, .06);
    background: rgba(4, 15, 28, .56);
    backdrop-filter: blur(12px);
}

.footer-shell--guest {
    border-top: 1px solid rgba(255, 255, 255, .05);
    background: linear-gradient(180deg, rgba(4, 15, 28, .55) 0%, rgba(4, 15, 28, .80) 100%);
}

.footer-inner {
    padding-top: 1rem;
    padding-bottom: 1rem;
    color: var(--cx-text-dim);
    text-align: center;
}

/* =========================================================
   Guest landing
   ========================================================= */

.guest-cta-button {
    min-height: 44px;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    box-shadow: 0 14px 32px rgba(255, 255, 255, .10);
}

.guest-hero {
    position: relative;
    padding: 1.1rem 0 2rem;
    overflow: hidden;
}

.guest-hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(460px, .95fr);
    gap: 2.3rem;
    align-items: center;
}

.guest-copy {
    max-width: 650px;
    padding: 2rem 0 1.5rem;
}

.eyebrow-pill {
    display: inline-flex;
    align-items: center;
    padding: .45rem .8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    font-weight: 700;
    font-size: .86rem;
    letter-spacing: .01em;
}

.guest-title {
    margin: 1rem 0 1rem;
    display: grid;
    gap: .18rem;
    font-size: clamp(3.2rem, 7vw, 6.4rem);
    line-height: .92;
    letter-spacing: -.075em;
    font-weight: 800;
}

    .guest-title span {
        display: block;
    }

.guest-lead {
    max-width: 610px;
    margin: 0;
    color: var(--cx-text-soft);
    font-size: clamp(1.04rem, 1.55vw, 1.35rem);
    line-height: 1.65;
}

.hero-actions,
.hero-actions--guest {
    display: flex;
    gap: .85rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-actions--guest {
    margin-top: 2.15rem;
}

.btn-hero-primary,
.btn-hero-secondary {
    min-width: 180px;
    min-height: 56px;
    padding-left: 1.35rem;
    padding-right: 1.35rem;
    border-radius: 999px;
}

.guest-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 1.7rem;
}

.guest-trust-pill {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: .55rem .9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .92);
    font-weight: 700;
    font-size: .88rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}

.guest-visual {
    position: relative;
}

.guest-visual__frame {
    position: relative;
    min-height: 620px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 34px;
    background: linear-gradient(145deg, rgba(10, 29, 50, .94) 0%, rgba(5, 20, 33, .95) 58%, rgba(7, 25, 43, .94) 100%);
    box-shadow: 0 28px 70px rgba(0, 0, 0, .30);
    overflow: hidden;
    backdrop-filter: blur(18px);
}

    .guest-visual__frame::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(255, 255, 255, .028), transparent 28%);
        pointer-events: none;
    }

.guest-visual__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: .42rem .82rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    font-weight: 700;
    font-size: .84rem;
}

.guest-visual__art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: .98;
}

.guest-floating-card {
    position: absolute;
    z-index: 4;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: .9rem;
    align-items: center;
    min-width: 240px;
    max-width: 290px;
    padding: .9rem 1rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(12, 30, 50, .82) 0%, rgba(8, 22, 38, .90) 100%);
    box-shadow: 0 18px 38px rgba(0, 0, 0, .26);
    backdrop-filter: blur(18px);
}

.guest-floating-card--top {
    top: 5.7rem;
    left: -1.2rem;
}

.guest-floating-card--right {
    top: 12rem;
    right: -1rem;
}

.guest-floating-card--bottom {
    left: 2rem;
    bottom: 1.3rem;
}

.guest-floating-card__icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(93, 167, 255, .28) 0%, rgba(47, 125, 245, .12) 100%);
    border: 1px solid rgba(125, 184, 255, .22);
    color: #fff;
}

    .guest-floating-card__icon svg {
        width: 20px;
        height: 20px;
    }

.guest-floating-card__body {
    display: grid;
    gap: .2rem;
}

    .guest-floating-card__body span {
        color: var(--cx-text-soft);
        font-size: .82rem;
    }

    .guest-floating-card__body strong {
        font-size: .94rem;
        line-height: 1.35;
        font-weight: 800;
    }

.guest-mini-chip {
    position: absolute;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: .45rem .8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .10);
    font-weight: 700;
    font-size: .84rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}

.guest-mini-chip--one {
    top: 2rem;
    right: 6rem;
}

.guest-mini-chip--two {
    bottom: 2rem;
    right: 2.4rem;
}

.guest-feature-section {
    position: relative;
    padding: .8rem 0 2.5rem;
}

.guest-section-head {
    display: grid;
    gap: .9rem;
    max-width: 760px;
    margin-bottom: 1.35rem;
}

.guest-section-title {
    margin: 0;
    font-size: clamp(1.9rem, 3vw, 3rem);
    line-height: 1.03;
    letter-spacing: -.05em;
    font-weight: 800;
}

.guest-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.guest-feature-card {
    position: relative;
    padding: 1.25rem 1.25rem 1.3rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, .09);
    background: linear-gradient(180deg, rgba(11, 27, 45, .90) 0%, rgba(6, 19, 32, .94) 100%);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .22);
    overflow: hidden;
}

    .guest-feature-card::after {
        content: "";
        position: absolute;
        inset: auto -15% -40% auto;
        width: 180px;
        height: 180px;
        border-radius: 999px;
        background: radial-gradient(circle, rgba(80, 155, 255, .18), transparent 66%);
        pointer-events: none;
    }

.guest-feature-card__icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(125, 184, 255, .16);
    background: linear-gradient(180deg, rgba(93, 167, 255, .22) 0%, rgba(47, 125, 245, .08) 100%);
}

    .guest-feature-card__icon svg {
        width: 24px;
        height: 24px;
    }

.guest-feature-card h3 {
    margin: 0 0 .55rem;
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: -.03em;
}

.guest-feature-card p {
    margin: 0;
    color: var(--cx-text-soft);
    line-height: 1.6;
}

/* Legacy public hero support */
.landing-hero {
    position: relative;
    min-height: calc(100vh - 150px);
    padding: 2.2rem 0 1.25rem;
    overflow: hidden;
}

.landing-hero__content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(320px, 1.1fr) minmax(360px, 1fr);
    gap: 2rem;
    align-items: center;
}

.landing-copy {
    max-width: 680px;
    padding: 1rem 0;
}

.landing-title {
    margin: .85rem 0 1rem;
    font-size: clamp(3rem, 8vw, 6.7rem);
    line-height: .95;
    letter-spacing: -.06em;
    font-weight: 800;
}

.landing-lead {
    max-width: 620px;
    margin-bottom: 0;
    color: var(--cx-text-soft);
    font-size: clamp(1.05rem, 1.5vw, 1.45rem);
    line-height: 1.55;
}

/* =========================================================
   Logged-in app shell
   ========================================================= */

.authenticated-body {
    overflow-x: hidden;
}

.app-shell {
    display: grid;
    grid-template-columns: var(--cx-sidebar-width) minmax(0, 1fr);
    column-gap: var(--cx-shell-gap);
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.app-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 1rem 0 1rem 1rem;
}

.app-sidebar__inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: .95rem;
    border: 1px solid var(--cx-border);
    border-radius: 0 26px 26px 0;
    background: linear-gradient(180deg, rgba(4, 15, 28, .94) 0%, rgba(6, 24, 43, .88) 100%);
    box-shadow: 18px 0 38px rgba(0, 0, 0, .14);
    backdrop-filter: blur(18px);
}

.app-sidebar__brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    padding: .25rem .2rem .85rem;
    color: #fff;
    text-decoration: none !important;
    font-weight: 800;
    letter-spacing: -.02em;
    font-size: 1.25rem;
}

    .app-sidebar__brand:hover {
        color: #fff;
    }

.app-sidebar__brand-mark {
    width: 36px;
    height: 36px;
    display: block;
    flex-shrink: 0;
}

.app-sidebar__brand-text {
    min-width: 0;
}

.app-nav {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin-top: .75rem;
}

.app-nav__link {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 50px;
    padding: .7rem .85rem;
    border: 1px solid transparent;
    border-radius: 16px;
    color: rgba(255, 255, 255, .82);
    text-decoration: none !important;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

    .app-nav__link:hover {
        color: #fff;
        background: rgba(255, 255, 255, .06);
        border-color: rgba(255, 255, 255, .07);
    }

    .app-nav__link.active {
        color: #fff;
        background: linear-gradient(180deg, rgba(63, 133, 228, .22) 0%, rgba(33, 82, 148, .22) 100%);
        border-color: rgba(125, 184, 255, .20);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 10px 24px rgba(31, 102, 193, .12);
    }

.app-nav__icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    flex-shrink: 0;
}

.app-nav__link.active .app-nav__icon {
    background: rgba(93, 167, 255, .18);
    border-color: rgba(125, 184, 255, .18);
}

.app-nav__icon svg {
    width: 16px;
    height: 16px;
}

.app-nav__label {
    font-weight: 700;
    line-height: 1.15;
    font-size: .95rem;
}

.app-sidebar__footer {
    margin-top: auto;
    display: grid;
    gap: .18rem;
    padding: .9rem .2rem .1rem;
    color: var(--cx-text-dim);
    font-size: .8rem;
}

.app-main {
    min-width: 0;
    padding: 1rem 1rem 1rem 0;
}

.app-topbar {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .95rem 1.2rem;
    border: 1px solid var(--cx-border);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(4, 15, 28, .88) 0%, rgba(6, 24, 43, .76) 100%);
    box-shadow: var(--cx-shadow-soft);
    backdrop-filter: blur(18px);
}

.app-topbar__left {
    min-width: 0;
}

.app-topbar__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: .22rem .62rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .04);
    color: var(--cx-text-soft);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.app-topbar__title {
    margin: .45rem 0 0;
    font-size: clamp(1.25rem, 1.6vw, 1.6rem);
    line-height: 1.05;
    letter-spacing: -.03em;
    font-weight: 800;
}

.app-topbar__right {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.app-company-badge {
    max-width: 250px;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 42px;
    padding: .62rem .85rem;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    color: #fff;
}

.app-company-badge__dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: linear-gradient(180deg, #76b7ff 0%, #2f7df5 100%);
    box-shadow: 0 0 0 6px rgba(98, 170, 255, .10);
    flex-shrink: 0;
}

.app-company-badge__text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
}

.app-topbar__action {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 42px;
    padding: .62rem .92rem;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: .94rem;
    transition: background .18s ease, transform .18s ease, border-color .18s ease;
}

    .app-topbar__action:hover {
        background: rgba(255, 255, 255, .09);
    }

.app-topbar__action--solid {
    color: #06111e !important;
    background: #fff;
}

    .app-topbar__action--solid:hover {
        background: rgba(255, 255, 255, .92);
    }

.app-topbar__action-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .app-topbar__action-icon svg {
        width: 16px;
        height: 16px;
    }

.app-content {
    min-width: 0;
    padding-top: .95rem;
    padding-bottom: 1rem;
}

/* =========================================================
   Shared panels, chips, dashboard
   ========================================================= */

.soft-card,
.auth-card,
.dashboard-hero,
.app-card,
.workspace-hero-panel,
.workspace-focus-panel,
.profile-settings-card,
.billing-tax-card,
.billing-summary-card,
.billing-card,
.org-readiness-card,
.org-form-card,
.rs-card,
.um-card,
.um-user-card {
    border: 1px solid var(--cx-border);
    border-radius: var(--cx-radius-lg);
    background: linear-gradient(180deg, rgba(13, 33, 53, .84) 0%, rgba(8, 22, 37, .92) 100%);
    box-shadow: var(--cx-shadow);
    backdrop-filter: blur(18px);
    overflow: hidden;
}

.chip-row {
    display: flex;
    gap: .55rem;
    flex-wrap: wrap;
}

.chip-row--dashboard {
    margin-top: 1rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: .45rem .8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .10);
    color: #fff;
    font-weight: 700;
    font-size: .84rem;
    line-height: 1.2;
}

.chip-danger {
    background: var(--cx-danger-soft);
    border-color: rgba(255, 137, 137, .22);
    color: #ffb4b4;
}

.workspace-dashboard {
    display: grid;
    gap: 1rem;
}

.workspace-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(290px, .8fr);
    gap: 1rem;
}

.workspace-hero-panel {
    position: relative;
    min-height: 228px;
    padding: 1.3rem;
    background: radial-gradient(circle at 16% 0%, rgba(108, 174, 255, .18), transparent 26%), linear-gradient(135deg, rgba(43, 91, 145, .55) 0%, rgba(10, 34, 57, .94) 58%, rgba(5, 18, 30, .98) 100%);
}

    .workspace-hero-panel::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(circle at 88% 14%, rgba(130, 190, 255, .10), transparent 22%);
    }

.workspace-hero-panel__header {
    position: relative;
    z-index: 1;
}

.workspace-pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: .34rem .8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .10);
    font-weight: 700;
}

.workspace-hero-panel__title {
    margin: .8rem 0 .38rem;
    font-size: clamp(2.15rem, 3vw, 3.35rem);
    line-height: .96;
    letter-spacing: -.06em;
    font-weight: 800;
}

.workspace-hero-panel__subtitle,
.app-card__text {
    margin: 0;
    color: var(--cx-text-soft);
    font-size: .95rem;
    line-height: 1.5;
}

.workspace-focus-panel {
    padding: 1.3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(255, 255, 255, .10) 0%, rgba(17, 33, 52, .92) 100%);
}

.workspace-focus-panel__label {
    color: var(--cx-text-soft);
    font-size: .9rem;
}

.workspace-focus-panel__value {
    margin-top: .72rem;
    font-size: clamp(1.8rem, 2.3vw, 2.7rem);
    line-height: .95;
    letter-spacing: -.05em;
    font-weight: 800;
}

.workspace-focus-panel__meta {
    margin-top: .6rem;
    display: grid;
    gap: .35rem;
    color: var(--cx-text-soft);
}

.workspace-focus-panel__actions {
    margin-top: 1rem;
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}

.workspace-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.app-card--dashboard {
    padding: 1.15rem;
    min-height: 100%;
}

.app-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .85rem;
}

    .app-card__header h4 {
        margin: 0;
        font-size: 1.08rem;
        font-weight: 800;
        letter-spacing: -.03em;
    }

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: .28rem .72rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .10);
    font-weight: 700;
}

.kv-list {
    display: grid;
    gap: .55rem;
}

.kv-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .9rem;
    min-height: 46px;
    padding: .68rem .82rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .07);
}

    .kv-row span {
        color: var(--cx-text-soft);
    }

    .kv-row strong {
        text-align: right;
        font-weight: 800;
    }

/* =========================================================
   Flash messages, notices, status chips
   ========================================================= */

.cx-flash-stack,
.billing-message-stack,
.um-message-stack {
    display: grid;
    gap: .8rem;
    margin-bottom: 1rem;
}

.billing-message-stack,
.um-message-stack {
    margin-bottom: 0;
}

.cx-flash {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    padding: .95rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(138, 169, 227, .16);
    background: linear-gradient(180deg, rgba(11, 28, 46, .94) 0%, rgba(7, 21, 37, .98) 100%);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
}

.cx-flash--inline {
    margin-top: 1rem;
    margin-bottom: 0;
    padding: .9rem 1rem;
    box-shadow: none;
}

.billing-message-stack .cx-flash--inline {
    margin-top: 0;
}

.cx-flash--inline .cx-flash-content p {
    font-size: .92rem;
}

.cx-flash--inline .cx-flash-icon {
    width: 1.85rem;
    height: 1.85rem;
}

.cx-flash-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: .05rem;
    font-weight: 900;
    font-size: .92rem;
}

.cx-flash-content strong {
    display: block;
    margin: 0 0 .15rem 0;
    color: #fbfdff;
    font-size: .95rem;
    font-weight: 800;
}

.cx-flash-content p {
    margin: 0;
    color: rgba(229, 239, 255, .82);
    line-height: 1.55;
    font-size: .94rem;
}

.cx-flash--success {
    border-color: rgba(98, 196, 132, .22);
    background: linear-gradient(180deg, rgba(13, 40, 27, .92) 0%, rgba(9, 28, 21, .98) 100%);
}

    .cx-flash--success .cx-flash-icon {
        background: rgba(98, 196, 132, .18);
        color: #91e2ae;
        box-shadow: inset 0 0 0 1px rgba(98, 196, 132, .24);
    }

.cx-flash--error {
    border-color: rgba(227, 103, 120, .22);
    background: linear-gradient(180deg, rgba(48, 18, 27, .92) 0%, rgba(35, 13, 20, .98) 100%);
}

    .cx-flash--error .cx-flash-icon {
        background: rgba(227, 103, 120, .18);
        color: #ffb6c0;
        box-shadow: inset 0 0 0 1px rgba(227, 103, 120, .24);
    }

.cx-flash--warning {
    border-color: rgba(231, 178, 92, .22);
    background: linear-gradient(180deg, rgba(47, 34, 14, .92) 0%, rgba(34, 24, 10, .98) 100%);
}

    .cx-flash--warning .cx-flash-icon {
        background: rgba(231, 178, 92, .18);
        color: #ffd48b;
        box-shadow: inset 0 0 0 1px rgba(231, 178, 92, .24);
    }

.cx-flash--info {
    border-color: rgba(92, 166, 231, .22);
    background: linear-gradient(180deg, rgba(12, 33, 52, .92) 0%, rgba(9, 25, 40, .98) 100%);
}

    .cx-flash--info .cx-flash-icon {
        background: rgba(92, 166, 231, .18);
        color: #9bd0ff;
        box-shadow: inset 0 0 0 1px rgba(92, 166, 231, .24);
    }

.cx-inline-notice {
    margin-top: 1rem;
    padding: .85rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(138, 169, 227, .14);
    background: rgba(255, 255, 255, .04);
    color: rgba(240, 246, 255, .88);
    line-height: 1.5;
    font-size: .93rem;
}

.cx-inline-notice--danger {
    border-color: rgba(227, 103, 120, .2);
    background: rgba(123, 33, 48, .16);
    color: #ffd7dd;
}

.cx-inline-notice--warning {
    border-color: rgba(231, 178, 92, .2);
    background: rgba(128, 86, 18, .14);
    color: #ffe0a3;
}

.cx-inline-notice--info {
    border-color: rgba(92, 166, 231, .2);
    background: rgba(24, 78, 123, .14);
    color: #cfe8ff;
}

.cx-status-chip {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 38px;
    padding: .4rem .85rem;
    border-radius: 999px;
    border: 1px solid rgba(138, 169, 227, .16);
    background: rgba(255, 255, 255, .04);
    color: #f3f7ff;
    font-size: .88rem;
    font-weight: 700;
    white-space: nowrap;
}

    .cx-status-chip::before {
        content: "";
        width: .55rem;
        height: .55rem;
        border-radius: 999px;
        background: currentColor;
        opacity: .9;
        box-shadow: 0 0 0 4px rgba(255, 255, 255, .04);
    }

.cx-status-chip--success {
    color: #97e6b4;
    border-color: rgba(98, 196, 132, .22);
    background: rgba(98, 196, 132, .08);
}

.cx-status-chip--warning {
    color: #ffd48b;
    border-color: rgba(231, 178, 92, .22);
    background: rgba(231, 178, 92, .08);
}

.cx-status-chip--danger {
    color: #ffb8c3;
    border-color: rgba(227, 103, 120, .22);
    background: rgba(227, 103, 120, .08);
}

.cx-status-chip--info {
    color: #9fd4ff;
    border-color: rgba(92, 166, 231, .22);
    background: rgba(92, 166, 231, .08);
}

/* =========================================================
   Auth pages / signup / verify / access denied
   ========================================================= */

.auth-page {
    padding: 2rem 0 3rem;
}

.auth-shell {
    min-height: calc(100vh - 180px);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 500px);
    gap: 1.25rem;
    align-items: stretch;
}

.auth-shell--signup {
    grid-template-columns: minmax(320px, .8fr) minmax(0, 1.35fr);
    align-items: flex-start;
}

.auth-panel,
.auth-card {
    border: 1px solid rgba(130, 165, 230, .14);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(10, 29, 49, .92) 0%, rgba(5, 19, 34, .96) 100%);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
}

.auth-panel {
    position: relative;
    overflow: hidden;
    padding: 1.7rem;
    min-height: 100%;
}

    .auth-panel::after {
        content: "";
        position: absolute;
        inset: auto -10% -25% auto;
        width: 320px;
        height: 320px;
        border-radius: 999px;
        background: radial-gradient(circle, rgba(77, 146, 255, .16) 0%, rgba(77, 146, 255, 0) 70%);
        pointer-events: none;
    }

.auth-card {
    width: 100%;
    max-width: 760px;
    padding: 1.5rem;
}

.auth-card--wide {
    max-width: none;
    padding: 1.35rem;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: .42rem .85rem;
    border-radius: 999px;
    border: 1px solid rgba(147, 183, 247, .16);
    background: rgba(255, 255, 255, .04);
    color: #f5f9ff;
    font-size: .9rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.auth-panel h1 {
    margin: 0 0 .8rem 0;
    color: #fbfdff;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.02;
    letter-spacing: -.04em;
    font-weight: 900;
    max-width: 12ch;
}

.auth-panel p {
    margin: 0;
    color: rgba(236, 244, 255, .82);
    line-height: 1.7;
    font-size: 1rem;
    max-width: 50ch;
}

.auth-feature-list {
    list-style: none;
    margin: 1.35rem 0 0 0;
    padding: 0;
    display: grid;
    gap: .75rem;
}

    .auth-feature-list li {
        position: relative;
        padding: .85rem .9rem .85rem 2.75rem;
        border-radius: 16px;
        border: 1px solid rgba(134, 167, 222, .1);
        background: rgba(255, 255, 255, .03);
        color: rgba(245, 249, 255, .94);
        font-size: .94rem;
        line-height: 1.5;
    }

        .auth-feature-list li::before {
            content: "✓";
            position: absolute;
            left: .9rem;
            top: 50%;
            transform: translateY(-50%);
            width: 1.25rem;
            height: 1.25rem;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, rgba(80, 146, 255, 1) 0%, rgba(111, 187, 255, 1) 100%);
            color: #081424;
            font-size: .82rem;
            font-weight: 900;
        }

.auth-card-head {
    margin-bottom: 1.15rem;
}

    .auth-card-head h2,
    .auth-card h2 {
        margin: 0 0 .35rem 0;
        color: #fbfdff;
        font-size: 1.6rem;
        font-weight: 800;
        letter-spacing: -.03em;
    }

    .auth-card-head p {
        margin: 0;
        color: rgba(224, 236, 255, .76);
        line-height: 1.6;
        font-size: .96rem;
    }

.auth-field + .auth-field {
    margin-top: 0;
}

.auth-label,
.profile-label {
    display: block;
    margin-bottom: .45rem;
    color: #eef5ff;
    font-size: .92rem;
    font-weight: 700;
}

.auth-input,
.auth-card .form-control,
.profile-input {
    min-height: 54px;
    border-radius: 16px;
    border: 1px solid rgba(138, 169, 227, .14);
    background: rgba(255, 255, 255, .04);
    color: #ffffff;
    box-shadow: none;
}

    .auth-input:focus,
    .auth-card .form-control:focus,
    .profile-input:focus {
        border-color: rgba(99, 159, 255, .45);
        background: rgba(255, 255, 255, .05);
        box-shadow: 0 0 0 4px rgba(91, 151, 255, .12);
        color: #fff;
    }

.auth-check {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-top: 1rem;
    color: rgba(232, 240, 253, .88);
    font-size: .94rem;
}

    .auth-check input[type="checkbox"] {
        width: 1rem;
        height: 1rem;
        accent-color: #6fbbff;
    }

.auth-actions {
    display: grid;
    gap: .8rem;
    margin-top: 1.2rem;
}

    .auth-actions .btn {
        min-height: 54px;
        border-radius: 16px;
        font-weight: 800;
    }

.auth-divider {
    height: 1px;
    background: rgba(138, 169, 227, .12);
    margin: 1.2rem 0;
}

.auth-meta {
    color: rgba(220, 232, 250, .7);
    font-size: .92rem;
    line-height: 1.6;
}

    .auth-meta a {
        color: #a8d2ff;
        text-decoration: none;
        font-weight: 700;
    }

        .auth-meta a:hover {
            color: #c7e3ff;
            text-decoration: none;
        }

.auth-code-input {
    text-align: center;
    letter-spacing: .35em;
    font-size: 1.35rem;
    font-weight: 800;
}

.auth-email-pill {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: .45rem .85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(138, 169, 227, .14);
    color: rgba(241, 247, 255, .92);
    font-size: .9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    word-break: break-word;
}

.auth-validation-summary,
.validation-summary-errors {
    margin: 0 0 1rem 0;
    padding: .9rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(227, 103, 120, .2);
    background: rgba(123, 33, 48, .16);
    color: #ffd7dd;
}

.field-validation-error {
    display: block;
    margin-top: .4rem;
    color: #ffbdc7;
    font-size: .86rem;
    font-weight: 600;
}

.auth-panel-note {
    margin-top: 1.25rem;
    padding: .95rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(92, 166, 231, .18);
    background: rgba(24, 78, 123, .12);
    color: rgba(225, 240, 255, .88);
    line-height: 1.55;
    font-size: .94rem;
}

.auth-form-section {
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid rgba(138, 169, 227, .12);
    background: rgba(255, 255, 255, .025);
}

    .auth-form-section + .auth-form-section {
        margin-top: 1rem;
    }

.auth-form-section-head,
.org-form-section__head {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    margin-bottom: 1rem;
}

    .auth-form-section-head > span,
    .org-form-section__head > span {
        width: 2.1rem;
        height: 2.1rem;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        background: linear-gradient(135deg, rgba(80, 146, 255, 1) 0%, rgba(111, 187, 255, 1) 100%);
        color: #071423;
        font-size: .86rem;
        font-weight: 900;
        box-shadow: 0 0 0 5px rgba(80, 146, 255, .08);
    }

    .auth-form-section-head h3,
    .org-form-section__head h4 {
        margin: 0 0 .15rem 0;
        color: #fbfdff;
        font-size: 1.02rem;
        font-weight: 800;
        letter-spacing: -.02em;
    }

    .auth-form-section-head p,
    .org-form-section__head p {
        margin: 0;
        color: rgba(222, 234, 253, .72);
        line-height: 1.45;
        font-size: .9rem;
    }

.auth-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
}

    .auth-form-grid .auth-field {
        margin: 0;
    }

.auth-field--full {
    grid-column: 1 / -1;
}

.auth-card select.form-control.auth-input,
.um-page select.form-control.auth-input,
.profile-select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, rgba(230, 240, 255, .72) 50%), linear-gradient(135deg, rgba(230, 240, 255, .72) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 2.5rem;
}

/* =========================================================
   Profile Settings
   ========================================================= */

.profile-settings-page {
    display: grid;
    gap: 1rem;
}

.profile-hero-modern {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--cx-border);
    border-radius: var(--cx-radius-lg);
    background: radial-gradient(circle at 8% 0%, rgba(108, 174, 255, .18), transparent 26%), linear-gradient(135deg, rgba(43, 91, 145, .48) 0%, rgba(10, 34, 57, .92) 58%, rgba(5, 18, 30, .98) 100%);
    box-shadow: var(--cx-shadow);
    overflow: hidden;
    position: relative;
}

    .profile-hero-modern::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(circle at 92% 14%, rgba(130, 190, 255, .10), transparent 24%);
    }

.profile-hero-modern__main,
.profile-hero-modern__meta {
    position: relative;
    z-index: 1;
}

.profile-hero-modern__main {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.profile-avatar-modern {
    width: 82px;
    height: 82px;
    border-radius: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(125, 184, 255, .18);
    background: linear-gradient(180deg, rgba(93, 167, 255, .28) 0%, rgba(47, 125, 245, .12) 100%);
    color: #ffffff;
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: -.04em;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .22);
}

.profile-avatar-modern--small {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 1.2rem;
}

.profile-hero-modern__copy {
    min-width: 0;
}

    .profile-hero-modern__copy h2 {
        margin: .7rem 0 .35rem;
        color: #fbfdff;
        font-size: clamp(2rem, 3vw, 3.1rem);
        line-height: .98;
        letter-spacing: -.055em;
        font-weight: 900;
    }

    .profile-hero-modern__copy p {
        margin: 0;
        max-width: 56rem;
        color: var(--cx-text-soft);
        line-height: 1.6;
        font-size: .98rem;
    }

.profile-hero-modern__meta {
    display: grid;
    grid-template-columns: minmax(180px, 1fr);
    gap: .7rem;
    min-width: 280px;
    align-content: center;
}

.profile-meta-pill {
    display: grid;
    gap: .15rem;
    padding: .8rem .95rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .055);
}

    .profile-meta-pill span {
        color: var(--cx-text-soft);
        font-size: .82rem;
    }

    .profile-meta-pill strong {
        color: #fff;
        font-size: .96rem;
        font-weight: 800;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.profile-settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    gap: 1rem;
    align-items: start;
}

.profile-settings-card--form,
.profile-settings-card--summary {
    padding: 1.2rem;
}

.profile-settings-card--summary {
    position: sticky;
    top: 6rem;
}

.profile-card-head,
.org-section-head,
.rs-card__header,
.um-card__header,
.billing-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

    .profile-card-head h3,
    .profile-readonly-head h4,
    .profile-summary-top h3,
    .org-section-head h3,
    .rs-card__header h3,
    .um-card__header h3,
    .billing-card-head h3 {
        margin: 0;
        color: #fbfdff;
        font-weight: 850;
        letter-spacing: -.03em;
    }

    .profile-card-head h3 {
        font-size: 1.35rem;
    }

    .profile-card-head p,
    .org-section-head p,
    .rs-card__header p,
    .um-card__header p,
    .billing-card-head p {
        margin: .35rem 0 0;
        color: var(--cx-text-soft);
        line-height: 1.55;
    }

.profile-form-section,
.profile-readonly-section {
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .025);
}

.profile-readonly-section {
    margin-top: 1rem;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
}

.profile-field {
    min-width: 0;
}

.profile-field--full {
    grid-column: 1 / -1;
}

.profile-readonly-head {
    margin-bottom: .85rem;
}

    .profile-readonly-head h4 {
        font-size: 1.05rem;
    }

.profile-readonly-list,
.profile-summary-list {
    display: grid;
    gap: .65rem;
}

.profile-readonly-row,
.profile-summary-item,
.billing-tax-row,
.billing-kv-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .9rem;
    min-height: 48px;
    padding: .72rem .85rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .04);
}

    .profile-readonly-row span,
    .profile-summary-item span,
    .billing-tax-row span,
    .billing-kv-row span {
        color: var(--cx-text-soft);
    }

    .profile-readonly-row strong,
    .profile-summary-item strong,
    .billing-tax-row strong,
    .billing-kv-row strong {
        color: #fff;
        font-weight: 850;
        text-align: right;
        overflow-wrap: anywhere;
    }

.profile-actions,
.profile-form-actions {
    display: flex;
    justify-content: center;
    margin-top: 1.25rem;
}

.profile-save-btn {
    width: auto;
    min-width: 220px;
    max-width: 280px;
    padding: .9rem 1.6rem;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.profile-summary-top {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

    .profile-summary-top h3 {
        font-size: 1.15rem;
    }

    .profile-summary-top p {
        margin: .2rem 0 0;
        color: var(--cx-text-soft);
        overflow-wrap: anywhere;
    }

/* =========================================================
   Billing
   ========================================================= */

.billing-page {
    display: grid;
    gap: 1rem;
}

.billing-hero,
.um-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
    gap: 1rem;
    align-items: stretch;
    padding: 1.25rem;
    border: 1px solid var(--cx-border);
    border-radius: var(--cx-radius-lg);
    background: radial-gradient(circle at 8% 0%, rgba(108, 174, 255, .18), transparent 26%), linear-gradient(135deg, rgba(43, 91, 145, .48) 0%, rgba(10, 34, 57, .92) 58%, rgba(5, 18, 30, .98) 100%);
    box-shadow: var(--cx-shadow);
    overflow: hidden;
    position: relative;
}

    .billing-hero::after,
    .um-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(circle at 92% 14%, rgba(130, 190, 255, .10), transparent 24%);
    }

.billing-hero__main,
.billing-hero__side,
.um-hero__main,
.um-hero__side {
    position: relative;
    z-index: 1;
}

    .billing-hero__main h2,
    .um-hero__main h2 {
        margin: .75rem 0 .35rem;
        color: #fbfdff;
        font-size: clamp(2rem, 3vw, 3.1rem);
        line-height: .98;
        letter-spacing: -.055em;
        font-weight: 900;
    }

    .billing-hero__main p,
    .um-hero__main p {
        margin: 0;
        color: var(--cx-text-soft);
        font-size: .98rem;
        line-height: 1.6;
    }

.billing-chip-row {
    margin-top: 1rem;
}

.billing-hero__side {
    display: grid;
    gap: .7rem;
    align-content: center;
}

.billing-hero-metric,
.um-usage-card {
    display: grid;
    gap: .2rem;
    padding: .9rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .055);
}

    .billing-hero-metric span,
    .um-usage-card span,
    .um-usage-card small {
        color: var(--cx-text-soft);
        font-size: .84rem;
    }

    .billing-hero-metric strong,
    .um-usage-card strong {
        color: #fff;
        font-size: 1.25rem;
        font-weight: 900;
        letter-spacing: -.03em;
    }

    .um-usage-card strong {
        font-size: 1.75rem;
        line-height: 1;
    }

.billing-profile-warning .cx-flash-content {
    width: 100%;
}

.billing-inline-action,
.billing-card-action {
    margin-top: .85rem;
}

.billing-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    gap: 1rem;
}

.billing-tax-card,
.billing-summary-card,
.billing-card {
    padding: 1.15rem;
}

.billing-card-head h3 {
    font-size: 1.28rem;
}

.billing-tax-list,
.billing-kv-list {
    display: grid;
    gap: .65rem;
}

.billing-tax-row--full {
    align-items: flex-start;
    flex-direction: column;
}

    .billing-tax-row--full strong {
        text-align: left;
        line-height: 1.5;
    }

.billing-summary-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.billing-summary-card__label {
    color: var(--cx-text-soft);
    font-size: .9rem;
}

.billing-summary-card__value {
    margin-top: .45rem;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: .95;
    letter-spacing: -.055em;
    font-weight: 900;
}

.billing-tabs {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    width: fit-content;
    margin: 0;
    padding: .35rem;
    list-style: none;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
    background: rgba(255, 255, 255, .045);
}

    .billing-tabs.nav {
        border-bottom: 0;
    }

        .billing-tabs.nav .billing-tab-item {
            margin: 0;
        }

        .billing-tab-link,
        .billing-tabs.nav .billing-tab-link.nav-link {
            display: inline-flex;
            align-items: center;
            min-height: 42px;
            margin: 0;
            padding: .65rem 1rem;
            border: 0 !important;
            border-radius: 999px;
            color: var(--cx-text-soft) !important;
            background: transparent !important;
            text-decoration: none !important;
            font-weight: 800;
            transition: background .18s ease, color .18s ease, transform .18s ease;
        }

            .billing-tab-link:hover,
            .billing-tab-link:focus,
            .billing-tabs.nav .billing-tab-link.nav-link:hover,
            .billing-tabs.nav .billing-tab-link.nav-link:focus {
                border: 0 !important;
                color: #ffffff !important;
                background: rgba(255, 255, 255, .07) !important;
            }

            .billing-tab-link.active,
            .billing-tabs.nav .billing-tab-link.nav-link.active {
                color: #06111e !important;
                background: #ffffff !important;
                border: 0 !important;
            }

.billing-tab-content,
.rs-tab-content {
    min-width: 0;
}

.billing-current-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
    gap: 1rem;
}

.billing-danger-action,
.rs-toggle-btn--danger,
.um-toggle-btn--danger {
    color: #ffb8c3 !important;
    border-color: rgba(227, 103, 120, .24) !important;
    background: rgba(227, 103, 120, .08) !important;
}

    .billing-danger-action:hover,
    .rs-toggle-btn--danger:hover,
    .um-toggle-btn--danger:hover {
        color: #fff !important;
        background: rgba(227, 103, 120, .16) !important;
    }

.rs-toggle-btn--success,
.um-toggle-btn--success {
    border-color: rgba(98, 196, 132, .22) !important;
    background: rgba(98, 196, 132, .08) !important;
    color: #9de7b7 !important;
}

    .rs-toggle-btn--success:hover,
    .um-toggle-btn--success:hover {
        background: rgba(98, 196, 132, .16) !important;
        color: #fff !important;
    }

.billing-usage-visual {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .04);
}

.billing-usage-number {
    width: 70px;
    height: 70px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(125, 184, 255, .18);
    background: linear-gradient(180deg, rgba(93, 167, 255, .28) 0%, rgba(47, 125, 245, .12) 100%);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 900;
}

.billing-usage-visual span {
    display: block;
    color: var(--cx-text-soft);
}

.billing-usage-visual strong {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 900;
}

.billing-plans-card {
    margin-top: 1rem;
}

.billing-plan-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.billing-plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: linear-gradient(180deg, rgba(255, 255, 255, .045) 0%, rgba(255, 255, 255, .025) 100%);
    overflow: hidden;
}

.billing-plan-card--current {
    border-color: rgba(98, 196, 132, .22);
    background: linear-gradient(180deg, rgba(98, 196, 132, .08) 0%, rgba(255, 255, 255, .025) 100%);
}

.billing-plan-ribbon {
    position: absolute;
    top: .8rem;
    right: .8rem;
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: .3rem .65rem;
    border-radius: 999px;
    color: #97e6b4;
    border: 1px solid rgba(98, 196, 132, .22);
    background: rgba(98, 196, 132, .08);
    font-size: .78rem;
    font-weight: 900;
}

.billing-plan-card__top {
    padding-right: 5.5rem;
}

    .billing-plan-card__top h4 {
        margin: 0;
        color: #fff;
        font-size: 1.15rem;
        font-weight: 900;
        letter-spacing: -.035em;
    }

    .billing-plan-card__top span {
        display: block;
        margin-top: .25rem;
        color: var(--cx-text-soft);
        font-size: .9rem;
    }

.billing-plan-price {
    margin-top: 1rem;
    display: grid;
    gap: .2rem;
}

    .billing-plan-price strong {
        color: #fff;
        font-size: 1.55rem;
        line-height: 1;
        letter-spacing: -.045em;
        font-weight: 950;
    }

    .billing-plan-price span {
        color: var(--cx-text-soft);
        font-size: .85rem;
    }

.billing-plan-breakdown {
    display: grid;
    gap: .55rem;
    margin-top: 1rem;
}

    .billing-plan-breakdown div {
        display: grid;
        gap: .2rem;
        padding: .7rem .75rem;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, .07);
        background: rgba(255, 255, 255, .035);
    }

    .billing-plan-breakdown span {
        color: var(--cx-text-soft);
        font-size: .82rem;
    }

    .billing-plan-breakdown strong {
        color: #fff;
        font-weight: 850;
        line-height: 1.35;
    }

.billing-plan-actions {
    margin-top: auto;
    padding-top: 1rem;
}

.billing-current-plan-chip {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: .7rem 1rem;
    border-radius: 999px;
    color: #97e6b4;
    border: 1px solid rgba(98, 196, 132, .22);
    background: rgba(98, 196, 132, .08);
    font-weight: 900;
}

.billing-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.billing-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 .55rem;
}

    .billing-table thead th {
        padding: .4rem .8rem;
        color: var(--cx-text-soft);
        font-size: .78rem;
        font-weight: 850;
        text-transform: uppercase;
        letter-spacing: .04em;
        white-space: nowrap;
    }

    .billing-table tbody tr {
        background: rgba(255, 255, 255, .035);
    }

    .billing-table tbody td {
        padding: .85rem .8rem;
        border-top: 1px solid rgba(255, 255, 255, .07);
        border-bottom: 1px solid rgba(255, 255, 255, .07);
        color: rgba(244, 247, 251, .88);
        vertical-align: middle;
    }

        .billing-table tbody td:first-child {
            border-left: 1px solid rgba(255, 255, 255, .07);
            border-radius: 16px 0 0 16px;
        }

        .billing-table tbody td:last-child {
            border-right: 1px solid rgba(255, 255, 255, .07);
            border-radius: 0 16px 16px 0;
        }

.billing-table-status {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: .3rem .65rem;
    border-radius: 999px;
    color: #9fd4ff;
    border: 1px solid rgba(92, 166, 231, .22);
    background: rgba(92, 166, 231, .08);
    font-weight: 850;
}

/* =========================================================
   Organization Settings / Roles & Structure
   ========================================================= */

.org-settings-page,
.rs-page {
    display: grid;
    gap: 1rem;
}

.org-hero,
.rs-hero {
    padding: 1.25rem;
    border: 1px solid var(--cx-border);
    border-radius: var(--cx-radius-lg);
    background: radial-gradient(circle at 12% 0%, rgba(108, 174, 255, .16), transparent 24%), linear-gradient(135deg, rgba(43, 91, 145, .42) 0%, rgba(10, 34, 57, .92) 58%, rgba(5, 18, 30, .98) 100%);
    box-shadow: var(--cx-shadow);
    overflow: hidden;
    position: relative;
}

    .org-hero::after,
    .rs-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(circle at 88% 14%, rgba(130, 190, 255, .10), transparent 22%);
    }

.org-hero__content,
.rs-hero__content {
    position: relative;
    z-index: 1;
}

.org-hero h2,
.rs-hero h2 {
    margin: .75rem 0 .35rem;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: .98;
    letter-spacing: -.055em;
    font-weight: 900;
    color: #fbfdff;
}

.org-hero p,
.rs-hero p {
    margin: 0;
    color: var(--cx-text-soft);
    line-height: 1.6;
    max-width: 70ch;
}

.org-readiness-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.org-readiness-card,
.org-form-card,
.rs-card {
    padding: 1.15rem;
}

.org-section-head h3,
.rs-card__header h3 {
    font-size: 1.18rem;
}

.org-section-head p,
.rs-card__header p {
    font-size: .93rem;
}

.org-inline-success {
    border-color: rgba(98, 196, 132, .2);
    background: rgba(23, 76, 41, .18);
    color: #c8f4d8;
}

.org-info-stack {
    display: grid;
    gap: .8rem;
    margin-top: 1rem;
}

.org-info-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 54px;
    padding: .85rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .04);
}

    .org-info-box span {
        color: var(--cx-text-soft);
    }

    .org-info-box strong {
        color: #fff;
        text-align: right;
        font-weight: 800;
    }

.org-form,
.rs-form {
    display: grid;
    gap: 1rem;
}

.org-form-section {
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid rgba(138, 169, 227, .12);
    background: rgba(255, 255, 255, .025);
}

.org-form-grid,
.rs-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
}

.rs-form-grid--role {
    grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
    align-items: end;
}

.rs-form-grid--3 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 190px;
    align-items: end;
}

.org-help-text,
.um-help-text {
    color: rgba(220, 232, 250, .7);
    font-size: .88rem;
    line-height: 1.5;
}

.org-form-actions,
.rs-actions,
.um-actions,
.um-danger-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: .35rem;
}

.org-submit-btn {
    min-width: 220px;
    justify-content: center;
}

.rs-tabs {
    width: fit-content;
}

.rs-card--form {
    margin-bottom: 1rem;
}

.rs-list {
    display: grid;
    gap: .85rem;
}

.rs-switch-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .65rem;
}

.rs-actions .btn,
.rs-toggle-btn,
.um-main-btn,
.um-toggle-btn {
    min-height: 36px;
    padding: .45rem .9rem;
    font-size: .84rem;
}

.rs-card__header {
    margin-bottom: .8rem;
}

    .rs-card__header h3,
    .rs-card-toggle__main h3 {
        font-size: 1.08rem;
    }

    .rs-card__header p,
    .rs-card-toggle__main p {
        font-size: .88rem;
    }

.rs-card__header--toggle {
    margin-bottom: 0;
}

.rs-card-toggle,
.um-user-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    padding: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    text-align: left;
    cursor: pointer;
}

    .rs-card-toggle:hover,
    .um-user-toggle:hover {
        color: inherit;
    }

.rs-card-toggle__main {
    min-width: 0;
}

    .rs-card-toggle__main h3 {
        margin: 0;
        color: #fbfdff;
        font-weight: 850;
        letter-spacing: -.03em;
    }

    .rs-card-toggle__main p {
        margin: .25rem 0 0;
        color: var(--cx-text-soft);
        line-height: 1.45;
    }

.rs-card-toggle__side,
.um-user-side {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    flex-shrink: 0;
}

.rs-card-arrow,
.um-card-arrow {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .09);
    background: rgba(255, 255, 255, .045);
    color: rgba(244, 247, 251, .82);
    transition: transform .2s ease, background .18s ease, border-color .18s ease;
}

    .rs-card-arrow::before,
    .um-card-arrow::before {
        content: "⌄";
        font-size: 1.2rem;
        line-height: 1;
        transform: translateY(-1px);
    }

.rs-card.rs-card--open .rs-card-arrow,
.um-user-card--open .um-card-arrow {
    transform: rotate(180deg);
    background: rgba(98, 170, 255, .12);
    border-color: rgba(98, 170, 255, .22);
    color: #fff;
}

.rs-collapse-body {
    margin-top: .9rem;
    padding-top: .9rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.rs-card--restored,
.um-user-card--restored {
    border-color: rgba(98, 170, 255, .34) !important;
    box-shadow: 0 0 0 1px rgba(98, 170, 255, .08), var(--cx-shadow) !important;
}

/* =========================================================
   Compact switches
   Critical: use ~ because hidden inputs can sit between checkbox and UI
   ========================================================= */

.cx-switch-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: .65rem;
    min-height: 50px;
    padding: .58rem .72rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .035);
    cursor: pointer;
    user-select: none;
    transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

    .cx-switch-card:hover {
        border-color: rgba(125, 184, 255, .16);
        background: rgba(255, 255, 255, .055);
        transform: translateY(-1px);
    }

.cx-switch-card--compact {
    min-height: 50px;
}

.cx-switch-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cx-switch-ui {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #3b4656 0%, #2c3543 100%);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, .24), inset 0 -1px 6px rgba(255, 255, 255, .03);
    transition: background .2s ease, box-shadow .2s ease;
}

    .cx-switch-ui::before {
        content: "";
        position: absolute;
        top: 3px;
        left: 3px;
        width: 20px;
        height: 20px;
        border-radius: 999px;
        background: linear-gradient(180deg, #ffffff 0%, #edf3fa 100%);
        box-shadow: 0 4px 10px rgba(0, 0, 0, .24);
        transition: transform .22s ease;
    }

.cx-switch-input:checked ~ .cx-switch-ui {
    background: linear-gradient(180deg, #55a7ff 0%, #2f7df5 100%);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, .12), 0 0 0 4px rgba(98, 170, 255, .10), 0 8px 20px rgba(47, 125, 245, .18);
}

    .cx-switch-input:checked ~ .cx-switch-ui::before {
        transform: translateX(22px);
    }

.cx-switch-input:focus ~ .cx-switch-ui {
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, .18), 0 0 0 4px rgba(98, 170, 255, .18);
}

.cx-switch-copy {
    min-width: 0;
    display: grid;
    gap: .1rem;
}

    .cx-switch-copy strong {
        display: block;
        color: #fff;
        font-size: .84rem;
        line-height: 1.25;
        font-weight: 800;
    }

    .cx-switch-copy span {
        color: var(--cx-text-soft);
        font-size: .85rem;
        line-height: 1.4;
    }

.cx-switch-input:checked ~ .cx-switch-copy strong {
    color: #fafdff;
}

/* =========================================================
   Users Management
   ========================================================= */

.um-page {
    display: grid;
    gap: 1rem;
}

.um-hero__main p {
    max-width: 70ch;
}

.um-usage-card {
    height: 100%;
    align-content: center;
}

.um-inline-limit {
    margin-top: .5rem;
}

.um-card {
    padding: 1.15rem;
}

.um-card__header h3 {
    font-size: 1.22rem;
}

.um-card__header p {
    font-size: .93rem;
}

.um-form {
    display: grid;
    gap: .9rem;
}

.um-invite-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: .9rem;
    align-items: start;
}

.um-invite-action {
    display: flex;
    align-items: flex-start;
    padding-top: 2.1rem;
}

    .um-invite-action .btn {
        width: 100%;
    }

.um-user-list {
    display: grid;
    gap: .85rem;
}

.um-user-card {
    padding: 0;
}

.um-user-card__header {
    margin: 0;
}

.um-user-toggle {
    padding: 1rem;
    align-items: center;
}

.um-user-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .85rem;
}

.um-avatar {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(125, 184, 255, .18);
    background: linear-gradient(180deg, rgba(93, 167, 255, .28) 0%, rgba(47, 125, 245, .12) 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: -.03em;
}

.um-user-copy {
    min-width: 0;
    display: grid;
    gap: .15rem;
}

    .um-user-copy strong {
        color: #fff;
        font-size: 1.05rem;
        font-weight: 850;
        letter-spacing: -.025em;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .um-user-copy small {
        color: var(--cx-text-soft);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.um-status-row {
    display: flex;
    align-items: center;
    gap: .45rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.um-user-body {
    padding: 0 1rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.um-badge-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: .45rem;
    overflow-x: auto;
    padding: .9rem 0 .2rem;
}

    .um-badge-grid::-webkit-scrollbar {
        height: 6px;
    }

    .um-badge-grid::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, .12);
        border-radius: 999px;
    }

.um-mini-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: .32rem .7rem;
    border-radius: 999px;
    border: 1px solid rgba(138, 169, 227, .16);
    background: rgba(255, 255, 255, .045);
    color: rgba(244, 247, 251, .86);
    font-size: .8rem;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
}

.um-mini-chip--info {
    color: #9fd4ff;
    border-color: rgba(92, 166, 231, .22);
    background: rgba(92, 166, 231, .08);
}

.um-mini-chip--warning {
    color: #ffd48b;
    border-color: rgba(231, 178, 92, .22);
    background: rgba(231, 178, 92, .08);
}

.um-mini-chip--blue {
    color: #a9d4ff;
    border-color: rgba(98, 170, 255, .22);
    background: rgba(98, 170, 255, .08);
}

.um-form-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: end;
    gap: .85rem;
}

    .um-form-grid .auth-field {
        min-width: 0;
    }

    .um-form-grid .auth-input {
        width: 100%;
    }

.um-switch-row {
    max-width: 320px;
}

.um-divider {
    height: 1px;
    margin: .95rem 0;
    background: rgba(255, 255, 255, .08);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1599.98px) {
    .um-form-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .um-badge-grid {
        flex-wrap: wrap;
        overflow-x: visible;
    }
}

@media (max-width: 1399.98px) {
    .billing-plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rs-switch-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1280px) {
    .workspace-hero-grid,
    .guest-hero__grid {
        grid-template-columns: 1fr;
    }

    .workspace-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guest-copy {
        max-width: 760px;
        padding-top: 1.2rem;
    }

    .guest-visual__frame {
        min-height: 560px;
    }
}

@media (max-width: 1199.98px) {
    .auth-shell--signup,
    .billing-hero,
    .billing-overview-grid,
    .billing-current-grid,
    .profile-settings-grid,
    .um-hero {
        grid-template-columns: 1fr;
    }

    .billing-hero__side,
    .profile-hero-modern__meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-hero-modern {
        flex-direction: column;
    }

    .profile-hero-modern__meta {
        min-width: 0;
    }

    .profile-settings-card--summary {
        position: static;
    }

    .rs-switch-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rs-form-grid--3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 991.98px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        position: static;
        height: auto;
        padding: 1rem 1rem 0;
    }

    .app-sidebar__inner {
        border-radius: 28px;
        box-shadow: var(--cx-shadow-soft);
    }

    .app-main {
        padding: 1rem;
    }

    .app-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auth-shell,
    .landing-hero__content {
        grid-template-columns: 1fr;
    }

    .guest-feature-grid {
        grid-template-columns: 1fr;
    }

    .guest-topbar .container-fluid-wide {
        row-gap: .8rem;
    }

    .um-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .um-user-toggle {
        align-items: flex-start;
        flex-direction: column;
    }

    .um-user-side {
        width: 100%;
        justify-content: space-between;
    }

    .um-status-row {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .workspace-card-grid,
    .app-nav,
    .auth-form-grid,
    .profile-hero-modern__meta,
    .profile-form-grid,
    .billing-hero__side,
    .billing-plan-grid,
    .org-form-grid,
    .rs-form-grid,
    .rs-form-grid--role,
    .rs-form-grid--3,
    .rs-switch-grid,
    .um-invite-grid,
    .um-form-grid {
        grid-template-columns: 1fr;
    }

    .app-topbar {
        padding: 1rem;
        border-radius: 22px;
    }

    .app-topbar__right {
        width: 100%;
        justify-content: stretch;
    }

    .app-company-badge,
    .app-topbar__action {
        width: 100%;
        justify-content: center;
    }

    .workspace-hero-panel,
    .workspace-focus-panel,
    .app-card--dashboard,
    .profile-hero-modern,
    .profile-settings-card--form,
    .profile-settings-card--summary,
    .billing-hero,
    .billing-tax-card,
    .billing-summary-card,
    .billing-card,
    .org-hero,
    .rs-hero,
    .org-readiness-card,
    .org-form-card,
    .rs-card,
    .um-hero,
    .um-card {
        padding: 1rem;
        border-radius: 22px;
    }

    .workspace-hero-panel__title,
    .profile-hero-modern__copy h2 {
        font-size: clamp(2rem, 12vw, 3rem);
    }

    .hero-actions {
        flex-direction: column;
    }

        .hero-actions .btn,
        .workspace-focus-panel__actions .btn,
        .um-invite-action .btn,
        .um-danger-actions form,
        .um-danger-actions .btn,
        .um-actions .btn {
            width: 100%;
        }

    .auth-page {
        padding: 1.15rem 0 2rem;
    }

    .auth-panel,
    .auth-card {
        border-radius: 22px;
        padding: 1.15rem;
    }

        .auth-panel h1 {
            max-width: none;
        }

    .auth-card--wide {
        padding: 1.1rem;
    }

    .auth-form-section,
    .org-form-section {
        padding: .9rem;
        border-radius: 18px;
    }

    .auth-field--full,
    .profile-field--full {
        grid-column: auto;
    }

    .profile-hero-modern__main {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-avatar-modern {
        width: 68px;
        height: 68px;
        border-radius: 22px;
        font-size: 1.35rem;
    }

    .profile-readonly-row,
    .profile-summary-item,
    .org-info-box {
        align-items: flex-start;
        flex-direction: column;
        gap: .25rem;
    }

        .profile-readonly-row strong,
        .profile-summary-item strong,
        .org-info-box strong {
            text-align: left;
        }

    .guest-title {
        font-size: clamp(2.7rem, 16vw, 4.5rem);
    }

    .guest-visual__frame {
        min-height: 500px;
        border-radius: 28px;
    }

    .guest-floating-card {
        position: static;
        max-width: none;
        margin: .85rem;
    }

    .guest-floating-card--top,
    .guest-floating-card--right,
    .guest-floating-card--bottom {
        top: auto;
        right: auto;
        left: auto;
        bottom: auto;
    }

    .guest-mini-chip {
        display: none;
    }

    .guest-nav-pill-wrap {
        width: 100%;
        justify-content: space-between;
    }

    .language-select {
        min-width: 150px;
    }

    .billing-tabs,
    .rs-tabs {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        border-radius: 20px;
    }

    .billing-tabs {
        grid-template-columns: 1fr 1fr;
    }

        .billing-tab-link,
        .billing-tabs.nav .billing-tab-link.nav-link,
        .rs-tabs .billing-tab-link {
            justify-content: center;
            text-align: center;
            border-radius: 16px;
        }

    .billing-table thead {
        display: none;
    }

    .billing-table,
    .billing-table tbody,
    .billing-table tr,
    .billing-table td {
        display: block;
        width: 100%;
    }

    .billing-table {
        border-spacing: 0;
    }

        .billing-table tbody tr {
            display: grid;
            gap: .45rem;
            padding: .85rem;
            margin-bottom: .85rem;
            border-radius: 18px;
            border: 1px solid rgba(255, 255, 255, .07);
            background: rgba(255, 255, 255, .035);
        }

        .billing-table tbody td {
            display: flex;
            justify-content: space-between;
            gap: 1rem;
            padding: .2rem 0;
            border: 0;
        }

            .billing-table tbody td::before {
                content: attr(data-label);
                color: var(--cx-text-soft);
                font-weight: 750;
            }

            .billing-table tbody td:first-child,
            .billing-table tbody td:last-child {
                border: 0;
                border-radius: 0;
            }

    .cx-switch-card {
        min-height: 48px;
    }

    .rs-card-toggle {
        flex-direction: column;
    }

    .rs-card-toggle__side {
        width: 100%;
        justify-content: space-between;
    }

    .um-user-card {
        border-radius: 22px;
    }

    .um-user-main {
        width: 100%;
    }

    .um-user-copy {
        flex: 1;
    }

    .um-switch-row {
        max-width: none;
    }
}

@media (max-width: 575.98px) {
    .profile-save-btn {
        width: 100%;
        max-width: 100%;
    }
}
/* =========================================================
   Public header - refined SaaS landing style
   ========================================================= */

.guest-site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    padding-top: .8rem;
    backdrop-filter: blur(14px);
}

.guest-nav-shell {
    min-height: 78px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.25rem;
    padding: .95rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(4, 15, 28, .94) 0%, rgba(6, 24, 43, .84) 100%);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
}

.guest-brand {
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 800;
    font-size: 1.12rem;
    letter-spacing: -.02em;
}

    .guest-brand:hover {
        color: #fff;
        opacity: .98;
    }

.guest-brand__mark {
    width: 40px;
    height: 40px;
    display: block;
    flex-shrink: 0;
}

.guest-brand__word {
    color: #fff;
}

.guest-primary-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.7rem;
}

    .guest-primary-nav a {
        display: inline-flex;
        align-items: center;
        gap: .35rem;
        color: rgba(255, 255, 255, .86);
        text-decoration: none;
        font-weight: 700;
        transition: color .18s ease, opacity .18s ease;
    }

        .guest-primary-nav a:hover {
            color: #fff;
            text-decoration: none;
        }

.guest-nav-chevron {
    opacity: .72;
    font-size: .86rem;
    transform: translateY(-1px);
}

.guest-header-actions {
    display: flex;
    align-items: center;
    gap: .7rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.guest-language-form {
    margin-right: .2rem;
}

    .guest-language-form .language-select {
        min-width: 150px;
        min-height: 44px;
        border-radius: 999px;
        background: rgba(255, 255, 255, .06);
        border-color: rgba(255, 255, 255, .10);
    }

.guest-header-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: .65rem 1rem;
    border-radius: 999px;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
}

    .guest-header-link:hover {
        background: rgba(255, 255, 255, .06);
    }

.guest-header-cta {
    min-height: 48px;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    border-radius: 999px;
}

/* =========================================================
   Homepage
   ========================================================= */

.cx-home {
    padding-top: .55rem;
}

.cx-home-hero {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(520px, 1.08fr);
    gap: 1.1rem;
    align-items: stretch;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 32px;
    background: radial-gradient(circle at 12% 8%, rgba(82, 154, 255, .18), transparent 22%), linear-gradient(180deg, rgba(7, 25, 46, .94) 0%, rgba(4, 17, 31, .98) 100%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
    overflow: hidden;
}

.cx-home-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: .35rem;
    min-width: 0;
}

.cx-home-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 42px;
    padding: .55rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .06);
    color: #f4f7fb;
    font-weight: 800;
    font-size: .92rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .02);
}

.cx-home-title {
    margin: 1.25rem 0 1rem;
    display: grid;
    gap: .15rem;
    font-size: clamp(2.8rem, 5vw, 5.3rem);
    line-height: .92;
    letter-spacing: -.07em;
    font-weight: 900;
}

    .cx-home-title span {
        display: block;
    }

.cx-home-title__accent {
    color: #4a93ff;
}

.cx-home-lead {
    max-width: 40rem;
    margin: 0;
    color: var(--cx-text-soft);
    font-size: clamp(1rem, 1.3vw, 1.28rem);
    line-height: 1.6;
}

.cx-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-top: 2rem;
}

.cx-home-btn-primary,
a.cx-home-btn-primary,
.btn.cx-home-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    min-width: 180px;
    padding: 0 1.45rem;
    border-radius: 999px;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

    .cx-home-btn-primary span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

.cx-home-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .05);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .14);
}

    .cx-home-btn-secondary:hover {
        background: rgba(255, 255, 255, .10);
        transform: translateY(-1px);
    }

.cx-home-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1.5rem;
}

.cx-home-chip {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: .52rem .85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .09);
    background: rgba(255, 255, 255, .045);
    color: rgba(244, 247, 251, .92);
    font-weight: 700;
    font-size: .84rem;
    white-space: nowrap;
}

.cx-home-hero__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

    .cx-home-hero__visual img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 28px;
        border: 1px solid rgba(255, 255, 255, .08);
        box-shadow: 0 28px 70px rgba(0, 0, 0, .28);
    }

/* =========================================================
   Homepage feature cards
   ========================================================= */

.cx-home-features {
    padding-top: 1rem;
}

.cx-home-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.cx-home-feature-card {
    position: relative;
    min-height: 100%;
    padding: 1.2rem 1.2rem 1.25rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: linear-gradient(180deg, rgba(11, 27, 45, .90) 0%, rgba(6, 19, 32, .96) 100%);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .20);
    overflow: hidden;
}

.cx-home-feature-card__icon {
    width: 62px;
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(125, 184, 255, .16);
    background: linear-gradient(180deg, rgba(93, 167, 255, .24) 0%, rgba(47, 125, 245, .10) 100%);
}

.cx-home-feature-card__icon--purple {
    border-color: rgba(173, 133, 255, .18);
    background: linear-gradient(180deg, rgba(137, 99, 255, .26) 0%, rgba(95, 64, 187, .10) 100%);
}

.cx-home-feature-card__icon--green {
    border-color: rgba(127, 211, 97, .18);
    background: linear-gradient(180deg, rgba(102, 191, 63, .26) 0%, rgba(64, 125, 39, .10) 100%);
}

.cx-home-feature-card__icon--cyan {
    border-color: rgba(99, 216, 255, .18);
    background: linear-gradient(180deg, rgba(73, 196, 255, .24) 0%, rgba(40, 117, 153, .10) 100%);
}

.cx-home-feature-card__icon svg {
    width: 28px;
    height: 28px;
}

.cx-home-feature-card h3 {
    margin: 0 0 .6rem;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 850;
    letter-spacing: -.03em;
}

.cx-home-feature-card p {
    margin: 0;
    color: var(--cx-text-soft);
    line-height: 1.6;
    min-height: 4.9rem;
}

.cx-home-feature-link {
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    color: #8fc2ff;
    text-decoration: none;
    font-weight: 800;
}

    .cx-home-feature-link:hover {
        color: #bddcff;
        text-decoration: none;
    }

/* =========================================================
   Homepage trust strip
   ========================================================= */

.cx-home-trust {
    padding-top: 1rem;
    padding-bottom: .5rem;
}

.cx-home-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(7, 21, 38, .88) 0%, rgba(5, 18, 30, .95) 100%);
    overflow: hidden;
}

.cx-home-trust-item {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    padding: 1.2rem 1.15rem;
    border-right: 1px solid rgba(255, 255, 255, .06);
}

    .cx-home-trust-item:last-child {
        border-right: 0;
    }

.cx-home-trust-item__icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .04);
}

    .cx-home-trust-item__icon svg {
        width: 20px;
        height: 20px;
    }

.cx-home-trust-item strong {
    display: block;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}

.cx-home-trust-item span {
    display: block;
    margin-top: .25rem;
    color: var(--cx-text-soft);
    line-height: 1.5;
    font-size: .92rem;
}

/* =========================================================
   Responsive - homepage
   ========================================================= */

@media (max-width: 1399.98px) {
    .cx-home-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cx-home-trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cx-home-trust-item:nth-child(2) {
        border-right: 0;
    }

    .cx-home-trust-item:nth-child(1),
    .cx-home-trust-item:nth-child(2) {
        border-bottom: 1px solid rgba(255, 255, 255, .06);
    }
}

@media (max-width: 1199.98px) {
    .cx-home-hero {
        grid-template-columns: 1fr;
    }

    .cx-home-hero__content {
        padding: .15rem;
    }

    .guest-nav-shell {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .guest-header-actions {
        justify-content: space-between;
    }
}

@media (max-width: 991.98px) {
    .guest-header-actions {
        width: 100%;
        justify-content: stretch;
    }

    .guest-header-link,
    .guest-header-cta {
        flex: 1 1 auto;
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .cx-home-hero,
    .cx-home-feature-card,
    .cx-home-trust-grid {
        border-radius: 22px;
    }

    .cx-home-title {
        font-size: clamp(2.5rem, 13vw, 4.2rem);
    }

    .cx-home-actions {
        flex-direction: column;
    }

    .cx-home-btn-primary,
    .cx-home-btn-secondary {
        width: 100%;
    }

    .cx-home-feature-grid,
    .cx-home-trust-grid {
        grid-template-columns: 1fr;
    }

    .cx-home-trust-item {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .06);
    }

        .cx-home-trust-item:last-child {
            border-bottom: 0;
        }

    .guest-language-form {
        width: 100%;
        margin-right: 0;
    }

        .guest-language-form .language-select {
            width: 100%;
        }

    .guest-header-link,
    .guest-header-cta {
        width: 100%;
    }
}
/* =========================================================
   Homepage animated counters
   ========================================================= */

.cx-home-counters {
    position: relative;
    z-index: 2;
    padding-top: 1rem;
}

.cx-home-counter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.cx-home-counter {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.35rem 1.2rem;
    text-align: center;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: radial-gradient(circle at 50% 0%, rgba(98, 170, 255, .13), transparent 42%), linear-gradient(180deg, rgba(11, 31, 52, .90) 0%, rgba(5, 18, 31, .96) 100%);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .18);
    overflow: hidden;
}

.cx-home-counter__number {
    display: block;
    color: #ffffff;
    font-size: clamp(2.9rem, 4.4vw, 5rem);
    line-height: .92;
    letter-spacing: -.07em;
    font-weight: 950;
    text-shadow: 0 14px 38px rgba(63, 134, 255, .24);
}

.cx-home-counter__label {
    display: block;
    max-width: 18ch;
    margin: .85rem auto 0;
    color: rgba(244, 247, 251, .72);
    font-size: clamp(.95rem, 1.1vw, 1.08rem);
    line-height: 1.35;
    font-weight: 700;
}

.cx-counter-value {
    display: inline-block;
    min-width: 2.8ch;
}

@media (max-width: 991.98px) {
    .cx-home-counter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .cx-home-counter-grid {
        grid-template-columns: 1fr;
    }

    .cx-home-counter {
        min-height: 130px;
        border-radius: 22px;
    }
}

/* =========================================================
   Contact page
   ========================================================= */

.contact-page {
    display: grid;
    gap: 1rem;
    padding-top: .55rem;
}

.contact-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    gap: 1rem;
    align-items: stretch;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 32px;
    background: radial-gradient(circle at 12% 8%, rgba(82, 154, 255, .18), transparent 22%), linear-gradient(180deg, rgba(7, 25, 46, .94) 0%, rgba(4, 17, 31, .98) 100%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
    overflow: hidden;
}

.contact-hero__main,
.contact-hero__side {
    position: relative;
    z-index: 1;
}

.contact-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 42px;
    padding: .55rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .06);
    color: #f4f7fb;
    font-weight: 800;
    font-size: .92rem;
}

.contact-hero h1 {
    margin: 1.25rem 0 1rem;
    max-width: 13ch;
    color: #fff;
    font-size: clamp(2.8rem, 5vw, 5.2rem);
    line-height: .92;
    letter-spacing: -.07em;
    font-weight: 950;
}

.contact-hero p {
    max-width: 58rem;
    margin: 0;
    color: var(--cx-text-soft);
    font-size: clamp(1rem, 1.3vw, 1.24rem);
    line-height: 1.65;
}

.contact-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1.5rem;
}

.contact-chip {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: .52rem .85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .09);
    background: rgba(255, 255, 255, .045);
    color: rgba(244, 247, 251, .92);
    font-weight: 700;
    font-size: .84rem;
    white-space: nowrap;
}

.contact-hero__side {
    display: flex;
    align-items: stretch;
}

.contact-response-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.15rem;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, .09);
    background: linear-gradient(180deg, rgba(255, 255, 255, .075) 0%, rgba(255, 255, 255, .035) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}

    .contact-response-card span {
        color: var(--cx-text-soft);
        font-size: .9rem;
        font-weight: 700;
    }

    .contact-response-card strong {
        display: block;
        margin-top: .55rem;
        color: #fff;
        font-size: clamp(2rem, 3vw, 3.2rem);
        line-height: .95;
        letter-spacing: -.06em;
        font-weight: 950;
    }

    .contact-response-card p {
        margin-top: .65rem;
        color: var(--cx-text-soft);
        font-size: .94rem;
        line-height: 1.55;
    }

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr);
    gap: 1rem;
    align-items: start;
}

.contact-card {
    border: 1px solid var(--cx-border);
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(13, 33, 53, .84) 0%, rgba(8, 22, 37, .94) 100%);
    box-shadow: var(--cx-shadow);
    backdrop-filter: blur(18px);
    overflow: hidden;
}

.contact-form-card,
.contact-direct-card,
.contact-points-card {
    padding: 1.2rem;
}

.contact-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

    .contact-card-head h2,
    .contact-direct-card h2,
    .contact-points-card h2 {
        margin: 0;
        color: #fbfdff;
        font-size: 1.35rem;
        font-weight: 850;
        letter-spacing: -.03em;
    }

    .contact-card-head p,
    .contact-direct-card p {
        margin: .35rem 0 0;
        color: var(--cx-text-soft);
        line-height: 1.55;
    }

.contact-form {
    margin-top: 1rem;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
}

.contact-field--full {
    grid-column: 1 / -1;
}

.contact-message-input {
    min-height: 160px;
    resize: vertical;
}

.contact-consent {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    margin: .15rem 0 0;
    padding: .85rem .95rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .035);
    color: rgba(232, 240, 253, .88);
    font-size: .92rem;
    line-height: 1.5;
}

    .contact-consent input {
        width: 1rem;
        height: 1rem;
        margin-top: .2rem;
        flex-shrink: 0;
        accent-color: #6fbbff;
    }

.contact-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.1rem;
}

.contact-submit-btn {
    min-width: 220px;
    min-height: 54px;
    border-radius: 999px;
}

.contact-side {
    display: grid;
    gap: 1rem;
}

.contact-direct-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(125, 184, 255, .18);
    background: linear-gradient(180deg, rgba(93, 167, 255, .24) 0%, rgba(47, 125, 245, .10) 100%);
}

    .contact-direct-icon svg {
        width: 26px;
        height: 26px;
    }

.contact-email-link {
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    min-height: 44px;
    padding: .65rem .95rem;
    border-radius: 999px;
    border: 1px solid rgba(98, 170, 255, .20);
    background: rgba(98, 170, 255, .08);
    color: #a9d4ff;
    font-weight: 850;
    text-decoration: none !important;
    overflow-wrap: anywhere;
}

    .contact-email-link:hover {
        color: #d5ebff;
        background: rgba(98, 170, 255, .12);
    }

.contact-point-list {
    display: grid;
    gap: .75rem;
    margin-top: 1rem;
}

.contact-point {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: .85rem;
    padding: .85rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .035);
}

    .contact-point > span {
        width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 14px;
        border: 1px solid rgba(125, 184, 255, .16);
        background: rgba(98, 170, 255, .10);
        color: #b7dcff;
        font-weight: 900;
        font-size: .84rem;
    }

    .contact-point strong {
        display: block;
        color: #fff;
        font-weight: 850;
    }

    .contact-point p {
        margin: .25rem 0 0;
        color: var(--cx-text-soft);
        line-height: 1.5;
        font-size: .9rem;
    }

.contact-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.guest-primary-nav a.active {
    color: #fff;
}

@media (max-width: 1199.98px) {
    .contact-hero,
    .contact-grid {
        grid-template-columns: 1fr;
    }

        .contact-hero h1 {
            max-width: 16ch;
        }
}

@media (max-width: 767.98px) {
    .contact-hero,
    .contact-card {
        border-radius: 22px;
    }

    .contact-hero,
    .contact-form-card,
    .contact-direct-card,
    .contact-points-card {
        padding: 1rem;
    }

        .contact-hero h1 {
            font-size: clamp(2.5rem, 13vw, 4.2rem);
        }

    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .contact-field--full {
        grid-column: auto;
    }

    .contact-actions,
    .contact-submit-btn {
        width: 100%;
    }

    .contact-submit-btn {
        justify-content: center;
    }

    .contact-point {
        grid-template-columns: 1fr;
    }
}

.contact-consent-error {
    display: block;
    margin-top: .45rem;
    color: #ffbdc7;
    font-size: .86rem;
    font-weight: 700;
}

/* =========================================================
   Layout help / contact icon
   ========================================================= */

.layout-help-action {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff !important;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, .09);
    background: rgba(255, 255, 255, .055);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
    transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

    .layout-help-action svg {
        width: 20px;
        height: 20px;
    }

    .layout-help-action:hover {
        color: #ffffff !important;
        background: rgba(98, 170, 255, .13);
        border-color: rgba(98, 170, 255, .25);
        transform: translateY(-1px);
        box-shadow: 0 10px 24px rgba(47, 125, 245, .14);
    }

    .layout-help-action.active {
        background: linear-gradient(180deg, rgba(93, 167, 255, .24) 0%, rgba(47, 125, 245, .14) 100%);
        border-color: rgba(125, 184, 255, .30);
        box-shadow: 0 0 0 4px rgba(98, 170, 255, .08), 0 10px 24px rgba(47, 125, 245, .16);
    }

.layout-help-action--app {
    height: 42px;
    min-width: 42px;
    width: 42px;
}

.layout-help-action--guest {
    flex: 0 0 44px;
}

@media (max-width: 991.98px) {
    .layout-help-action--guest {
        flex: 0 0 48px;
        width: 48px;
        height: 48px;
        min-width: 48px;
    }
}

@media (max-width: 767.98px) {
    .layout-help-action--guest {
        width: 100%;
        flex: 1 1 100%;
        border-radius: 999px;
    }

    .layout-help-action--app {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================================
   Chronexa logged-in shell override + dashboard workspace
   ========================================================= */

:root {
    --cx-sidebar-width: 260px;
    --cx-shell-gap: 0;
}

.authenticated-body {
    background: radial-gradient(circle at 14% 4%, rgba(43, 126, 245, .18), transparent 22%), linear-gradient(180deg, #041a31 0%, #020b16 46%, #020812 100%);
}

.app-shell {
    column-gap: 0;
}

.app-sidebar {
    padding: 0;
}

.app-sidebar__inner {
    border-radius: 0;
    border-top: 0;
    border-left: 0;
    border-bottom: 0;
    border-color: rgba(125, 184, 255, .10);
    background: radial-gradient(circle at 0% 0%, rgba(38, 111, 219, .22), transparent 28%), linear-gradient(180deg, rgba(4, 18, 34, .96) 0%, rgba(3, 14, 27, .98) 100%);
    box-shadow: 18px 0 44px rgba(0, 0, 0, .20);
    padding: 1.15rem 1rem;
}

.app-main {
    padding: 1.05rem 1.35rem 1.15rem;
}

.app-topbar {
    min-height: 64px;
    padding: .15rem 0 1rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.app-topbar__eyebrow {
    border: 0;
    background: transparent;
    padding: 0;
    color: rgba(244, 247, 251, .48);
    font-size: .76rem;
    letter-spacing: .05em;
}

.app-topbar__title {
    margin-top: .25rem;
    font-size: 1.45rem;
}

.app-company-badge,
.app-topbar__action,
.layout-help-action--app {
    min-height: 46px;
    border-radius: 14px;
    border-color: rgba(125, 184, 255, .12);
    background: rgba(255, 255, 255, .055);
}

.app-topbar__action--solid {
    color: #fff !important;
    background: rgba(255, 255, 255, .045);
    border-color: rgba(255, 255, 255, .18);
}

    .app-topbar__action--solid:hover {
        background: rgba(255, 255, 255, .10);
    }

.app-content {
    padding-top: 0;
}

.app-sidebar-help {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: .75rem;
    align-items: center;
    margin-top: auto;
    margin-bottom: 1.1rem;
    padding: .85rem;
    border-radius: 16px;
    border: 1px solid rgba(125, 184, 255, .12);
    background: rgba(255, 255, 255, .055);
    color: #fff !important;
    text-decoration: none !important;
}

    .app-sidebar-help:hover,
    .app-sidebar-help.active {
        background: rgba(98, 170, 255, .12);
        border-color: rgba(98, 170, 255, .25);
    }

.app-sidebar-help__icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: linear-gradient(180deg, rgba(93, 167, 255, .25), rgba(47, 125, 245, .12));
    border: 1px solid rgba(125, 184, 255, .18);
    font-weight: 900;
}

.app-sidebar-help strong {
    display: block;
    font-size: .88rem;
    font-weight: 850;
}

.app-sidebar-help small {
    display: block;
    margin-top: .15rem;
    color: rgba(244, 247, 251, .58);
    font-size: .78rem;
}

/* Dashboard */

.cx-dashboard-page {
    display: grid;
    gap: .85rem;
}

.cx-dashboard-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(420px, 1fr);
    gap: .85rem;
}

.cx-dashboard-hero,
.cx-dashboard-panel {
    border: 1px solid rgba(125, 184, 255, .10);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(10, 34, 58, .82) 0%, rgba(5, 20, 36, .94) 100%);
    box-shadow: 0 18px 46px rgba(0, 0, 0, .22);
    overflow: hidden;
}

.cx-dashboard-hero {
    position: relative;
    min-height: 260px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 1rem;
    padding: 1.45rem;
    background: radial-gradient(circle at 80% 20%, rgba(71, 140, 255, .22), transparent 24%), linear-gradient(135deg, rgba(11, 41, 77, .95) 0%, rgba(7, 28, 55, .98) 55%, rgba(5, 18, 34, .98) 100%);
}

    .cx-dashboard-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(130deg, transparent 0%, transparent 42%, rgba(48, 111, 214, .17) 42%, rgba(48, 111, 214, .04) 66%, transparent 66%);
        pointer-events: none;
    }

.cx-dashboard-hero__content,
.cx-dashboard-hero__visual {
    position: relative;
    z-index: 1;
}

.cx-dashboard-greeting {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: .45rem .85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .07);
    color: rgba(244, 247, 251, .86);
    font-weight: 800;
    font-size: .86rem;
}

.cx-dashboard-hero h2 {
    margin: .85rem 0 .45rem;
    color: #fff;
    font-size: clamp(2.25rem, 4vw, 3.35rem);
    line-height: .96;
    letter-spacing: -.065em;
    font-weight: 950;
}

.cx-dashboard-hero p {
    margin: 0;
    color: rgba(244, 247, 251, .72);
    font-size: 1rem;
    line-height: 1.55;
}

.cx-dashboard-hero-meta {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 1.35rem;
    max-width: 740px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    background: rgba(2, 12, 26, .28);
    overflow: hidden;
}

    .cx-dashboard-hero-meta div {
        display: grid;
        gap: .25rem;
        padding: .85rem .9rem;
        border-right: 1px solid rgba(255, 255, 255, .08);
    }

        .cx-dashboard-hero-meta div:last-child {
            border-right: 0;
        }

    .cx-dashboard-hero-meta span {
        color: rgba(244, 247, 251, .50);
        font-size: .76rem;
        font-weight: 750;
    }

    .cx-dashboard-hero-meta strong {
        color: #fff;
        font-size: .88rem;
        font-weight: 850;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.cx-dashboard-positive {
    color: #4ee3b5 !important;
}

.cx-dashboard-hero__visual {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 220px;
}

.cx-dashboard-portrait {
    position: relative;
    z-index: 2;
    width: 168px;
    height: 168px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 44px;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .20), transparent 40%), linear-gradient(180deg, rgba(65, 154, 255, .38), rgba(15, 67, 131, .35));
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 24px 58px rgba(0, 0, 0, .28);
}

    .cx-dashboard-portrait span {
        color: #fff;
        font-size: 3.2rem;
        font-weight: 950;
        letter-spacing: -.08em;
    }

.cx-dashboard-neon-ring {
    position: absolute;
    right: 1.2rem;
    bottom: -2.1rem;
    width: 170px;
    height: 170px;
    border: 18px solid rgba(227, 21, 197, .92);
    border-radius: 999px;
    box-shadow: 0 0 34px rgba(227, 21, 197, .28);
}

.cx-dashboard-neon-ring--small {
    right: 8.6rem;
    bottom: -4.4rem;
    width: 120px;
    height: 120px;
    border-width: 15px;
}

/* Panels */

.cx-dashboard-panel {
    padding: 1rem;
}

.cx-dashboard-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .85rem;
}

    .cx-dashboard-panel-head h3 {
        margin: 0;
        color: #fff;
        font-size: 1.05rem;
        font-weight: 900;
        letter-spacing: -.035em;
    }

    .cx-dashboard-panel-head a {
        color: rgba(177, 211, 255, .86);
        font-weight: 800;
        text-decoration: none !important;
        font-size: .84rem;
    }

.cx-dashboard-quick {
    min-height: 260px;
}

.cx-dashboard-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .65rem;
}

.cx-dashboard-action-card {
    min-height: 104px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: .25rem;
    padding: .85rem .65rem;
    text-align: center;
    border: 1px solid rgba(125, 184, 255, .10);
    border-radius: 12px;
    background: radial-gradient(circle at 50% 0%, rgba(98, 170, 255, .12), transparent 48%), rgba(255, 255, 255, .035);
    color: #fff !important;
    text-decoration: none !important;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

    .cx-dashboard-action-card:hover {
        transform: translateY(-2px);
        background: rgba(98, 170, 255, .09);
        border-color: rgba(98, 170, 255, .24);
    }

.cx-dashboard-action-card--locked {
    opacity: .55;
}

.cx-dashboard-action-card strong {
    margin-top: .25rem;
    color: #fff;
    font-size: .84rem;
    font-weight: 900;
}

.cx-dashboard-action-card small {
    color: rgba(244, 247, 251, .56);
    font-size: .74rem;
    font-weight: 700;
}

.cx-dashboard-action-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-weight: 900;
}

.cx-dashboard-action-icon--blue {
    color: #54a7ff;
    background: rgba(84, 167, 255, .12);
}

.cx-dashboard-action-icon--cyan {
    color: #38e8db;
    background: rgba(56, 232, 219, .10);
}

.cx-dashboard-action-icon--purple {
    color: #c35cff;
    background: rgba(195, 92, 255, .11);
}

.cx-dashboard-action-icon--yellow {
    color: #ffd14f;
    background: rgba(255, 209, 79, .11);
}

/* Main dashboard cards */

.cx-dashboard-main-grid {
    display: grid;
    grid-template-columns: minmax(260px, .9fr) minmax(300px, 1fr) minmax(340px, 1.15fr) minmax(280px, .95fr);
    gap: .85rem;
}

.cx-dashboard-status,
.cx-dashboard-select-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: .34rem .7rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .055);
    color: rgba(244, 247, 251, .86);
    font-size: .78rem;
    font-weight: 900;
}

.cx-dashboard-status--active {
    color: #55e0a7;
    border-color: rgba(85, 224, 167, .18);
    background: rgba(85, 224, 167, .10);
}

.cx-dashboard-kv-list {
    display: grid;
}

    .cx-dashboard-kv-list > div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .8rem;
        min-height: 34px;
        padding: .46rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, .075);
    }

    .cx-dashboard-kv-list span {
        color: rgba(244, 247, 251, .58);
        font-weight: 700;
    }

    .cx-dashboard-kv-list strong {
        color: #fff;
        font-weight: 900;
        text-align: right;
    }

.cx-dashboard-card-button {
    min-height: 42px;
    margin-top: .85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .7rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(98, 170, 255, .20);
    background: rgba(40, 119, 241, .18);
    color: #9ecbff !important;
    text-decoration: none !important;
    font-weight: 900;
}

    .cx-dashboard-card-button:hover {
        background: rgba(40, 119, 241, .26);
        color: #d2e8ff !important;
    }

.cx-dashboard-card-button--disabled {
    opacity: .55;
}

.cx-dashboard-inline-warning,
.cx-dashboard-inline-danger {
    margin-top: .7rem;
    padding: .65rem .75rem;
    border-radius: 12px;
    font-weight: 750;
    font-size: .84rem;
}

.cx-dashboard-inline-warning {
    color: #ffd899;
    border: 1px solid rgba(231, 178, 92, .22);
    background: rgba(231, 178, 92, .10);
}

.cx-dashboard-inline-danger {
    color: #ffb8c3;
    border: 1px solid rgba(227, 103, 120, .22);
    background: rgba(227, 103, 120, .10);
}

/* Rings */

.cx-dashboard-ring-layout,
.cx-dashboard-crm-layout {
    display: grid;
    grid-template-columns: 138px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
}

.cx-dashboard-ring {
    width: 132px;
    height: 132px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle, rgba(7, 22, 39, 1) 0 53%, transparent 54%), conic-gradient(#1589ff var(--cx-ring-fill), #5967ff var(--cx-ring-fill) calc(var(--cx-ring-fill) + 16%), rgba(255, 255, 255, .08) 0);
}

.cx-dashboard-ring--crm {
    background: radial-gradient(circle, rgba(7, 22, 39, 1) 0 53%, transparent 54%), conic-gradient(#b64cff 0 46%, #0cae9a 46% 72%, rgba(255, 255, 255, .08) 72%);
}

.cx-dashboard-ring > div {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
    border-radius: 999px;
    background: rgba(4, 16, 31, .92);
}

.cx-dashboard-ring strong {
    display: block;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 950;
}

.cx-dashboard-ring span {
    display: block;
    color: rgba(244, 247, 251, .64);
    font-size: .74rem;
    font-weight: 750;
}

.cx-dashboard-legend {
    display: grid;
    gap: .65rem;
}

    .cx-dashboard-legend > div {
        display: grid;
        grid-template-columns: 12px minmax(0, 1fr) auto;
        align-items: center;
        gap: .6rem;
    }

    .cx-dashboard-legend span {
        color: rgba(244, 247, 251, .62);
        font-weight: 750;
    }

    .cx-dashboard-legend strong {
        color: #fff;
        font-weight: 900;
    }

.cx-dashboard-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
}

.cx-dashboard-dot--blue {
    background: #1589ff;
}

.cx-dashboard-dot--green {
    background: #24d3b5;
}

.cx-dashboard-dot--muted {
    background: rgba(255, 255, 255, .20);
}

/* CRM */

.cx-dashboard-stage-list {
    display: grid;
    gap: .5rem;
}

    .cx-dashboard-stage-list > div {
        display: grid;
        grid-template-columns: 28px minmax(0, 1fr) auto;
        align-items: center;
        gap: .55rem;
    }

    .cx-dashboard-stage-list span {
        color: rgba(244, 247, 251, .66);
        font-weight: 750;
    }

    .cx-dashboard-stage-list strong {
        color: #fff;
        font-weight: 900;
    }

.cx-stage-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #fff !important;
    font-size: .7rem;
    font-weight: 950;
}

.cx-stage-icon--blue {
    background: rgba(21, 137, 255, .25);
}

.cx-stage-icon--cyan {
    background: rgba(36, 211, 181, .25);
}

.cx-stage-icon--yellow {
    background: rgba(255, 209, 79, .25);
}

.cx-stage-icon--purple {
    background: rgba(195, 92, 255, .25);
}

.cx-stage-icon--green {
    background: rgba(69, 210, 109, .25);
}

/* Empty / bottom cards */

.cx-dashboard-empty-list {
    min-height: 172px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: .35rem;
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, .12);
    border-radius: 16px;
    background: rgba(255, 255, 255, .025);
}

.cx-dashboard-empty-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(98, 170, 255, .10);
    color: #9ecbff;
    font-weight: 900;
}

.cx-dashboard-empty-list strong {
    color: #fff;
    font-weight: 900;
}

.cx-dashboard-empty-list span {
    max-width: 24ch;
    color: rgba(244, 247, 251, .58);
    font-size: .84rem;
    line-height: 1.45;
}

.cx-dashboard-bottom-grid {
    display: grid;
    grid-template-columns: minmax(420px, 1.15fr) minmax(340px, .95fr) minmax(340px, .95fr);
    gap: .85rem;
}

.cx-dashboard-org-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(180px, .75fr);
    gap: 1rem;
    align-items: center;
}

.cx-dashboard-org-main {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: .95rem;
    align-items: center;
}

.cx-dashboard-org-avatar {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: linear-gradient(180deg, #1e8bff, #195bd8);
    color: #fff;
    font-size: 1.55rem;
    font-weight: 950;
    letter-spacing: -.05em;
}

.cx-dashboard-org-main h4 {
    margin: 0 0 .65rem;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 950;
}

.cx-dashboard-org-row,
.cx-dashboard-org-stats > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    padding: .35rem 0;
}

    .cx-dashboard-org-row span,
    .cx-dashboard-org-stats span {
        color: rgba(244, 247, 251, .58);
        font-weight: 750;
    }

    .cx-dashboard-org-row strong,
    .cx-dashboard-org-stats strong {
        color: #fff;
        font-weight: 900;
        text-align: right;
    }

.cx-dashboard-org-stats {
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, .08);
}

.cx-dashboard-activity-list {
    display: grid;
}

    .cx-dashboard-activity-list > div {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr) auto;
        gap: .75rem;
        align-items: center;
        min-height: 58px;
        padding: .6rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, .075);
    }

        .cx-dashboard-activity-list > div:last-child {
            border-bottom: 0;
        }

.cx-dashboard-activity-avatar,
.cx-dashboard-activity-icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(98, 170, 255, .14);
    color: #9ecbff;
    font-weight: 950;
}

.cx-dashboard-activity-icon--green {
    color: #55e0a7;
    background: rgba(85, 224, 167, .12);
}

.cx-dashboard-activity-list strong {
    display: block;
    color: #fff;
    font-weight: 900;
}

.cx-dashboard-activity-list small {
    display: block;
    margin-top: .15rem;
    color: rgba(244, 247, 251, .58);
}

.cx-dashboard-activity-list em {
    color: rgba(244, 247, 251, .48);
    font-style: normal;
    font-size: .8rem;
    font-weight: 750;
}

.cx-dashboard-announcement-main {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: .85rem;
    align-items: center;
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(125, 184, 255, .10);
    background: rgba(255, 255, 255, .04);
}

    .cx-dashboard-announcement-main > span {
        width: 54px;
        height: 54px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: rgba(255, 209, 79, .11);
        font-size: 1.5rem;
    }

    .cx-dashboard-announcement-main strong {
        color: #fff;
        font-weight: 950;
    }

    .cx-dashboard-announcement-main p {
        margin: .25rem 0 0;
        color: rgba(244, 247, 251, .62);
        line-height: 1.45;
    }

.cx-dashboard-mini-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .65rem;
    margin-top: .85rem;
}

    .cx-dashboard-mini-actions a {
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr);
        gap: .7rem;
        align-items: center;
        padding: .85rem;
        border-radius: 14px;
        border: 1px solid rgba(125, 184, 255, .10);
        background: rgba(255, 255, 255, .035);
        color: #fff !important;
        text-decoration: none !important;
    }

    .cx-dashboard-mini-actions span {
        width: 36px;
        height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: rgba(98, 170, 255, .12);
        color: #9ecbff;
        font-weight: 950;
    }

    .cx-dashboard-mini-actions strong {
        display: block;
        font-weight: 900;
    }

    .cx-dashboard-mini-actions small {
        color: rgba(244, 247, 251, .58);
        font-weight: 700;
    }

/* Dashboard responsive */

@media (max-width: 1599.98px) {
    .cx-dashboard-top-grid {
        grid-template-columns: 1fr;
    }

    .cx-dashboard-main-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cx-dashboard-bottom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1199.98px) {
    .cx-dashboard-hero {
        grid-template-columns: 1fr;
    }

    .cx-dashboard-hero__visual {
        display: none;
    }

    .cx-dashboard-hero-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

        .cx-dashboard-hero-meta div {
            border-right: 0;
            border-bottom: 1px solid rgba(255, 255, 255, .08);
        }
}

@media (max-width: 991.98px) {
    .app-sidebar {
        padding: 1rem 1rem 0;
    }

    .app-sidebar__inner {
        border-radius: 24px;
        border: 1px solid rgba(125, 184, 255, .10);
    }

    .app-main {
        padding: 1rem;
    }

    .app-topbar {
        padding-top: 0;
    }

    .cx-dashboard-main-grid {
        grid-template-columns: 1fr;
    }

    .cx-dashboard-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cx-dashboard-org-layout,
    .cx-dashboard-ring-layout,
    .cx-dashboard-crm-layout {
        grid-template-columns: 1fr;
    }

    .cx-dashboard-ring {
        margin: 0 auto;
    }

    .cx-dashboard-org-stats {
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, .08);
        padding-top: .75rem;
    }
}

@media (max-width: 767.98px) {
    .cx-dashboard-hero,
    .cx-dashboard-panel {
        border-radius: 18px;
        padding: .95rem;
    }

        .cx-dashboard-hero h2 {
            font-size: clamp(2.2rem, 13vw, 3.2rem);
        }

    .cx-dashboard-hero-meta,
    .cx-dashboard-action-grid,
    .cx-dashboard-mini-actions {
        grid-template-columns: 1fr;
    }

    .cx-dashboard-org-main {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Dashboard dynamic subscription status colors
   ========================================================= */

.cx-dashboard-status--neutral {
    color: rgba(244, 247, 251, .78);
    border-color: rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .055);
}

.cx-dashboard-status--warning {
    color: #ffd48b;
    border-color: rgba(231, 178, 92, .22);
    background: rgba(231, 178, 92, .10);
}

.cx-dashboard-status--danger {
    color: #ffb8c3;
    border-color: rgba(227, 103, 120, .24);
    background: rgba(227, 103, 120, .10);
}

.cx-dashboard-negative {
    color: #ffb8c3 !important;
}

.cx-dashboard-warning-text {
    color: #ffd48b !important;
}

/* =========================================================
   Profile avatar upload
   ========================================================= */

.profile-avatar-page {
    display: grid;
    gap: 1rem;
}

.profile-avatar-modern--photo {
    overflow: hidden;
}

    .profile-avatar-modern--photo img,
    .cx-dashboard-portrait img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

.avatar-upload-form {
    display: grid;
    gap: 1rem;
}

.cx-dashboard-portrait {
    overflow: hidden;
}

/* =========================================================
   Profile avatar edit action
   ========================================================= */

.profile-avatar-shell {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
}

.profile-avatar-shell--small {
    width: 58px;
    height: 58px;
}

.profile-avatar-modern--photo {
    overflow: hidden;
}

    .profile-avatar-modern--photo img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

    .profile-avatar-modern--photo span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

.profile-avatar-edit {
    position: absolute;
    right: -8px;
    bottom: -8px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff !important;
    text-decoration: none !important;
    border: 1px solid rgba(125, 184, 255, .34);
    background: linear-gradient(180deg, rgba(93, 167, 255, .95) 0%, rgba(47, 125, 245, .92) 100%);
    box-shadow: 0 10px 26px rgba(47, 125, 245, .28), 0 0 0 5px rgba(3, 15, 29, .82);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    z-index: 3;
}

    .profile-avatar-edit:hover {
        transform: translateY(-1px) scale(1.03);
        box-shadow: 0 14px 30px rgba(47, 125, 245, .34), 0 0 0 5px rgba(3, 15, 29, .82);
    }

    .profile-avatar-edit svg {
        width: 17px;
        height: 17px;
    }

.profile-avatar-edit--small {
    right: -7px;
    bottom: -7px;
    width: 30px;
    height: 30px;
}

    .profile-avatar-edit--small svg {
        width: 14px;
        height: 14px;
    }

/* =========================================================
   Topbar profile avatar miniature
   ========================================================= */

.app-topbar__profile-action {
    gap: .55rem;
}

    .app-topbar__profile-action.active {
        border-color: rgba(125, 184, 255, .28);
        background: rgba(98, 170, 255, .12);
    }

.app-profile-avatar-mini {
    width: 24px;
    height: 24px;
    min-width: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 999px;
    border: 1px solid rgba(125, 184, 255, .22);
    background: rgba(255, 255, 255, .06);
}

    .app-profile-avatar-mini img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

.app-profile-avatar-mini__fallback {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

    .app-profile-avatar-mini__fallback svg {
        width: 14px;
        height: 14px;
    }

.app-profile-avatar-mini.has-photo .app-profile-avatar-mini__fallback {
    display: none;
}

/* =========================================================
   Avatar image fallback handling
   ========================================================= */

.cx-dashboard-portrait,
.profile-avatar-modern--photo,
.app-profile-avatar-mini {
    position: relative;
    overflow: hidden;
}

    .cx-dashboard-portrait img,
    .profile-avatar-modern--photo img,
    .app-profile-avatar-mini img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

/* Dashboard initials fallback */
.cx-avatar-fallback {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 3.2rem;
    font-weight: 950;
    letter-spacing: -.08em;
}

.cx-dashboard-portrait.has-photo .cx-avatar-fallback {
    display: none;
}

/* Profile initials fallback */
.profile-avatar-fallback {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 950;
    letter-spacing: -.04em;
}

.profile-avatar-modern.has-photo .profile-avatar-fallback {
    display: none;
}

/* Topbar fallback already supported, but keep it consistent */
.app-profile-avatar-mini.has-photo .app-profile-avatar-mini__fallback {
    display: none;
}

/* =========================================================
   Users Management avatars
   ========================================================= */

.um-avatar {
    position: relative;
    overflow: hidden;
}

    .um-avatar img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

.um-avatar-fallback {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: -.03em;
}

.um-avatar.has-photo .um-avatar-fallback {
    display: none;
}

.um-search-suggest-wrap {
    position: relative;
}

.um-search-suggestions {
    position: absolute;
    z-index: 50;
    left: 0;
    right: 0;
    top: calc(100% + .45rem);
    background: rgba(15, 32, 52, .98);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .35);
    overflow: hidden;
}

.um-search-suggestion {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--cx-text);
    text-align: left;
    padding: .75rem .95rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

    .um-search-suggestion:hover,
    .um-search-suggestion:focus {
        background: rgba(98, 170, 255, .14);
        outline: none;
    }

    .um-search-suggestion strong {
        font-size: .9rem;
        font-weight: 800;
    }

    .um-search-suggestion small {
        color: var(--cx-text-soft);
        font-size: .78rem;
    }

/* =========================================================
   Chronexa Global In-App Popup
   Function: InChronexaPopUp()
   ========================================================= */

.cx-popup-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(3, 7, 18, 0.72);
    backdrop-filter: blur(14px);
}

    .cx-popup-backdrop.is-open {
        display: flex;
    }

.cx-popup-card {
    width: min(100%, 460px);
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 34%), linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.55);
    color: #f8fafc;
    overflow: hidden;
    transform: translateY(8px) scale(0.98);
    opacity: 0;
    animation: cxPopupIn 160ms ease-out forwards;
}

@keyframes cxPopupIn {
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.cx-popup-body {
    padding: 1.45rem;
}

.cx-popup-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    background: rgba(59, 130, 246, 0.14);
    color: #bfdbfe;
    border: 1px solid rgba(147, 197, 253, 0.22);
}

.cx-popup-card[data-tone="danger"] .cx-popup-icon {
    background: rgba(239, 68, 68, 0.14);
    color: #fecaca;
    border-color: rgba(248, 113, 113, 0.25);
}

.cx-popup-card[data-tone="warning"] .cx-popup-icon {
    background: rgba(245, 158, 11, 0.14);
    color: #fde68a;
    border-color: rgba(251, 191, 36, 0.25);
}

.cx-popup-card[data-tone="success"] .cx-popup-icon {
    background: rgba(34, 197, 94, 0.14);
    color: #bbf7d0;
    border-color: rgba(74, 222, 128, 0.25);
}

.cx-popup-title {
    margin: 0;
    color: #ffffff;
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.cx-popup-message {
    margin: 0.65rem 0 0;
    color: rgba(226, 232, 240, 0.82);
    font-size: 0.95rem;
    line-height: 1.55;
}

.cx-popup-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.7rem;
    padding: 0 1.45rem 1.45rem;
}

.cx-popup-btn {
    border: 0;
    border-radius: 999px;
    padding: 0.72rem 1.15rem;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

    .cx-popup-btn:hover {
        transform: translateY(-1px);
    }

.cx-popup-btn--cancel {
    color: #e5e7eb;
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.cx-popup-btn--confirm {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.28);
}

.cx-popup-card[data-tone="danger"] .cx-popup-btn--confirm {
    background: linear-gradient(135deg, #dc2626, #f97316);
    box-shadow: 0 12px 30px rgba(220, 38, 38, 0.28);
}

.cx-popup-card[data-tone="warning"] .cx-popup-btn--confirm {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    box-shadow: 0 12px 30px rgba(217, 119, 6, 0.28);
}

.cx-popup-card[data-tone="success"] .cx-popup-btn--confirm {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    box-shadow: 0 12px 30px rgba(22, 163, 74, 0.25);
}

@media (max-width: 540px) {
    .cx-popup-actions {
        flex-direction: column-reverse;
    }

    .cx-popup-btn {
        width: 100%;
    }
}

.layout-footer-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    opacity: .9;
}

    .layout-footer-link:hover {
        color: #ffffff;
        text-decoration: none;
        opacity: 1;
    }

.layout-footer-separator {
    margin: 0 .35rem;
    opacity: .7;
}

.layout-footer-version {
    margin-left: .5rem;
    opacity: .75;
}

/* =========================================================
   Privacy Page
   ========================================================= */

.privacy-page {
    display: grid;
    gap: 1rem;
    padding-top: .55rem;
}

.privacy-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
    gap: 1rem;
    align-items: stretch;
    padding: 1.25rem;
    border: 1px solid var(--cx-border);
    border-radius: var(--cx-radius-lg);
    background: radial-gradient(circle at 8% 0%, rgba(108, 174, 255, .18), transparent 26%), linear-gradient(135deg, rgba(43, 91, 145, .48) 0%, rgba(10, 34, 57, .92) 58%, rgba(5, 18, 30, .98) 100%);
    box-shadow: var(--cx-shadow);
    overflow: hidden;
    position: relative;
}

    .privacy-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(circle at 92% 14%, rgba(130, 190, 255, .10), transparent 24%);
    }

.privacy-hero__main,
.privacy-hero__side {
    position: relative;
    z-index: 1;
}

    .privacy-hero__main h2 {
        margin: .75rem 0 .35rem;
        color: #fbfdff;
        font-size: clamp(2.1rem, 3.6vw, 3.7rem);
        line-height: .95;
        letter-spacing: -.06em;
        font-weight: 950;
    }

    .privacy-hero__main p {
        max-width: 78ch;
        margin: 0;
        color: var(--cx-text-soft);
        font-size: 1rem;
        line-height: 1.65;
    }

.privacy-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1.25rem;
}

.privacy-hero__side {
    display: grid;
    gap: .7rem;
    align-content: center;
}

.privacy-hero-metric {
    display: grid;
    gap: .22rem;
    padding: .9rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .055);
}

    .privacy-hero-metric span {
        color: var(--cx-text-soft);
        font-size: .84rem;
    }

    .privacy-hero-metric strong {
        color: #fff;
        font-size: 1rem;
        font-weight: 900;
        overflow-wrap: anywhere;
    }

.privacy-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.privacy-summary-card,
.privacy-nav-card,
.privacy-section {
    border: 1px solid var(--cx-border);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(13, 33, 53, .84) 0%, rgba(8, 22, 37, .94) 100%);
    box-shadow: var(--cx-shadow);
    backdrop-filter: blur(18px);
}

.privacy-summary-card {
    padding: 1.1rem;
    min-height: 100%;
}

.privacy-summary-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .9rem;
    border-radius: 14px;
    border: 1px solid rgba(125, 184, 255, .18);
    background: linear-gradient(180deg, rgba(93, 167, 255, .24) 0%, rgba(47, 125, 245, .10) 100%);
    color: #b9dcff;
    font-weight: 950;
    font-size: .78rem;
}

.privacy-summary-card h3 {
    margin: 0 0 .45rem;
    color: #fff;
    font-size: 1.08rem;
    font-weight: 900;
    letter-spacing: -.03em;
}

.privacy-summary-card p {
    margin: 0;
    color: var(--cx-text-soft);
    line-height: 1.55;
}

.privacy-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.privacy-nav-card {
    position: sticky;
    top: 1rem;
    display: grid;
    gap: .35rem;
    padding: 1rem;
}

    .privacy-nav-card strong {
        display: block;
        margin-bottom: .5rem;
        color: #fff;
        font-weight: 900;
    }

    .privacy-nav-card a {
        display: flex;
        align-items: center;
        min-height: 38px;
        padding: .55rem .7rem;
        border-radius: 12px;
        color: rgba(244, 247, 251, .74);
        text-decoration: none !important;
        font-weight: 800;
        font-size: .88rem;
    }

        .privacy-nav-card a:hover {
            color: #fff;
            background: rgba(98, 170, 255, .10);
        }

.privacy-content {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.privacy-section {
    padding: 1.2rem;
    scroll-margin-top: 1rem;
}

    .privacy-section h3 {
        margin: 0 0 .75rem;
        color: #fff;
        font-size: 1.35rem;
        font-weight: 950;
        letter-spacing: -.035em;
    }

    .privacy-section h4 {
        margin: 0 0 .4rem;
        color: #fff;
        font-size: 1.02rem;
        font-weight: 900;
        letter-spacing: -.025em;
    }

    .privacy-section p {
        margin: 0;
        color: var(--cx-text-soft);
        line-height: 1.68;
    }

        .privacy-section p + p {
            margin-top: .75rem;
        }

.privacy-two-grid,
.privacy-data-grid {
    display: grid;
    gap: .85rem;
    margin-top: 1rem;
}

.privacy-two-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.privacy-data-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.privacy-mini-card,
.privacy-data-card {
    padding: .95rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .035);
}

    .privacy-mini-card p,
    .privacy-data-card p {
        font-size: .93rem;
    }

.privacy-bullet-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
    margin-top: 1rem;
}

    .privacy-bullet-list span,
    .privacy-rights-grid span {
        position: relative;
        display: block;
        padding: .75rem .85rem .75rem 2.35rem;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, .08);
        background: rgba(255, 255, 255, .035);
        color: rgba(244, 247, 251, .88);
        line-height: 1.45;
        font-weight: 700;
    }

        .privacy-bullet-list span::before,
        .privacy-rights-grid span::before {
            content: "✓";
            position: absolute;
            left: .82rem;
            top: .78rem;
            width: 1.05rem;
            height: 1.05rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 999px;
            background: rgba(98, 170, 255, .14);
            color: #9fd4ff;
            font-size: .72rem;
            font-weight: 950;
        }

.privacy-rights-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
    margin: 1rem 0;
}

.privacy-section--contact {
    background: radial-gradient(circle at 8% 0%, rgba(108, 174, 255, .14), transparent 28%), linear-gradient(180deg, rgba(13, 33, 53, .88) 0%, rgba(8, 22, 37, .96) 100%);
}

.privacy-contact-link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 44px;
    margin-top: 1rem;
    padding: .65rem .95rem;
    border-radius: 999px;
    border: 1px solid rgba(98, 170, 255, .20);
    background: rgba(98, 170, 255, .08);
    color: #a9d4ff;
    font-weight: 850;
    text-decoration: none !important;
    overflow-wrap: anywhere;
}

    .privacy-contact-link:hover {
        color: #d5ebff;
        background: rgba(98, 170, 255, .12);
    }

@media (max-width: 1199.98px) {
    .privacy-hero,
    .privacy-layout {
        grid-template-columns: 1fr;
    }

    .privacy-hero__side,
    .privacy-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .privacy-nav-card {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .privacy-hero,
    .privacy-summary-card,
    .privacy-nav-card,
    .privacy-section {
        border-radius: 22px;
        padding: 1rem;
    }

    .privacy-hero__side,
    .privacy-summary-grid,
    .privacy-two-grid,
    .privacy-data-grid,
    .privacy-bullet-list,
    .privacy-rights-grid {
        grid-template-columns: 1fr;
    }

    .privacy-hero__main h2 {
        font-size: clamp(2.35rem, 13vw, 4.1rem);
    }
}

/* =========================================================
   Chronexa guest cookie consent
   ========================================================= */

.cx-cookie-consent {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 9999;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.cx-cookie-card {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.25rem;
    padding: 1rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(147, 183, 247, 0.2);
    background: radial-gradient(circle at top left, rgba(66, 139, 255, 0.2), transparent 34%), rgba(7, 22, 39, 0.96);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(18px);
    color: #f7fbff;
    pointer-events: auto;
}

.cx-cookie-card__main {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
}

.cx-cookie-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(147, 183, 247, 0.22);
    background: rgba(255, 255, 255, 0.06);
}

    .cx-cookie-icon img {
        width: 25px;
        height: 25px;
        display: block;
    }

.cx-cookie-copy h2 {
    margin: 0 0 .35rem;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.cx-cookie-copy p {
    margin: 0;
    color: rgba(226, 238, 255, 0.78);
    font-size: .88rem;
    line-height: 1.55;
}

.cx-cookie-links {
    margin-top: .6rem;
}

    .cx-cookie-links a {
        color: #93c5fd;
        font-size: .84rem;
        font-weight: 700;
        text-decoration: none;
    }

        .cx-cookie-links a:hover {
            color: #ffffff;
            text-decoration: underline;
            text-underline-offset: 3px;
        }

.cx-cookie-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .55rem;
    flex-wrap: wrap;
}

.cx-cookie-btn {
    white-space: nowrap;
}

.cx-cookie-preferences {
    margin-top: .85rem;
    display: grid;
    gap: .55rem;
}

.cx-cookie-option {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin: 0;
    padding: .75rem;
    border-radius: 1rem;
    border: 1px solid rgba(147, 183, 247, 0.16);
    background: rgba(255, 255, 255, 0.045);
    cursor: pointer;
}

.cx-cookie-option--locked {
    cursor: default;
    opacity: .88;
}

.cx-cookie-option input {
    margin-top: .2rem;
    accent-color: #3b82f6;
}

.cx-cookie-option strong {
    display: block;
    color: #ffffff;
    font-size: .86rem;
}

.cx-cookie-option small {
    display: block;
    margin-top: .15rem;
    color: rgba(226, 238, 255, 0.68);
    font-size: .78rem;
    line-height: 1.35;
}

@media (max-width: 768px) {
    .cx-cookie-card {
        grid-template-columns: 1fr;
        gap: .9rem;
        padding: .9rem;
    }

    .cx-cookie-actions {
        justify-content: stretch;
    }

        .cx-cookie-actions .btn {
            width: 100%;
        }
}