/* ==========================================================================
   AISafe client site: one light theme for every customer page.
   Shell (header, page, footer) + shared components, all prefixed "cx-".
   Loaded after bootstrap.min.css; the old template style.css is not used.
   ========================================================================== */

:root {
    --cx-bg: #f4f6fb;
    --cx-surface: #ffffff;
    --cx-surface-2: #f8fafc;
    --cx-ink: #0f172a;
    --cx-ink-2: #334155;
    --cx-muted: #64748b;
    --cx-faint: #94a3b8;
    --cx-line: #e4e8f0;
    --cx-line-2: #d3dae6;
    --cx-primary: #2f6bff;
    --cx-primary-hover: #1f58e6;
    --cx-primary-soft: #edf2ff;
    --cx-primary-ink: #1d4ed8;
    --cx-grad: linear-gradient(135deg, #2f6bff 0%, #6a5cff 100%);
    --cx-success: #15803d;
    --cx-success-btn: #16a34a;
    --cx-success-soft: #eaf8ef;
    --cx-success-line: #bfe6cd;
    --cx-warning: #b45309;
    --cx-warning-btn: #f59e0b;
    --cx-warning-soft: #fff6e6;
    --cx-warning-line: #f8d9a0;
    --cx-danger: #dc2626;
    --cx-danger-soft: #fdeeee;
    --cx-danger-line: #f5c6c6;
    --cx-violet: #6d28d9;
    --cx-violet-soft: #f3eeff;
    --cx-teal: #0f766e;
    --cx-teal-soft: #e7f7f5;
    --cx-radius: 16px;
    --cx-radius-sm: 10px;
    --cx-radius-lg: 22px;
    --cx-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -14px rgba(15, 23, 42, .14);
    --cx-shadow-lg: 0 24px 56px -20px rgba(15, 23, 42, .30);
    --cx-ring: 0 0 0 4px rgba(47, 107, 255, .18);
    --cx-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --cx-header-h: 68px;
    color-scheme: light;
}

html { -webkit-text-size-adjust: 100%; }
body.cx-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--cx-font);
    font-size: 15px;
    line-height: 1.55;
    color: var(--cx-ink);
    background: var(--cx-bg);
    -webkit-font-smoothing: antialiased;
}
.cx-body a { color: var(--cx-primary); text-decoration: none; }
.cx-body a:hover { color: var(--cx-primary-hover); }
.cx-body h1, .cx-body h2, .cx-body h3, .cx-body h4 { color: var(--cx-ink); margin: 0; font-weight: 800; letter-spacing: -.015em; }
.cx-body p { margin: 0; }
.cx-body [class^="ri-"], .cx-body [class*=" ri-"] { line-height: 1; }
.cx-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.cx-muted { color: var(--cx-muted); }
.cx-nowrap { white-space: nowrap; }

/* ======================================================================= header */
.cx-header {
    position: sticky; top: 0; z-index: 1030;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--cx-line);
}
.cx-header-inner { max-width: 1240px; height: var(--cx-header-h); margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 16px; }
.cx-logo { display: flex; align-items: center; flex-shrink: 0; }
.cx-logo img { height: 36px; width: auto; display: block; }
.cx-nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; padding-left: 16px; border-left: 1px solid var(--cx-line); }
.cx-nav a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px; font-size: .9rem; font-weight: 600; color: var(--cx-ink-2); }
.cx-nav a i { font-size: 18px; color: var(--cx-muted); }
.cx-nav a:hover { background: var(--cx-surface-2); color: var(--cx-ink); }
.cx-nav a.is-active { background: var(--cx-primary-soft); color: var(--cx-primary-ink); }
.cx-nav a.is-active i { color: var(--cx-primary); }
.cx-header-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.cx-user { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 10px 0 6px; border: 1px solid var(--cx-line); border-radius: 999px; background: #fff; cursor: pointer; font: inherit; color: var(--cx-ink); }
.cx-user:hover, .cx-user[aria-expanded="true"] { border-color: var(--cx-line-2); box-shadow: var(--cx-shadow); }
.cx-user:focus-visible { outline: none; box-shadow: var(--cx-ring); }
.cx-avatar { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: .875rem; font-weight: 800; color: #fff; background: var(--cx-grad); }
.cx-user-name { font-size: .875rem; font-weight: 700; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-user i { font-size: 18px; color: var(--cx-muted); }

.cx-menu.dropdown-menu { min-width: 260px; padding: 8px; margin-top: 8px !important; border: 1px solid var(--cx-line); border-radius: 14px; box-shadow: var(--cx-shadow-lg); font-size: .9rem; }
.cx-menu-head { padding: 10px 12px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--cx-line); }
.cx-menu-head b { display: block; font-weight: 700; color: var(--cx-ink); }
.cx-menu-head span { display: block; font-size: .8125rem; color: var(--cx-muted); word-break: break-all; }
.cx-menu .dropdown-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-weight: 600; color: var(--cx-ink-2); }
.cx-menu .dropdown-item i { font-size: 18px; color: var(--cx-muted); }
.cx-menu .dropdown-item:hover, .cx-menu .dropdown-item:focus { background: var(--cx-surface-2); color: var(--cx-ink); }
.cx-menu .dropdown-item.is-danger, .cx-menu .dropdown-item.is-danger i { color: var(--cx-danger); }
.cx-menu .dropdown-item.is-danger:hover { background: var(--cx-danger-soft); }

/* ========================================================================= page */
.cx-main { flex: 1; width: 100%; }
.cx-page { max-width: 1240px; margin: 0 auto; padding: 28px 20px 56px; }
.cx-page-narrow { max-width: 760px; }
.cx-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.cx-title { font-size: 1.75rem; line-height: 1.2; }
.cx-sub { margin-top: 6px !important; color: var(--cx-muted); font-size: .975rem; max-width: 640px; }
.cx-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; font-size: .9rem; font-weight: 700; color: var(--cx-muted) !important; }
.cx-back i { font-size: 18px; transition: transform .15s; }
.cx-back:hover { color: var(--cx-ink) !important; }
.cx-back:hover i { transform: translateX(-3px); }

.cx-footer { border-top: 1px solid var(--cx-line); background: #fff; }
.cx-footer-inner { max-width: 1240px; margin: 0 auto; padding: 18px 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .8125rem; color: var(--cx-muted); }
.cx-footer a { color: var(--cx-muted) !important; font-weight: 600; }
.cx-footer a:hover { color: var(--cx-primary) !important; }

/* ======================================================================== cards */
.cx-card { background: var(--cx-surface); border: 1px solid var(--cx-line); border-radius: var(--cx-radius); box-shadow: var(--cx-shadow); min-width: 0; }
.cx-card-head { display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px 0; }
.cx-card-head-text { flex: 1; min-width: 0; }
.cx-card-title { font-size: 1.125rem; font-weight: 800; color: var(--cx-ink); }
.cx-card-sub { margin-top: 4px !important; font-size: .9rem; color: var(--cx-muted); }
.cx-card-body { padding: 18px 22px 22px; }
.cx-step-no { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: .95rem; font-weight: 800; color: #fff; background: var(--cx-grad); box-shadow: 0 8px 16px -8px rgba(47, 107, 255, .8); }
.cx-step-no.is-done { background: var(--cx-success-btn); box-shadow: none; }
.cx-card-icon { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; font-size: 20px; color: var(--cx-primary); background: var(--cx-primary-soft); }

/* ====================================================================== buttons */
.cx-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
    font-family: inherit; font-size: .9375rem; font-weight: 700; line-height: 1; white-space: nowrap;
    cursor: pointer; text-decoration: none !important; user-select: none;
    transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s;
}
.cx-btn i { font-size: 19px; }
.cx-btn:focus-visible { outline: none; box-shadow: var(--cx-ring); }
.cx-btn:active { transform: translateY(1px); }
.cx-btn[disabled], .cx-btn.is-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; box-shadow: none !important; }
.cx-btn-primary { color: #fff !important; background: var(--cx-primary); box-shadow: 0 8px 18px -10px rgba(47, 107, 255, .9); }
.cx-btn-primary:hover { background: var(--cx-primary-hover); }
.cx-btn-success { color: #fff !important; background: var(--cx-success-btn); box-shadow: 0 8px 18px -10px rgba(22, 163, 74, .9); }
.cx-btn-success:hover { background: #12873d; }
.cx-btn-warning { color: #3b2300 !important; background: var(--cx-warning-btn); }
.cx-btn-warning:hover { background: #e08e06; }
.cx-btn-danger { color: #fff !important; background: var(--cx-danger); }
.cx-btn-danger:hover { background: #c01f1f; }
.cx-btn-light { color: var(--cx-ink-2) !important; background: #fff; border-color: var(--cx-line-2); }
.cx-btn-light:hover { color: var(--cx-ink) !important; background: var(--cx-surface-2); border-color: #c2cad8; }
.cx-btn-soft { color: var(--cx-primary-ink) !important; background: var(--cx-primary-soft); }
.cx-btn-soft:hover { background: #dfe8ff; }
.cx-btn-ghost { color: var(--cx-muted) !important; background: transparent; }
.cx-btn-ghost:hover { color: var(--cx-ink) !important; background: var(--cx-surface-2); }
.cx-btn-lg { height: 54px; padding: 0 24px; border-radius: 14px; font-size: 1rem; }
.cx-btn-lg i { font-size: 21px; }
.cx-btn-sm { height: 36px; padding: 0 12px; border-radius: 10px; font-size: .8125rem; }
.cx-btn-sm i { font-size: 16px; }
.cx-btn-block { width: 100%; }

/* ======================================================================== pills */
.cx-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: .8125rem; font-weight: 700; white-space: nowrap; color: var(--cx-ink-2); background: var(--cx-surface-2); border: 1px solid var(--cx-line); }
.cx-pill i { font-size: 15px; }
.cx-pill.is-success { color: var(--cx-success); background: var(--cx-success-soft); border-color: var(--cx-success-line); }
.cx-pill.is-warning { color: var(--cx-warning); background: var(--cx-warning-soft); border-color: var(--cx-warning-line); }
.cx-pill.is-danger { color: var(--cx-danger); background: var(--cx-danger-soft); border-color: var(--cx-danger-line); }
.cx-pill.is-info { color: var(--cx-primary-ink); background: var(--cx-primary-soft); border-color: #d3defd; }
.cx-pill.is-violet { color: var(--cx-violet); background: var(--cx-violet-soft); border-color: #e0d4fb; }
.cx-pill.is-teal { color: var(--cx-teal); background: var(--cx-teal-soft); border-color: #bfe7e2; }
.cx-pill.is-solid { color: #fff; border-color: transparent; background: rgba(15, 23, 42, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* ======================================================================= alerts */
.cx-alert { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--cx-line); background: var(--cx-surface-2); color: var(--cx-ink-2); font-size: .925rem; }
.cx-alert > i { font-size: 21px; flex-shrink: 0; margin-top: 1px; }
.cx-alert b { color: var(--cx-ink); }
.cx-alert-body { flex: 1; min-width: 0; }
.cx-alert.is-info { background: var(--cx-primary-soft); border-color: #d3defd; }
.cx-alert.is-info > i { color: var(--cx-primary); }
.cx-alert.is-success { background: var(--cx-success-soft); border-color: var(--cx-success-line); }
.cx-alert.is-success > i { color: var(--cx-success-btn); }
.cx-alert.is-warning { background: var(--cx-warning-soft); border-color: var(--cx-warning-line); }
.cx-alert.is-warning > i { color: #d97706; }
.cx-alert.is-danger { background: var(--cx-danger-soft); border-color: var(--cx-danger-line); }
.cx-alert.is-danger > i { color: var(--cx-danger); }

/* ======================================================================== forms */
.cx-field { display: block; margin-bottom: 18px; }
.cx-label { display: block; margin-bottom: 7px; font-size: .875rem; font-weight: 700; color: var(--cx-ink-2); }
.cx-help { display: block; margin-top: 6px; font-size: .8125rem; color: var(--cx-muted); }
.cx-input {
    width: 100%; height: 48px; padding: 0 14px;
    font-family: inherit; font-size: .975rem; font-weight: 600; color: var(--cx-ink);
    background: #fff; border: 1.5px solid var(--cx-line-2); border-radius: 12px; outline: none;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.cx-input::placeholder { color: var(--cx-faint); font-weight: 500; }
.cx-input:hover { border-color: #b9c3d3; }
.cx-input:focus { border-color: var(--cx-primary); box-shadow: var(--cx-ring); }
.cx-input-wrap { position: relative; }
.cx-input-wrap > .cx-input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 19px; color: var(--cx-faint); pointer-events: none; }
.cx-input-wrap > .cx-input-icon + .cx-input { padding-left: 44px; }
.cx-input-wrap > .cx-input.has-end { padding-right: 52px; }
.cx-input-end { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 36px; border: 0; border-radius: 9px; display: grid; place-items: center; background: transparent; color: var(--cx-muted); font-size: 19px; cursor: pointer; }
.cx-input-end:hover { color: var(--cx-ink); background: var(--cx-surface-2); }
.cx-input-end:focus-visible { outline: none; box-shadow: var(--cx-ring); }

.cx-check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-size: .925rem; font-weight: 600; color: var(--cx-ink-2); }
.cx-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cx-check-box { width: 22px; height: 22px; flex-shrink: 0; border-radius: 7px; border: 2px solid var(--cx-line-2); background: #fff; display: grid; place-items: center; color: #fff; font-size: 15px; transition: background-color .15s, border-color .15s; }
.cx-check-box i { opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s; }
.cx-check input:checked + .cx-check-box { background: var(--cx-primary); border-color: var(--cx-primary); }
.cx-check input:checked + .cx-check-box i { opacity: 1; transform: scale(1); }
.cx-check input:focus-visible + .cx-check-box { box-shadow: var(--cx-ring); }

.cx-search { position: relative; max-width: 360px; width: 100%; }
.cx-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--cx-faint); pointer-events: none; }
.cx-search .cx-input { height: 44px; padding-left: 42px; font-weight: 500; }

/* ===================================================================== home page */
.cx-hello { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.cx-howto { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px; }
.cx-howto-step { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 18px; border-radius: var(--cx-radius); background: #fff; border: 1px solid var(--cx-line); }
.cx-howto-step .cx-step-no { width: 36px; height: 36px; }
.cx-howto-text b { display: block; font-size: .975rem; color: var(--cx-ink); }
.cx-howto-text span { display: block; margin-top: 2px; font-size: .875rem; color: var(--cx-muted); }
.cx-howto-step:not(:last-child)::after { content: "\ea6e"; font-family: remixicon; position: absolute; right: -15px; top: 50%; transform: translateY(-50%); z-index: 1; width: 16px; text-align: center; font-size: 18px; color: var(--cx-faint); }

.cx-section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.cx-section-title { font-size: 1.25rem; font-weight: 800; }
.cx-count { margin-left: 8px; display: inline-grid; place-items: center; min-width: 28px; height: 24px; padding: 0 8px; border-radius: 999px; font-size: .8125rem; font-weight: 800; color: var(--cx-primary-ink); background: var(--cx-primary-soft); vertical-align: 3px; }

.cx-models { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.cx-model { display: flex; flex-direction: column; overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.cx-model:hover { transform: translateY(-3px); border-color: #cdd6e6; box-shadow: var(--cx-shadow-lg); }
.cx-model-img { position: relative; display: block; height: 190px; background: linear-gradient(180deg, #f8fafc, #eef2f8); border-bottom: 1px solid var(--cx-line); overflow: hidden; }
.cx-model-img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .35s ease; }
.cx-model:hover .cx-model-img img { transform: scale(1.04); }
.cx-model-img .cx-pill { position: absolute; top: 12px; left: 12px; }
.cx-model-noimg { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--cx-faint); font-size: .8125rem; font-weight: 600; }
.cx-model-noimg i { font-size: 40px; color: #c3cddd; }
.cx-model-body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.cx-model-name { font-size: 1.0625rem; font-weight: 800; color: var(--cx-ink); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cx-model-name a { color: inherit !important; }
.cx-model-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .875rem; color: var(--cx-muted); }
.cx-model-facts span { display: inline-flex; align-items: center; gap: 6px; }
.cx-model-facts i { font-size: 16px; color: var(--cx-faint); }
.cx-model-facts b { color: var(--cx-ink); font-weight: 700; }
.cx-model-foot { margin-top: auto; padding-top: 4px; }

.cx-empty { text-align: center; padding: 56px 24px; }
.cx-empty-icon { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; color: var(--cx-primary); background: var(--cx-primary-soft); }
.cx-empty h3 { font-size: 1.25rem; margin-bottom: 6px; }
.cx-empty p { color: var(--cx-muted); max-width: 440px; margin: 0 auto !important; }

/* =================================================================== design page */
.cx-design-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.cx-design-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.cx-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 24px; }
.cx-fact { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.cx-fact-icon { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; font-size: 21px; }
.cx-fact-icon.is-blue { color: var(--cx-primary); background: var(--cx-primary-soft); }
.cx-fact-icon.is-green { color: var(--cx-success); background: var(--cx-success-soft); }
.cx-fact-icon.is-amber { color: var(--cx-warning); background: var(--cx-warning-soft); }
.cx-fact-icon.is-violet { color: var(--cx-violet); background: var(--cx-violet-soft); }
.cx-fact-icon.is-teal { color: var(--cx-teal); background: var(--cx-teal-soft); }
.cx-fact-icon.is-red { color: var(--cx-danger); background: var(--cx-danger-soft); }
.cx-fact-label { display: block; font-size: .8125rem; font-weight: 600; color: var(--cx-muted); }
.cx-fact-value { display: block; font-size: 1.25rem; font-weight: 800; color: var(--cx-ink); line-height: 1.25; }
.cx-fact-note { display: block; font-size: .8125rem; color: var(--cx-muted); }

.cx-detail { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 24px; align-items: start; }
.cx-detail-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.cx-detail-side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

/* gallery */
.cx-gallery-main { position: relative; display: block; width: 100%; height: 320px; padding: 0; border: 1px solid var(--cx-line); border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, #fbfcfe, #eff3f9); cursor: zoom-in; }
.cx-gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.cx-gallery-main:focus-visible { outline: none; box-shadow: var(--cx-ring); }
.cx-gallery-zoom { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; font-size: .8125rem; font-weight: 700; color: var(--cx-ink-2); background: rgba(255, 255, 255, .92); border: 1px solid var(--cx-line); box-shadow: var(--cx-shadow); }
.cx-gallery-count { position: absolute; left: 10px; top: 10px; }
.cx-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.cx-thumb { width: 64px; height: 64px; flex-shrink: 0; padding: 3px; border-radius: 11px; border: 2px solid var(--cx-line); background: #fff; cursor: pointer; transition: border-color .15s; }
.cx-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 7px; }
.cx-thumb:hover { border-color: #b9c3d3; }
.cx-thumb.is-active { border-color: var(--cx-primary); }
.cx-thumb:focus-visible { outline: none; box-shadow: var(--cx-ring); }
.cx-noimg { height: 220px; border: 1.5px dashed var(--cx-line-2); border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 20px; text-align: center; color: var(--cx-muted); font-size: .875rem; }
.cx-noimg i { font-size: 36px; color: #c3cddd; }

/* sizes (parameters) */
.cx-params { display: flex; flex-direction: column; gap: 10px; }
.cx-param { display: grid; grid-template-columns: minmax(0, 1fr) 190px; grid-template-areas: "label input" "hint input"; gap: 6px 16px; align-items: center; padding: 14px 16px; border: 1px solid var(--cx-line); border-radius: 14px; background: #fff; transition: border-color .15s, background-color .15s; }
.cx-param-label { grid-area: label; }
.cx-param-input { grid-area: input; }
.cx-param-hint { grid-area: hint; }
.cx-param:hover { border-color: var(--cx-line-2); }
.cx-param.is-changed { border-color: #9db8ff; background: #f7f9ff; }
.cx-param.is-invalid { border-color: #f1a3a3; background: #fff8f8; }
.cx-param-label { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cx-param-code { flex-shrink: 0; min-width: 36px; height: 30px; padding: 0 9px; border-radius: 8px; display: inline-grid; place-items: center; font-size: .875rem; font-weight: 800; color: var(--cx-primary-ink); background: var(--cx-primary-soft); }
.cx-param-text { min-width: 0; }
.cx-param-name { display: block; font-weight: 700; color: var(--cx-ink); line-height: 1.3; overflow-wrap: anywhere; }
.cx-param-note { display: block; font-size: .8125rem; color: var(--cx-muted); overflow-wrap: anywhere; }
.cx-param-input .cx-input { height: 46px; text-align: right; font-size: 1.0625rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.cx-param.is-changed .cx-input { border-color: var(--cx-primary); }
.cx-param.is-invalid .cx-input { border-color: var(--cx-danger); }
.cx-param-hint { display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; font-size: .8125rem; color: var(--cx-muted); }
.cx-param-range { display: inline-flex; align-items: center; gap: 6px; }
.cx-param-range i { font-size: 15px; color: var(--cx-faint); }
.cx-param-range b { color: var(--cx-ink-2); }
.cx-param-was { display: none; align-items: center; gap: 8px; color: var(--cx-primary-ink); font-weight: 600; }
.cx-param.is-changed .cx-param-was { display: inline-flex; }
.cx-param-undo { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--cx-primary); text-decoration: underline; cursor: pointer; }
.cx-param-error { display: none; width: 100%; color: var(--cx-danger); font-weight: 700; }
.cx-param.is-invalid .cx-param-error { display: block; }

.cx-savebar { position: sticky; bottom: 14px; z-index: 5; margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 12px 12px 18px; border-radius: 14px; border: 1px solid var(--cx-line); background: var(--cx-surface-2); transition: background-color .2s, border-color .2s, box-shadow .2s; }
.cx-savebar-text { display: flex; align-items: center; gap: 8px; font-size: .925rem; font-weight: 600; color: var(--cx-muted); }
.cx-savebar-text i { font-size: 19px; }
.cx-savebar-actions { display: flex; gap: 8px; margin-left: auto; }
.cx-savebar.is-dirty { background: #fff; border-color: #9db8ff; box-shadow: 0 16px 36px -18px rgba(47, 107, 255, .55); }
.cx-savebar.is-dirty .cx-savebar-text { color: var(--cx-primary-ink); }

/* get your file */
.cx-get { display: flex; flex-direction: column; gap: 16px; }
.cx-get-box { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 14px; border: 1px solid var(--cx-line); background: var(--cx-surface-2); }
.cx-get-icon { width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center; font-size: 26px; color: #fff; background: var(--cx-grad); box-shadow: 0 10px 20px -10px rgba(47, 107, 255, .9); }
.cx-get-icon.is-green { background: linear-gradient(135deg, #16a34a, #10b981); box-shadow: 0 10px 20px -10px rgba(22, 163, 74, .9); }
.cx-get-icon.is-amber { background: linear-gradient(135deg, #f59e0b, #f97316); box-shadow: 0 10px 20px -10px rgba(245, 158, 11, .9); }
.cx-get-icon.is-grey { background: #94a3b8; box-shadow: none; }
.cx-get-text { flex: 1; min-width: 0; }
.cx-get-text b { display: block; font-size: 1.0625rem; color: var(--cx-ink); }
.cx-get-text span { display: block; margin-top: 2px; font-size: .9rem; color: var(--cx-muted); }
.cx-get-note { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--cx-muted); }
.cx-get-note i { font-size: 17px; color: var(--cx-faint); }
.cx-price { font-size: 1.75rem; font-weight: 800; color: var(--cx-ink); letter-spacing: -.02em; }

/* more options: one highlighted box per option, coloured by --tile */
.cx-tiles { display: flex; flex-direction: column; gap: 12px; }
.cx-tile {
    --tile: var(--cx-primary); --tile-soft: #eff4ff; --tile-line: #cfdcff;
    position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px;
    padding: 16px 16px 16px 20px; border-radius: 16px; background: var(--tile-soft); border: 1.5px solid var(--tile-line);
    transition: transform .2s, box-shadow .2s;
}
.cx-tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--tile); }
.cx-tile:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -20px var(--tile); }
.cx-tile.is-violet { --tile: #7c3aed; --tile-soft: #f6f1ff; --tile-line: #e0d2fc; }
.cx-tile.is-blue { --tile: #2f6bff; --tile-soft: #eff4ff; --tile-line: #cfdcff; }
.cx-tile.is-teal { --tile: #0d9488; --tile-soft: #ebf9f7; --tile-line: #bce8e2; }
.cx-tile.is-off { --tile: #94a3b8; --tile-soft: var(--cx-surface-2); --tile-line: var(--cx-line); }
.cx-tile.is-off:hover { transform: none; box-shadow: none; }
.cx-tile-head { display: flex; align-items: center; gap: 12px; }
.cx-tile-icon { width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0; display: grid; place-items: center; font-size: 22px; color: #fff; background: var(--tile); box-shadow: 0 8px 16px -8px var(--tile); }
.cx-tile-text { min-width: 0; }
.cx-tile-text b { display: block; font-size: 1rem; color: var(--cx-ink); }
.cx-tile-text span { display: block; margin-top: 1px; font-size: .8125rem; color: var(--cx-muted); }
.cx-tile-btn { color: #fff !important; background: var(--tile); box-shadow: 0 8px 18px -12px var(--tile); }
.cx-tile-btn:hover { filter: brightness(.92); }
.cx-tile-note { display: flex; align-items: center; gap: 6px; margin-top: -4px; font-size: .8125rem; font-weight: 600; color: var(--cx-ink-2); }
.cx-tile-note i { font-size: 15px; color: var(--tile); }

/* plain data list (measurements) */
.cx-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .95rem; }
.cx-table th { padding: 12px 18px; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--cx-muted); background: var(--cx-surface-2); border-bottom: 1px solid var(--cx-line); text-align: left; }
.cx-table td { padding: 14px 18px; border-bottom: 1px solid var(--cx-line); color: var(--cx-ink-2); font-weight: 600; }
.cx-table tr:last-child td { border-bottom: 0; }
.cx-table tbody tr:hover td { background: #fafbff; }
.cx-table .is-num { text-align: right; font-variant-numeric: tabular-nums; }
.cx-value { display: inline-block; min-width: 72px; padding: 6px 12px; border-radius: 9px; text-align: right; font-weight: 800; color: var(--cx-primary-ink); background: var(--cx-primary-soft); }

/* ================================================================ dialogs & busy */
.cx-modal .modal-content { border: 0; border-radius: 20px; box-shadow: var(--cx-shadow-lg); font-family: var(--cx-font); color: var(--cx-ink); }
.cx-modal .modal-body { padding: 28px; }
.cx-modal-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; font-size: 32px; color: var(--cx-primary); background: var(--cx-primary-soft); }
.cx-modal-icon.is-success { color: var(--cx-success-btn); background: var(--cx-success-soft); }
.cx-modal-icon.is-warning { color: #d97706; background: var(--cx-warning-soft); }
.cx-modal-icon.is-danger { color: var(--cx-danger); background: var(--cx-danger-soft); }
.cx-modal-title { font-size: 1.25rem; font-weight: 800; text-align: center; margin-bottom: 8px !important; }
.cx-modal-text { text-align: center; color: var(--cx-muted); font-size: .95rem; margin-bottom: 24px !important; }
.cx-modal-actions { display: flex; gap: 10px; }
.cx-modal-actions .cx-btn { flex: 1; }
.cx-modal-x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border: 0; border-radius: 10px; display: grid; place-items: center; font-size: 21px; color: var(--cx-muted); background: transparent; cursor: pointer; z-index: 2; }
.cx-modal-x:hover { color: var(--cx-ink); background: var(--cx-surface-2); }
.modal-backdrop.show { opacity: .45; }
.modal-backdrop { background-color: #0f172a; }

.cx-pay-steps { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.cx-pay-steps li { display: flex; align-items: flex-start; gap: 12px; font-size: .925rem; color: var(--cx-ink-2); }
.cx-pay-steps li b { color: var(--cx-ink); }
.cx-pay-steps .cx-step-no { width: 26px; height: 26px; font-size: .8125rem; box-shadow: none; }
.cx-qr { display: block; width: 100%; max-width: 230px; margin: 0 auto 18px; padding: 10px; border: 1px solid var(--cx-line); border-radius: 16px; background: #fff; box-shadow: var(--cx-shadow); }
.cx-qr img { display: block; width: 100%; height: auto; border-radius: 8px; }
.cx-amount { margin-bottom: 18px; padding: 14px; border-radius: 14px; text-align: center; background: var(--cx-primary-soft); }
.cx-amount span { display: block; font-size: .8125rem; font-weight: 700; color: var(--cx-primary-ink); }
.cx-amount b { display: block; font-size: 1.875rem; font-weight: 800; color: var(--cx-ink); letter-spacing: -.02em; }

/* image viewer: light, like the rest of the site */
.cx-lightbox .modal-content { min-height: 100vh; border: 0; border-radius: 0; background: rgba(248, 250, 252, .97); font-family: var(--cx-font); }
.cx-lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--cx-line); background: #fff; }
.cx-lightbox-bar b { font-size: .95rem; }
.cx-lightbox-stage { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; padding: 20px 70px; min-height: 0; }
.cx-lightbox-stage img { max-width: 100%; max-height: calc(100vh - 190px); object-fit: contain; border-radius: 12px; background: #fff; box-shadow: var(--cx-shadow-lg); }
.cx-lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--cx-line); background: #fff; display: grid; place-items: center; font-size: 26px; color: var(--cx-ink-2); box-shadow: var(--cx-shadow); cursor: pointer; }
.cx-lightbox-nav:hover { color: var(--cx-primary); border-color: #b9c3d3; }
.cx-lightbox-nav.is-prev { left: 14px; }
.cx-lightbox-nav.is-next { right: 14px; }
.cx-lightbox-thumbs { display: flex; justify-content: center; gap: 8px; padding: 12px 16px 18px; overflow-x: auto; }

/* "Please wait" overlay: the page dims like behind a dialog (no white flash), the card fades in once and the bar
   fills up with the real progress of the file (never slides in and out) */
.cx-busy { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(15, 23, 42, .45); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s; }
.cx-busy.is-on { opacity: 1; visibility: visible; transition: opacity .2s ease; }
.cx-busy-card { width: 100%; max-width: 420px; padding: 32px 28px 26px; text-align: center; background: #fff; border: 1px solid var(--cx-line); border-radius: 22px; box-shadow: var(--cx-shadow-lg); transform: translateY(8px); transition: transform .2s ease; }
.cx-busy.is-on .cx-busy-card { transform: none; }
.cx-busy.is-instant, .cx-busy.is-instant .cx-busy-card { transition: none; } /* takes the place of a dialog: the page stays as dim as it was */
.cx-spinner { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; border: 5px solid var(--cx-primary-soft); border-top-color: var(--cx-primary); animation: cx-spin .9s linear infinite; }
.cx-busy-done { display: none; width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%; place-items: center; font-size: 32px; color: var(--cx-success-btn); background: var(--cx-success-soft); }
.cx-busy.is-done .cx-spinner { display: none; }
.cx-busy.is-done .cx-busy-done { display: grid; }
.cx-busy-title { font-size: 1.1875rem; font-weight: 800; margin-bottom: 6px !important; }
.cx-busy-text { font-size: .925rem; color: var(--cx-muted); min-height: 1.5em; }
.cx-busy-progress { display: none; margin-top: 20px; text-align: left; }
.cx-busy.is-tracking .cx-busy-progress { display: block; }
.cx-busy-bar { height: 10px; border-radius: 999px; background: var(--cx-primary-soft); overflow: hidden; }
.cx-busy-bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--cx-grad); transition: width .25s linear; }
.cx-busy.is-done .cx-busy-bar span { background: var(--cx-success-btn); }
.cx-busy-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: .875rem; color: var(--cx-muted); }
.cx-busy-meta b { font-size: 1.375rem; font-weight: 800; color: var(--cx-ink); font-variant-numeric: tabular-nums; }
.cx-busy-keep { margin: 12px 0 0 !important; font-size: .8125rem; color: var(--cx-faint); text-align: center; }
.cx-busy.is-done .cx-busy-keep { visibility: hidden; }
.cx-busy-later { display: none; margin-top: 16px; }
.cx-busy.is-slow .cx-busy-later { display: block; }
@keyframes cx-spin { to { transform: rotate(360deg); } }

/* ========================================================================= login */
.cx-auth { flex: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.cx-auth-side {
    position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 44px 56px;
    background:
        radial-gradient(560px 380px at 0% 0%, rgba(47, 107, 255, .16), transparent 65%),
        radial-gradient(520px 420px at 100% 100%, rgba(106, 92, 255, .14), transparent 65%),
        linear-gradient(180deg, #f6f8ff 0%, #eef3ff 100%);
    border-right: 1px solid var(--cx-line);
}
.cx-auth-side::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(47, 107, 255, .14) 1.2px, transparent 1.2px); background-size: 26px 26px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); pointer-events: none; }
.cx-auth-side > * { position: relative; }
.cx-auth-side img.cx-auth-logo { height: 42px; width: auto; align-self: flex-start; }
.cx-auth-pitch h1 { font-size: 2.5rem; line-height: 1.12; letter-spacing: -.03em; max-width: 460px; }
.cx-auth-pitch h1 em { font-style: normal; background: var(--cx-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cx-auth-pitch p { margin-top: 14px !important; max-width: 440px; font-size: 1.0625rem; color: var(--cx-ink-2); }
.cx-auth-points { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.cx-auth-points li { display: flex; align-items: center; gap: 14px; font-weight: 600; color: var(--cx-ink-2); }
.cx-auth-points i { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; font-size: 20px; color: var(--cx-primary); background: #fff; border: 1px solid #dbe4fb; box-shadow: var(--cx-shadow); }
.cx-auth-foot { font-size: .8125rem; color: var(--cx-muted); }
.cx-auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: #fff; }
.cx-auth-box { width: 100%; max-width: 420px; }
.cx-auth-mobile-logo { display: none; margin-bottom: 28px; }
.cx-auth-mobile-logo img { height: 40px; width: auto; }
.cx-auth-box h2 { font-size: 1.875rem; }
.cx-auth-box .cx-sub { margin-bottom: 26px !important; }
.cx-auth-help { margin-top: 22px !important; padding-top: 20px; border-top: 1px solid var(--cx-line); font-size: .875rem; color: var(--cx-muted); display: flex; gap: 10px; }
.cx-auth-help i { font-size: 19px; color: var(--cx-faint); flex-shrink: 0; }

/* =================================================================== responsive */
@media (max-width: 1100px) {
    .cx-detail { grid-template-columns: minmax(0, 1fr) 360px; }
}
@media (max-width: 991px) {
    .cx-detail { grid-template-columns: minmax(0, 1fr); }
    .cx-detail-side { display: contents; }
    .cx-side-pics { order: -1; }
    .cx-side-more { order: 1; }
    .cx-auth { grid-template-columns: minmax(0, 1fr); }
    .cx-auth-side { display: none; }
    .cx-auth-mobile-logo { display: block; }
}
@media (max-width: 767px) {
    .cx-header-inner { padding: 0 14px; gap: 10px; }
    .cx-logo img { height: 30px; }
    .cx-nav { margin-left: 4px; padding-left: 10px; }
    .cx-nav a { padding: 0 10px; }
    .cx-user-name { display: none; }
    .cx-user { padding: 0 8px 0 5px; }
    .cx-page { padding: 20px 16px 44px; }
    .cx-title { font-size: 1.4375rem; }
    .cx-howto { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .cx-howto-step { padding: 14px 16px; }
    .cx-howto-step::after { display: none; }
    .cx-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .cx-fact { padding: 14px; }
    .cx-fact-icon { display: none; }
    .cx-fact-value { font-size: 1.125rem; }
    .cx-models { grid-template-columns: minmax(0, 1fr); }
    .cx-card-head { padding: 18px 16px 0; }
    .cx-card-body { padding: 16px; }
    .cx-param { grid-template-columns: minmax(0, 1fr); grid-template-areas: "label" "input" "hint"; padding: 14px; }
    .cx-param-input .cx-input { text-align: left; }
    .cx-gallery-main { height: 250px; }
    .cx-get-box { flex-direction: column; align-items: flex-start; }
    .cx-savebar { padding: 12px; }
    .cx-savebar-actions { width: 100%; }
    .cx-savebar-actions .cx-btn { flex: 1; }
    .cx-lightbox-stage { padding: 14px; }
    .cx-lightbox-nav { width: 40px; height: 40px; font-size: 22px; }
    .cx-modal .modal-body { padding: 24px 20px; }
    .cx-table th, .cx-table td { padding: 12px 14px; }
}
@media (max-width: 360px) {
    .cx-nav a span { display: none; }
}
@media print {
    .cx-header, .cx-footer, .cx-no-print { display: none !important; }
    body.cx-body { background: #fff; }
    .cx-card { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
    .cx-body *, .cx-body *::before, .cx-body *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
