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

body { min-height: 100vh; }

/* Public marketing site */
.xerstel-public-site { color: #162338; background: #fff; }
.xerstel-public-nav { position: relative; z-index: 10; padding: 1.1rem 0; background: rgba(255,255,255,.92); border-bottom: 1px solid #edf1f6; }
.xerstel-public-brand img { display: block; width: 156px; height: auto; }
.xerstel-public-nav nav a, .xerstel-public-footer a { color: #5c6c82; text-decoration: none; font-size: .92rem; }
.xerstel-public-nav nav a:hover, .xerstel-public-footer a:hover { color: #206bc4; }
.xerstel-public-hero { padding: 6.5rem 0 7rem; background: radial-gradient(circle at 78% 35%, #e9f3ff 0, rgba(233,243,255,0) 34%), linear-gradient(180deg,#fff 0,#f8fbff 100%); overflow: hidden; }
.xerstel-public-eyebrow { display: flex; align-items: center; gap: .55rem; color: #206bc4; font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.xerstel-public-eyebrow > span { display: inline-block; width: 24px; height: 2px; background: #206bc4; }
.xerstel-public-hero h1 { max-width: 620px; margin: 1.2rem 0; font-size: clamp(2.8rem, 6vw, 5.2rem); line-height: .98; letter-spacing: -.065em; font-weight: 700; }
.xerstel-public-hero h1 em { color: #206bc4; font-style: normal; }
.xerstel-public-hero .lead { max-width: 560px; color: #64748b; font-size: 1.18rem; line-height: 1.7; }
.xerstel-public-proof { color: #64748b; font-size: .88rem; }.xerstel-public-proof i { color: #2fb344; margin-right: .35rem; }.xerstel-public-proof span { padding: 0 .55rem; color: #c5ceda; }
.xerstel-public-dashboard { padding: 1rem; background: #fff; border: 1px solid #dce7f3; border-radius: 1rem; box-shadow: 0 30px 80px rgba(28,76,125,.16); transform: rotate(1.5deg); }
.xerstel-public-dashboard-top { display: flex; align-items: center; gap: 1rem; padding: .45rem .5rem 1.1rem; }.xerstel-public-dots { color: #c7d4e4; font-size: .55rem; letter-spacing: .2rem; }.xerstel-preview-card { min-height: 132px; padding: 1rem; background: #f8fafc; border: 1px solid #e8eef5; border-radius: .65rem; }.xerstel-preview-card small { display: block; color: #7c8da3; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; }.xerstel-preview-card strong { display: block; margin: .35rem 0; color: #172b4d; font-size: 1.45rem; }.xerstel-preview-card span { color: #6e8098; font-size: .72rem; }.xerstel-preview-card-primary { background: #206bc4; border-color: #206bc4; color: #fff; }.xerstel-preview-card-primary small,.xerstel-preview-card-primary strong,.xerstel-preview-card-primary span { color: #fff; }.xerstel-preview-chart { display: flex; align-items: end; gap: .35rem; height: 32px; margin-top: .4rem; }.xerstel-preview-chart i { flex: 1; height: 45%; background: rgba(255,255,255,.35); border-radius: 3px; }.xerstel-preview-chart i:nth-child(2),.xerstel-preview-chart i:nth-child(5) { height: 70%; }.xerstel-preview-chart i:nth-child(4),.xerstel-preview-chart i:nth-child(7) { height: 100%; }.xerstel-preview-row { display: flex; align-items: center; gap: .5rem; margin-top: .7rem; color: #687a91; font-size: .72rem; }.xerstel-preview-row b { display: block; color: #1e2f46; font-weight: 600; }
.xerstel-public-trust { padding: 2.2rem 0; color: #8090a6; border-top: 1px solid #edf1f6; border-bottom: 1px solid #edf1f6; }.xerstel-public-trust p { margin-bottom: 1.5rem; font-size: .85rem; }.xerstel-public-trust strong { display: flex; justify-content: center; align-items: center; gap: .5rem; color: #52647d; font-size: .92rem; }.xerstel-public-trust strong i { color: #206bc4; font-size: 1.2rem; }
.xerstel-public-section { padding: 7rem 0; }.xerstel-public-section-light { background: #f5f9fe; }.xerstel-section-heading { max-width: 700px; margin: 0 auto; }.xerstel-section-heading h2, .xerstel-public-split h2 { margin: 1rem 0; color: #162b4b; font-size: clamp(2rem,4vw,3.2rem); letter-spacing: -.045em; }.xerstel-section-heading p, .xerstel-public-split p { color: #6c7d93; font-size: 1.05rem; line-height: 1.7; }
.xerstel-feature-card { height: 100%; padding: 1.7rem; border: 1px solid #e5ebf3; border-radius: .8rem; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }.xerstel-feature-card:hover { transform: translateY(-4px); box-shadow: 0 15px 35px rgba(25,61,100,.08); }.xerstel-feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.9rem; height: 2.9rem; margin-bottom: 1.2rem; border-radius: .65rem; font-size: 1.35rem; }.xerstel-feature-card h3 { margin-bottom: .55rem; color: #1c3150; font-size: 1.1rem; }.xerstel-feature-card p { margin: 0; color: #73839a; line-height: 1.6; }
.xerstel-public-split { padding: 7rem 0; background: #fff; }.xerstel-public-split-alt { background: #f7faff; }.xerstel-public-split .link-primary { text-decoration: none; }.xerstel-public-list-card { padding: 1rem; border: 1px solid #e1eaf4; border-radius: .9rem; box-shadow: 0 20px 50px rgba(32,107,196,.08); }.xerstel-public-list-card > div { display: flex; align-items: center; gap: 1rem; padding: 1.2rem; border-bottom: 1px solid #edf1f6; }.xerstel-public-list-card > div:last-child { border-bottom: 0; }.xerstel-public-list-card > div > i { color: #206bc4; font-size: 1.5rem; }.xerstel-public-list-card span { display: grid; gap: .2rem; }.xerstel-public-list-card small { color: #7b8ba0; }.xerstel-chat-preview { max-width: 440px; padding: 1rem; margin: auto; background: #fff; border: 1px solid #dfe8f2; border-radius: 1rem; box-shadow: 0 20px 50px rgba(30,75,125,.1); }.xerstel-chat-preview-head { display: flex; align-items: center; gap: .7rem; padding-bottom: 1rem; border-bottom: 1px solid #edf1f6; }.xerstel-chat-preview-head b,.xerstel-chat-preview-head small { display: block; }.xerstel-chat-preview-head small { color: #8795a8; }.xerstel-chat-bubble { width: fit-content; max-width: 80%; padding: .7rem .9rem; margin-top: 1rem; color: #576a82; background: #f0f5fb; border-radius: .8rem .8rem .8rem .15rem; }.xerstel-chat-bubble-user { margin-left: auto; color: #fff; background: #206bc4; border-radius: .8rem .8rem .15rem .8rem; }.xerstel-chat-input { display: flex; justify-content: space-between; margin-top: 1.2rem; padding: .75rem; color: #9aa7b7; border: 1px solid #e0e8f0; border-radius: .5rem; }.xerstel-chat-input i { color: #206bc4; }.xerstel-public-footer { padding: 1.6rem 0; color: #8795a8; font-size: .82rem; border-top: 1px solid #e8eef5; }.xerstel-public-footer span:last-child { display: flex; gap: 1.5rem; }
@media (max-width: 991.98px) { .xerstel-public-hero { padding: 4.5rem 0 5rem; }.xerstel-public-dashboard { transform: none; } }
@media (max-width: 575.98px) { .xerstel-public-hero h1 { font-size: 3rem; }.xerstel-public-section,.xerstel-public-split { padding: 4.5rem 0; }.xerstel-public-footer span:last-child { width: 100%; justify-content: space-between; } }
.xerstel-onboarding { min-height: 100vh; background: linear-gradient(145deg,#f7fbff 0,#fff 55%,#eef6ff 100%); }
.xerstel-onboarding main { min-height: 100vh; padding-bottom: 3rem; }
.xerstel-onboarding-header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 0; color: #8290a2; font-size: .82rem; }
.xerstel-onboarding-header img { display: block; width: 150px; height: auto; }
.xerstel-onboarding-card { max-width: 820px; margin: 4.5rem auto 0; padding: 2.5rem; background: rgba(255,255,255,.92); border: 1px solid #e1eaf3; border-radius: 1rem; box-shadow: 0 24px 70px rgba(26,72,119,.1); }
.xerstel-onboarding-card .border-dashed { border-style: dashed; }
.xerstel-onboarding-form { max-width: 650px; }
.xerstel-onboarding-form h1 { color: #172b4d; letter-spacing: -.04em; }
.xerstel-onboarding .card { border-color: #e3ebf4; }
.xerstel-onboarding .card h2 { color: #203552; }
.xerstel-onboarding a { color: #206bc4; }
.xerstel-onboarding-header a { color: inherit; }
@media (max-width: 575.98px) { .xerstel-onboarding-card { margin-top: 2rem; padding: 1.25rem; } }
.xerstel-login-card .validation-summary-valid { display: none; }

.xerstel-topbar {
    min-height: 60px;
    background: #111827 !important;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.xerstel-topbar .navbar-brand,
.xerstel-topbar .nav-link,
.xerstel-topbar .text-reset {
    color: #fff !important;
}

.xerstel-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font-weight: 800;
    letter-spacing: -.04em;
}

.xerstel-logo-text {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -.02em;
}

.xerstel-subnav {
    min-height: 48px;
    background: var(--tblr-bg-surface) !important;
    border-bottom-color: var(--tblr-border-color) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
    color: var(--tblr-body-color);
}

.xerstel-subnav .navbar-brand,
.xerstel-subnav .nav-link {
    color: var(--tblr-body-color);
}

.xerstel-subnav .nav-link {
    min-height: 47px;
    display: flex;
    align-items: center;
}

.xerstel-subnav .nav-link:hover,
.xerstel-subnav .nav-link:focus,
.xerstel-subnav .nav-link.active {
    color: var(--tblr-primary);
}

.xerstel-subnav .navbar-toggler {
    border-color: var(--tblr-border-color);
}

[data-bs-theme="dark"] .xerstel-subnav {
    box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

.page-wrapper { background: var(--tblr-bg-surface-secondary); }
.page-body { padding-top: 1.5rem; padding-bottom: 3rem; }

/* Customer portal */
.portal-body { background: var(--tblr-bg-surface-secondary); color: var(--tblr-body-color); }
.portal-header { background: var(--tblr-bg-surface); padding: 1rem 0; }
.portal-brand { display: inline-flex; align-items: center; gap: .7rem; color: inherit; text-decoration: none; }
.portal-brand > span:last-child { display: grid; line-height: 1.15; }.portal-brand small { color: var(--tblr-secondary); margin-top: .2rem; }
.portal-container { padding-top: 1.4rem; padding-bottom: 3rem; }
.portal-tabs { display: flex; gap: .25rem; margin-bottom: 1.4rem; overflow-x: auto; border-bottom: 1px solid var(--tblr-border-color); }
.portal-tabs a { display: inline-flex; align-items: center; gap: .45rem; padding: .75rem 1rem; color: var(--tblr-secondary); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.portal-tabs a:hover,.portal-tabs a.active { color: var(--tblr-primary); border-bottom-color: var(--tblr-primary); }.portal-tabs a.disabled { opacity: .45; pointer-events: none; }
.portal-welcome-banner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.5rem; margin-bottom: 1.5rem; background: linear-gradient(135deg,#fff7ed,#fff); border: 1px solid #fed7aa; border-radius: .75rem; }
.portal-welcome-banner > div { display: flex; align-items: center; gap: 1rem; }.portal-welcome-banner h1 { letter-spacing: -.03em; }.portal-orders-banner { background: linear-gradient(135deg,#eff6ff,#fff); border-color: #bfdbfe; }
.portal-product-card { overflow: hidden; border-color: var(--tblr-border-color); transition: transform .15s ease, box-shadow .15s ease; }.portal-product-card:hover { transform: translateY(-2px); box-shadow: 0 .5rem 1.4rem rgba(31,41,55,.08); }
.portal-product-image { display: flex; align-items: center; justify-content: center; height: 150px; color: var(--tblr-secondary); background: var(--tblr-bg-surface-secondary); font-size: 2.5rem; }.portal-product-image img { width: 100%; height: 100%; object-fit: cover; }.portal-price { color: var(--tblr-danger); font-size: 1.25rem; font-weight: 700; }
.portal-orders-card { border-color: var(--tblr-border-color); }.portal-order-detail { padding: .25rem 0; }
@media (max-width: 575.98px) { .portal-welcome-banner { align-items: flex-start; flex-direction: column; }.portal-welcome-banner > div { align-items: flex-start; }.portal-welcome-banner .btn { width: 100%; } }
.xerstel-theme-menu { min-width: 260px; }

/* Admin shell: persistent left navigation, with the content surface unchanged. */
.xerstel-admin-shell { min-height: 100vh; }
.xerstel-admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1030;
    width: 264px;
    background: var(--tblr-bg-surface);
    border-right: 1px solid var(--tblr-border-color);
}
.xerstel-admin-sidebar-inner { display: flex; flex-direction: column; height: 100%; padding: 1rem 0; }
.xerstel-admin-brand { display: flex; align-items: center; min-height: 58px; padding: 0 1.25rem 1rem; border-bottom: 1px solid var(--tblr-border-color); }
.xerstel-admin-brand a { display: block; }
.xerstel-admin-brand img { display: block; width: 156px; max-width: 100%; height: auto; }
.xerstel-admin-sidebar nav { flex: 1; overflow-y: auto; padding: .75rem .75rem 1rem; }
.xerstel-admin-nav-section { padding: .9rem .5rem .45rem; color: var(--tblr-secondary); font-size: .69rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.xerstel-admin-nav-link { display: flex; align-items: center; gap: .75rem; min-height: 42px; padding: .55rem .65rem; color: var(--tblr-body-color); border-radius: .35rem; text-decoration: none; }
.xerstel-admin-nav-link:hover, .xerstel-admin-nav-link:focus { color: var(--tblr-primary); background: var(--tblr-bg-surface-secondary); }
.xerstel-admin-nav-link i { width: 1.25rem; color: var(--tblr-secondary); font-size: 1.1rem; text-align: center; }
.xerstel-admin-nav-link:hover i, .xerstel-admin-nav-link:focus i { color: inherit; }
.xerstel-admin-nav-children { display: grid; gap: .15rem; margin: .1rem 0 .4rem 2.65rem; }
.xerstel-admin-nav-children a { padding: .3rem 0; color: var(--tblr-secondary); font-size: .875rem; text-decoration: none; }
.xerstel-admin-nav-children a:hover, .xerstel-admin-nav-children a:focus { color: var(--tblr-primary); }
.xerstel-admin-sidebar-bottom { order: 3; margin-top: auto; padding: .75rem .75rem 0; border-top: 1px solid var(--tblr-border-color); }
.xerstel-admin-sidebar nav { order: 2; }
.xerstel-admin-user { padding: .75rem .5rem 0; margin-top: .25rem; }
.xerstel-admin-user small { font-size: .72rem; }
.xerstel-admin-shell > .page-wrapper { min-height: 100vh; margin-left: 264px; }
.xerstel-admin-shell .page-body { min-height: 100vh; }

@media (max-width: 991.98px) {
    .xerstel-admin-sidebar { width: 100%; height: auto; position: relative; border-right: 0; border-bottom: 1px solid var(--tblr-border-color); }
    .xerstel-admin-sidebar-inner { height: auto; padding-bottom: 0; }
    .xerstel-admin-brand { justify-content: space-between; padding-bottom: .75rem; }
    .xerstel-admin-sidebar nav { flex: none; }
    .xerstel-admin-sidebar-bottom { display: none; }
    .xerstel-admin-shell > .page-wrapper { margin-left: 0; }
}

.xerstel-chat-inbox {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr) minmax(240px, 320px);
    gap: 1rem;
    min-height: calc(100vh - 240px);
}
.xerstel-chat-panel-card { min-height: 0; display: flex; flex-direction: column; }
.xerstel-chat-log { flex: 1; overflow: auto; min-height: 280px; }
.xerstel-chat-msg { max-width: 80%; }
@media (max-width: 1199.98px) {
    .xerstel-chat-inbox { grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); }
    .xerstel-chat-details-col { display: none; }
}
@media (max-width: 767.98px) {
    .xerstel-chat-inbox { grid-template-columns: 1fr; }
    .xerstel-chat-inbox.is-conversation .xerstel-chat-list-col { display: none; }
    .xerstel-chat-inbox:not(.is-conversation) .xerstel-chat-thread-col { display: none; }
}

/* ===========================================================
   Xerstel intro splash screen
   =========================================================== */
#xerstel-splash {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    opacity: 1;
    transition: opacity .6s ease;
}

#xerstel-splash.xerstel-splash-hide {
    opacity: 0;
    pointer-events: none;
}

.xerstel-splash-wrap {
    width: 667px;
    max-width: 90vw;
    aspect-ratio: 667 / 487;
    position: relative;
    animation: xerstelSplashLogoBounce 800ms ease-in-out 2.6s 1 forwards;
    transform: translateY(0);
}

.xerstel-splash-part {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    will-change: transform, opacity, filter;
    pointer-events: none;
}

/* Top symbol pieces */
.xerstel-splash-top-arc {
    clip-path: inset(0% 28% 58% 28%);
    animation: xerstelSplashDropIn 700ms cubic-bezier(.22,1,.36,1) 0ms forwards;
}

.xerstel-splash-left-loop {
    clip-path: inset(16% 52% 40% 8%);
    animation: xerstelSplashSlideLeftIn 700ms cubic-bezier(.22,1,.36,1) 150ms forwards;
}

.xerstel-splash-right-loop {
    clip-path: inset(16% 8% 40% 52%);
    animation: xerstelSplashSlideRightIn 700ms cubic-bezier(.22,1,.36,1) 300ms forwards;
}

.xerstel-splash-center-cross {
    clip-path: inset(14% 34% 40% 34%);
    animation: xerstelSplashPopIn 500ms cubic-bezier(.34,1.56,.64,1) 500ms forwards;
}

.xerstel-splash-full-symbol {
    clip-path: inset(0% 0% 40% 0%);
    animation: xerstelSplashFadeInClean 250ms ease 780ms forwards;
}

/* Text reveals */
.xerstel-splash-main-text {
    clip-path: inset(58% 6% 15% 6%);
    animation: xerstelSplashRiseFadeIn 550ms cubic-bezier(.22,1,.36,1) 1.1s forwards;
}

.xerstel-splash-sub-text {
    clip-path: inset(82% 16% 0% 16%);
    animation: xerstelSplashRiseFadeIn 500ms cubic-bezier(.22,1,.36,1) 1.55s forwards;
}

/* Optional light shine sweep */
.xerstel-splash-wrap::before {
    content: "";
    position: absolute;
    top: -10%;
    left: -35%;
    width: 20%;
    height: 120%;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0),
        rgba(255,255,255,0.7),
        rgba(255,255,255,0)
    );
    transform: skewX(-18deg);
    opacity: 0;
    pointer-events: none;
    z-index: 20;
    animation: xerstelSplashShineSweep 800ms ease 2.05s 1 forwards;
}

@keyframes xerstelSplashDropIn {
    0% { opacity: 0; transform: translateY(-30px) scale(0.96); filter: blur(6px); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes xerstelSplashSlideLeftIn {
    0% { opacity: 0; transform: translateX(-35px) scale(0.97); filter: blur(6px); }
    100% { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}

@keyframes xerstelSplashSlideRightIn {
    0% { opacity: 0; transform: translateX(35px) scale(0.97); filter: blur(6px); }
    100% { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}

@keyframes xerstelSplashPopIn {
    0% { opacity: 0; transform: scale(0.4) rotate(-6deg); filter: blur(4px); }
    70% { opacity: 1; transform: scale(1.06) rotate(0deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); filter: blur(0); }
}

@keyframes xerstelSplashFadeInClean {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes xerstelSplashRiseFadeIn {
    0% { opacity: 0; transform: translateY(18px); filter: blur(5px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes xerstelSplashShineSweep {
    0% { left: -35%; opacity: 0; }
    20% { opacity: 0.85; }
    100% { left: 120%; opacity: 0; }
}

@keyframes xerstelSplashLogoBounce {
    0% { transform: translateY(0); }
    25% { transform: translateY(-18px); }
    50% { transform: translateY(0); }
    70% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .xerstel-splash-wrap,
    .xerstel-splash-wrap::before,
    .xerstel-splash-part {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

.xerstel-onboarding-form .validation-summary-valid { display: none; }
