:root {
    --wix-navy: #0b1f3a;
    --wix-navy-2: #102a4c;
    --wix-deep: #1b4f8a;
    --wix-blue: #2563eb;
    --wix-soft: #e8f0fe;
    --wix-canvas: #f3f6fb;
    --wix-white: #ffffff;
    --wix-gray: #64748b;
    --wix-dark: #0f172a;
    --wix-border: #e2e8f0;
    --wix-sidebar: 272px;
    --wix-sidebar-collapsed: 76px;
    --wix-topbar: 64px;
    --wix-radius: 14px;
    --wix-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    --bs-primary: #1b4f8a;
    --bs-primary-rgb: 27, 79, 138;
    --bs-link-color: #1b4f8a;
    --bs-body-font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

[data-theme="dark"] {
    --wix-navy: #07111f;
    --wix-navy-2: #0c1a30;
    --wix-canvas: #0b1220;
    --wix-white: #111827;
    --wix-dark: #e5e7eb;
    --wix-gray: #94a3b8;
    --wix-border: #1f2a44;
    --wix-soft: #15233b;
    --wix-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --bs-body-bg: #0b1220;
    --bs-body-color: #e5e7eb;
    --bs-border-color: #1f2a44;
    --bs-secondary-color: #94a3b8;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body.app-body {
    background: var(--wix-canvas);
    color: var(--wix-dark);
    min-height: 100vh;
    font-size: 14px;
}
body.app-body h1,
body.app-body h2,
body.app-body h3,
body.app-body h4,
body.app-body h5,
body.app-body h6,
body.app-body .h1,
body.app-body .h2,
body.app-body .h3,
body.app-body .h4,
body.app-body .h5,
body.app-body .h6,
body.app-body .page-title,
body.app-body .card-title,
body.app-body .modal-title,
body.app-body .offcanvas-title,
body.app-body .stat-card .value {
    font-size: 16px;
    line-height: 1.35;
}
body.app-body .fs-2,
body.app-body .fs-3,
body.app-body .fs-4,
body.app-body .fs-5 {
    font-size: 16px !important;
}
body.app-body .fs-6,
body.app-body .small,
body.app-body small,
body.app-body .btn,
body.app-body .form-control,
body.app-body .form-select,
body.app-body .form-label,
body.app-body .form-check-label,
body.app-body .nav-link-main,
body.app-body .nav-sub a,
body.app-body .dropdown-item,
body.app-body .alert,
body.app-body .breadcrumb,
body.app-body .table,
body.app-body .table-wix td,
body.app-body .table-wix th,
body.app-body .table-wix thead th {
    font-size: 14px;
}

a { color: var(--wix-deep); }
.btn-primary {
    background: var(--wix-deep);
    border-color: var(--wix-deep);
    border-radius: 10px;
    font-weight: 600;
    padding: 0.55rem 1rem;
}
.btn-primary:hover { background: #163f6e; border-color: #163f6e; }
.btn-outline-primary { border-radius: 10px; font-weight: 600; color: var(--wix-deep); border-color: var(--wix-deep); }
.btn-light, .btn-outline-secondary, .btn-secondary { border-radius: 10px; }
.form-control, .form-select {
    border-radius: 10px;
    border-color: var(--wix-border);
    padding: 0.62rem 0.85rem;
    background: var(--wix-white);
    color: inherit;
}
.form-control:focus, .form-select:focus {
    border-color: var(--wix-blue);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.app-shell { display: flex; min-height: 100vh; max-width: 100%; overflow-x: hidden; }
.sidebar {
    width: var(--wix-sidebar);
    background: linear-gradient(180deg, var(--wix-navy) 0%, #081628 100%);
    color: #dbe7f5;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: width 0.2s ease, transform 0.2s ease;
}
.sidebar-brand {
    height: var(--wix-topbar);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fff;
    text-decoration: none;
}
.brand-mark {
    width: 34px; height: 34px; border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6, #1b4f8a);
    display: grid; place-items: center; color: #fff; font-weight: 800;
    box-shadow: 0 8px 16px rgba(37,99,235,0.35);
}
.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 8px 16px rgba(11, 31, 58, 0.28);
    background: #0b1f3a;
}
.app-collapsed .brand-logo { width: 32px; height: 32px; }
.sidebar-nav { overflow-y: auto; padding: 0.75rem 0.75rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.nav-push { margin-top: auto; padding-top: 0.75rem; border-top: 1px solid rgba(255,255,255,0.08); }
.nav-section { margin-bottom: 0.25rem; }
.nav-link-main, .nav-sub a {
    display: flex; align-items: center; gap: 10px;
    color: #c5d4e8; text-decoration: none; border-radius: 10px;
    padding: 0.55rem 0.75rem; font-size: 14px;
}
.nav-link-main:hover, .nav-sub a:hover, .nav-link-main.active, .nav-sub a.active {
    background: rgba(255,255,255,0.08); color: #fff;
}
.nav-link-main i { width: 18px; text-align: center; }
.nav-sub { padding: 0.15rem 0 0.35rem 1.7rem; display: none; }
.nav-section.open .nav-sub { display: block; }
.nav-caret { margin-left: auto; font-size: 0.7rem; opacity: 0.7; }
.main-wrap {
    margin-left: var(--wix-sidebar);
    flex: 1;
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: var(--wix-topbar);
    overflow-x: hidden;
}
.page-content { flex: 1; }
.app-footer, .site-footer {
    background: var(--wix-white);
    border-top: 1px solid var(--wix-border);
    color: var(--wix-gray);
    font-size: 0.84rem;
}
.site-footer-main {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem 2.5rem;
    justify-content: space-between;
    padding: 1.6rem 1.5rem 1.2rem;
}
.site-footer-brand {
    display: flex;
    gap: 0.85rem;
    max-width: 320px;
}
.site-footer-brand img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
}
.site-footer-name { color: var(--wix-dark); font-weight: 800; letter-spacing: 0.04em; }
.site-footer-brand p { margin: 0.25rem 0 0; line-height: 1.45; }
.site-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 1.25rem 2rem;
    flex: 1;
    width: 100%;
}
.site-footer-grid h6 {
    color: var(--wix-dark);
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.65rem;
}
.site-footer-grid a, .site-footer-grid span {
    display: block;
    color: var(--wix-gray);
    text-decoration: none;
    margin-bottom: 0.35rem;
}
.site-footer-grid a:hover { color: var(--wix-deep); }
.site-footer-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.85rem 1.5rem;
    border-top: 1px solid var(--wix-border);
    background: var(--wix-canvas);
}
.site-footer-bar strong { color: var(--wix-deep); }
.guest-shell { min-height: 100vh; display: flex; flex-direction: column; }
.guest-shell > *:first-child { flex: 1; }
.portal-shell { min-height: 100vh; display: flex; flex-direction: column; }
.portal-shell main { flex: 1; }
.topbar {
    height: var(--wix-topbar);
    background: var(--wix-white);
    border-bottom: 1px solid var(--wix-border);
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 0 1.25rem;
    position: fixed;
    top: 0;
    left: var(--wix-sidebar);
    right: 0;
    z-index: 1030;
    min-width: 0;
    width: auto;
    max-width: none;
}
.topbar-actions {
    min-width: 0;
    flex: 1 1 0;
    max-width: 100%;
    justify-content: flex-end;
}
.topbar-search { min-width: 0; }
.topbar-company {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    max-width: 220px;
}
.topbar-company .form-select {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.topbar-actions > .btn,
.topbar-actions > .dropdown,
.topbar-actions > form[data-theme-form] { flex-shrink: 0; }
.topbar-notify-menu { width: 320px; max-width: calc(100vw - 1.25rem); }
.topbar-company-label {
    min-width: 0;
    max-width: 240px;
}
.sidebar-backdrop {
    display: none;
}
body.sidebar-open .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(11, 31, 58, 0.45);
    z-index: 1035;
}
.topbar-notify-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--wix-border);
}
.topbar-notify-menu [data-notify-item] { white-space: normal; }
.notify-badge {
    min-width: 1.15rem;
    padding: 0.2em 0.4em;
    font-size: 0.65rem;
    line-height: 1;
    transition: opacity 0.18s ease, transform 0.18s ease;
}
.notify-badge.is-off {
    opacity: 0;
    transform: scale(0.55);
    pointer-events: none;
}
.page-content { padding: 1.35rem; min-width: 0; width: 100%; max-width: 100%; overflow-x: auto; }
.page-content canvas { max-width: 100% !important; }
.card-wix {
    background: var(--wix-white);
    border: 1px solid var(--wix-border);
    border-radius: var(--wix-radius);
    box-shadow: var(--wix-shadow);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
}
.stat-card {
    background: var(--wix-white);
    border: 1px solid var(--wix-border);
    border-radius: var(--wix-radius);
    padding: 1.1rem 1.2rem;
    box-shadow: var(--wix-shadow);
    height: 100%;
}
.stat-card .label { color: var(--wix-gray); font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.stat-card .value { font-size: 16px; font-weight: 800; margin-top: 0.2rem; }
.stat-card .icon-wrap {
    width: 42px; height: 42px; border-radius: 12px;
    display: grid; place-items: center; background: var(--wix-soft); color: var(--wix-deep);
}
.table-wix,
.page-content .table {
    margin: 0;
    width: 100%;
}
.table-wix thead th {
    font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--wix-gray); font-weight: 700; border-bottom-width: 1px; background: transparent;
}
.table-wix td, .table-wix th { vertical-align: middle; padding: 0.8rem 1rem; border-color: var(--wix-border); color: inherit; }
.badge-soft { border-radius: 999px; padding: 0.35rem 0.65rem; font-weight: 600; font-size: 0.75rem; background: var(--wix-soft); color: var(--wix-deep); }
.alert-modules {
    border: 1px solid var(--wix-border);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    background: var(--wix-canvas);
}
.alert-module-option {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--wix-border);
    border-radius: 10px;
    background: var(--wix-white);
    font-size: 14px;
    cursor: pointer;
}
.alert-module-option input { margin: 0; }
.page-title { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; margin: 0; white-space: nowrap; }
.breadcrumb { background: transparent; padding: 0; margin-bottom: 0.35rem; }
.page-hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    width: 100%;
    max-width: 100%;
}
.page-hero-identity {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    flex: 1 1 auto;
}
.page-hero-line {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.4rem 0.7rem;
    min-width: 0;
    flex: 1 1 auto;
}
.page-hero-brand {
    font-size: 14px;
    font-weight: 600;
    color: var(--wix-gray);
    white-space: nowrap;
}
.page-hero-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #cbd5e1;
    flex: 0 0 auto;
}
.page-hero-sub {
    margin: 0;
    font-size: 14px;
    color: var(--wix-gray);
    line-height: 1.35;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 0 0 auto;
}
.min-w-0 { min-width: 0; }
.page-hero-branded {
    background: linear-gradient(135deg, #0b1f3a 0%, #163f6e 58%, #1b4f8a 100%);
    color: #fff;
    border-radius: 18px;
    padding: 1.15rem 1.4rem;
    box-shadow: 0 16px 40px rgba(11, 31, 58, 0.18);
}
.page-hero-logo {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    object-fit: cover;
    background: #fff;
    padding: 3px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
    flex: 0 0 auto;
}
.page-hero-branded .page-title { color: #fff; }
.page-hero-branded .page-hero-brand,
.page-hero-branded .page-hero-sub { color: rgba(255,255,255,.72); }
.page-hero-branded .page-hero-sep { background: rgba(255,255,255,.4); }
.page-hero-branded .text-secondary { color: rgba(255,255,255,.72) !important; }
.page-hero-branded .btn-primary {
    background: #fff;
    color: #0b1f3a;
    border-color: #fff;
}
.page-hero-branded .btn-primary:hover { background: #e8f0fe; border-color: #e8f0fe; color: #0b1f3a; }
.page-hero-branded .btn-light {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.18);
    color: #fff;
}
.page-hero-branded .btn-light:hover { background: rgba(255,255,255,.2); color: #fff; }
.page-hero-branded .btn-outline-primary {
    color: #fff;
    border-color: rgba(255,255,255,.45);
}
.page-hero-branded .btn-outline-primary:hover { background: #fff; color: #0b1f3a; }
.page-hero-branded .btn-outline-danger {
    color: #fecaca;
    border-color: rgba(254, 202, 202, 0.5);
}
.org-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
    background: #fff;
    border: 1px solid var(--wix-border);
}
.org-logo-fallback {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--wix-soft);
    color: var(--wix-deep);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}
.invoice-letterhead {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.25rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.35rem;
    border-bottom: 3px solid var(--wix-navy);
}
.invoice-letterhead-brand {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    min-width: 0;
}
.invoice-letterhead-logo {
    height: 64px;
    width: 64px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--wix-border);
    border-radius: 14px;
    padding: 6px;
}
.invoice-letterhead h2 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 0.2rem;
    color: var(--wix-navy);
}
.invoice-letterhead-meta {
    text-align: right;
}
.invoice-letterhead-meta .label {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--wix-gray);
    font-weight: 700;
}
.invoice-letterhead-meta .number {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--wix-navy);
    line-height: 1.15;
}
.search-inline { min-width: 240px; background: var(--wix-canvas); }
.avatar-sm {
    width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center; background: var(--wix-soft); color: var(--wix-deep);
    font-weight: 700; font-size: 0.75rem;
}
img.avatar-sm, .avatar-img {
    object-fit: cover;
    padding: 0;
    background: #fff;
    border: 1px solid var(--wix-border);
}
.kanban-board { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 1rem; }
.kanban-col {
    min-width: 280px; max-width: 280px; background: var(--wix-canvas);
    border-radius: 14px; padding: 0.8rem; border: 1px solid var(--wix-border);
}
.kanban-card { cursor: grab; margin-bottom: 0.7rem; }
.empty-state { padding: 3rem 1rem; text-align: center; color: var(--wix-gray); }
.chat-shell { height: calc(100vh - 130px); min-height: 480px; }
.chat-list { overflow-y: auto; border-right: 1px solid var(--wix-border); }
.chat-thread { display: flex; flex-direction: column; height: 100%; }
.chat-messages { flex: 1; overflow-y: auto; padding: 1rem; background: var(--wix-canvas); }
.bubble { max-width: 75%; padding: 0.7rem 0.9rem; border-radius: 14px; margin-bottom: 0.6rem; }
.bubble-in { background: var(--wix-white); border: 1px solid var(--wix-border); }
.bubble-out { background: var(--wix-deep); color: #fff; margin-left: auto; }
.widget-launcher {
    position: fixed; right: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%;
    background: var(--wix-deep); color: #fff; border: 0; box-shadow: 0 12px 30px rgba(27,79,138,0.4);
}
.app-collapsed .sidebar { width: var(--wix-sidebar-collapsed); }
.app-collapsed .main-wrap { margin-left: var(--wix-sidebar-collapsed); }
.app-collapsed .topbar { left: var(--wix-sidebar-collapsed); }
.app-collapsed .sidebar .brand-text, .app-collapsed .nav-link-main span, .app-collapsed .nav-caret, .app-collapsed .nav-sub { display: none !important; }
.app-collapsed .nav-link-main { justify-content: center; }
.guest-body { background: var(--wix-canvas); min-height: 100vh; color: var(--wix-dark); overflow-x: hidden; }
.guest-body .site-footer, .guest-body .site-footer-bar { background: #fff; }
.login-split { min-height: calc(100vh - 52px); display: grid; grid-template-columns: 1.1fr 0.9fr; }
.login-brand {
    background:
        radial-gradient(900px 480px at -10% -20%, rgba(37,99,235,.5), transparent 50%),
        linear-gradient(165deg, #102a4c 0%, #0b1f3a 58%, #07111f 100%);
    color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between;
}
.login-form-wrap { display: grid; place-items: center; padding: 2rem; background: #f5f7fb; }
.login-card { width: 100%; max-width: 420px; }

.auth-screen {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    min-height: calc(100dvh - 3.5rem);
    flex: 1;
    width: 100%;
    max-width: 100%;
    font-size: 14px;
}
.auth-screen h1,
.auth-screen h2,
.auth-screen .auth-card-head h2,
.auth-screen .site-wordmark {
    font-size: 16px;
    line-height: 1.35;
}
.auth-screen p,
.auth-screen li,
.auth-screen .form-label,
.auth-screen .form-check-label,
.auth-screen .auth-links,
.auth-screen .btn,
.auth-screen .alert {
    font-size: 14px;
}
.auth-visual {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 2.6rem 3rem 2.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        radial-gradient(900px 520px at -8% -18%, rgba(56,189,248,.28), transparent 48%),
        radial-gradient(700px 420px at 110% 90%, rgba(37,99,235,.38), transparent 52%),
        linear-gradient(165deg, #123057 0%, #0b1f3a 52%, #07111f 100%);
}
.auth-visual-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: .22;
}
.auth-visual-brand,
.auth-visual-copy,
.auth-visual-foot { position: relative; z-index: 1; }
.auth-visual-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: #fff;
    text-decoration: none;
    width: fit-content;
}
.auth-visual-brand img {
    width: 36px; height: 36px;
    border-radius: 8px;
    object-fit: contain;
    display: block;
}
.auth-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: .32rem .72rem;
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.16);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,.82);
}
.auth-visual, .auth-panel { min-width: 0; max-width: 100%; }
.auth-visual-copy { max-width: min(34rem, 100%); margin-top: 3.2rem; }
.auth-visual-copy h1 {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.35;
    margin: 0 0 1rem;
    overflow-wrap: break-word;
}
.auth-visual-copy p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255,255,255,.76);
    max-width: 32rem;
}
.auth-points {
    list-style: none;
    margin: 1.6rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.7rem;
}
.auth-points li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: rgba(255,255,255,.9);
    font-weight: 500;
}
.auth-points i {
    color: #7dd3fc;
    font-size: 1.15rem;
    margin-top: .08rem;
}
.auth-visual-foot {
    margin-top: 2.5rem;
    font-size: .82rem;
    letter-spacing: .06em;
    color: rgba(255,255,255,.55);
    text-transform: uppercase;
    font-weight: 600;
}
.auth-panel {
    display: grid;
    place-items: center;
    padding: 2.4rem 1.5rem;
    background:
        radial-gradient(720px 320px at 100% 0%, rgba(232,240,254,.95), transparent 55%),
        #f4f7fb;
}
.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid rgba(226,232,240,.95);
    border-radius: 24px;
    padding: 2rem 1.8rem 1.55rem;
    box-shadow: 0 24px 60px rgba(11, 31, 58, 0.1);
}
.auth-card-head { margin-bottom: 1.45rem; }
.auth-card-head h2 {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0 0 .35rem;
    color: var(--wix-navy);
}
.auth-card-head p { margin: 0; color: var(--wix-gray); }
.auth-field { margin-bottom: 1rem; }
.auth-field .form-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--wix-navy);
    margin-bottom: .4rem;
}
.auth-field .form-label a { color: var(--wix-deep); text-decoration: none; font-size: 14px; }
.auth-field .form-label a:hover { text-decoration: underline; }
.auth-input {
    display: flex;
    align-items: center;
    gap: .55rem;
    background: #f8fafc;
    border: 1px solid var(--wix-border);
    border-radius: 12px;
    padding: 0 .85rem;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.auth-input > i { color: #94a3b8; font-size: 1.05rem; }
.auth-input .form-control {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: .82rem 0;
    border-radius: 0;
}
.auth-input .form-control:focus { box-shadow: none; }
.auth-input:focus-within {
    background: #fff;
    border-color: var(--wix-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.auth-eye {
    border: 0;
    background: transparent;
    color: #94a3b8;
    padding: .2rem;
    line-height: 1;
    border-radius: 8px;
}
.auth-eye:hover { color: var(--wix-navy); }
.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .82rem 1rem;
    border-radius: 12px;
    font-size: 14px;
}
.auth-card .form-check { margin-top: .15rem; }
.auth-links {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem 1rem;
    margin-top: 1.35rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--wix-border);
    font-size: 14px;
}
.auth-links a {
    color: var(--wix-gray);
    text-decoration: none;
    font-weight: 600;
}
.auth-links a:hover { color: var(--wix-deep); }
.tabs-wix .nav-link { border: 0; color: var(--wix-gray); font-weight: 600; }
.tabs-wix .nav-link.active { color: var(--wix-deep); border-bottom: 2px solid var(--wix-deep); }
.filter-chip { border-radius: 999px; }
.dropdown-menu { border-radius: 12px; border-color: var(--wix-border); box-shadow: var(--wix-shadow); }
.mobile-toggle { display: none; }

@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-110%); width: min(86vw, 300px); }
    .sidebar.open { transform: none; }
    .main-wrap, .app-collapsed .main-wrap { margin-left: 0; }
    .topbar,
    .app-collapsed .topbar {
        left: 0;
        right: 0;
        width: 100%;
        padding: 0 0.6rem;
        gap: 0.4rem;
    }
    .topbar .btn { padding: 0.32rem 0.48rem; line-height: 1; flex-shrink: 0; }
    .topbar-search { max-width: 180px !important; flex: 1 1 140px; }
    .topbar-company { flex: 1 1 0; width: 0; max-width: none; }
    .topbar-company .form-select {
        font-size: 13px;
        padding: 0.28rem 1.5rem 0.28rem 0.45rem;
    }
    .topbar-actions { gap: 0.3rem !important; }
    .topbar-notify-menu { width: min(320px, calc(100vw - 0.75rem)); }
    .mobile-toggle { display: inline-flex; }
    .login-split, .auth-screen { grid-template-columns: 1fr; min-height: 0; }
    .login-brand { min-height: 220px; padding: 1.5rem; }
    .auth-visual { min-height: auto; padding: 1.2rem 1.15rem 1.25rem; }
    .auth-visual-copy { margin-top: 1rem; }
    .auth-visual-copy h1 { font-size: 16px; }
    .auth-visual-copy p { font-size: 14px; }
    .auth-points { display: none; }
    .auth-visual-foot { display: none; }
    .auth-panel { padding: 1.05rem .9rem 1.75rem; align-items: start; }
    .auth-card { padding: 1.35rem 1.1rem 1.2rem; border-radius: 20px; width: 100%; max-width: 440px; margin: 0 auto; }
    .page-hero-branded { padding: 1rem; }
    .page-hero-identity { width: 100%; }
    .page-hero-actions { width: 100%; }
    .page-hero-actions .btn { flex: 1 1 auto; justify-content: center; }
    .auth-field .form-label.d-flex { flex-wrap: wrap; gap: .2rem .75rem; }
    .search-inline { min-width: 0; width: 100%; }
    .chat-shell { height: auto; }
    .table-responsive-card table { min-width: 720px; }
    .page-hero-line { flex-wrap: wrap; }
    .page-hero-sub, .page-title { white-space: normal; }
    .app-footer-inner, .site-footer-main, .site-footer-bar { flex-direction: column; align-items: flex-start; }
    .guest-body .site-footer-bar { align-items: center; }
    .site-footer-grid { grid-template-columns: 1fr 1fr; width: 100%; }
}

@media (max-width: 575.98px) {
    .topbar-help { display: none !important; }
    .topbar-company { flex: 1 1 0; width: 0; max-width: none; }
    .topbar .avatar-sm { width: 28px; height: 28px; }
    .auth-links {
        flex-direction: column;
        align-items: center;
        gap: 0.65rem;
        text-align: center;
    }
    .portal-stack-form .btn { width: 100%; }
    .portal-app .page-content { padding: 1rem 0.85rem; }
    .help-card { min-height: 0; }
}

@media print {
    .sidebar, .topbar, .no-print, .app-footer, .site-footer { display: none !important; }
    .main-wrap { margin: 0 !important; padding-top: 0 !important; }
    .page-content { padding: 0; }
}

[data-theme="dark"] .form-control, [data-theme="dark"] .form-select,
[data-theme="dark"] .dropdown-menu, [data-theme="dark"] .modal-content {
    background: #111827; color: #e5e7eb; border-color: var(--wix-border);
}
[data-theme="dark"] .table { --bs-table-bg: transparent; --bs-table-color: #e5e7eb; }
[data-theme="dark"] .login-form-wrap { background: #0b1220; }
[data-theme="dark"] .invoice-letterhead { border-bottom-color: #3b82f6; }
[data-theme="dark"] .invoice-letterhead h2,
[data-theme="dark"] .invoice-letterhead-meta .number { color: #e5e7eb; }

.smtp-log {
    background: #0b1f3a;
    color: #dbe7f5;
    border-radius: 12px;
    padding: 1rem;
    font-size: 0.78rem;
    white-space: pre-wrap;
    max-height: 320px;
    overflow: auto;
}

.chat-pro { height: calc(100vh - 220px); min-height: 560px; }
.chat-pro-grid { display: grid; grid-template-columns: 320px 1fr; height: 100%; }
.chat-pro-list { border-right: 1px solid var(--wix-border); display: flex; flex-direction: column; min-width: 0; }
.chat-pro-list-head { padding: 1rem; border-bottom: 1px solid var(--wix-border); }
.chat-pro-tabs { display: flex; gap: 0.4rem; margin: 0.75rem 0; }
.chat-pro-tabs button {
    border: 0; background: var(--wix-canvas); color: var(--wix-gray);
    border-radius: 999px; padding: 0.28rem 0.75rem; font-size: 0.8rem; font-weight: 600;
}
.chat-pro-tabs button.is-on { background: var(--wix-deep); color: #fff; }
.chat-pro-list-body { overflow-y: auto; flex: 1; }
.chat-pro-item {
    width: 100%; display: flex; gap: 0.75rem; align-items: center;
    border: 0; background: transparent; text-align: left; padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--wix-border); color: inherit;
}
.chat-pro-item:hover, .chat-pro-item.is-active { background: var(--wix-soft); }
.chat-pro-item-main { flex: 1; min-width: 0; }
.chat-pro-item-main strong { font-size: 0.9rem; }
.chat-pro-item-main small { color: var(--wix-gray); font-size: 0.72rem; }
.chat-pro-preview { display: block; color: var(--wix-gray); font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-pro-avatar {
    width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg,#1b4f8a,#3b82f6);
    color: #fff; display: grid; place-items: center; font-weight: 700; flex-shrink: 0;
}
.chat-pro-avatar.sm { width: 28px; height: 28px; font-size: 0.75rem; }
.chat-pro-avatar.lg { width: 44px; height: 44px; }
.chat-pro-dot { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; flex-shrink: 0; }
.chat-pro-dot.is-online { background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,0.15); }
.chat-pro-thread { display: flex; flex-direction: column; min-width: 0; height: 100%; }
.chat-pro-thread-head {
    padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--wix-border);
    display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.chat-pro-messages {
    flex: 1; overflow-y: auto; padding: 1.1rem;
    background: linear-gradient(180deg, var(--wix-canvas), rgba(232,240,254,0.35));
}
.chat-pro-row { display: flex; gap: 0.55rem; margin-bottom: 0.85rem; max-width: 78%; }
.chat-pro-row.is-out { margin-left: auto; flex-direction: row-reverse; }
.chat-pro-bubble {
    background: var(--wix-white); border: 1px solid var(--wix-border);
    border-radius: 16px 16px 16px 4px; padding: 0.7rem 0.9rem; box-shadow: var(--wix-shadow);
}
.chat-pro-row.is-out .chat-pro-bubble {
    background: var(--wix-deep); color: #fff; border-color: var(--wix-deep);
    border-radius: 16px 16px 4px 16px;
}
.chat-pro-row.is-note .chat-pro-bubble { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
.chat-pro-time { font-size: 0.7rem; opacity: 0.7; margin-top: 0.3rem; }
.chat-pro-composer { padding: 0.9rem 1.1rem; border-top: 1px solid var(--wix-border); background: var(--wix-white); }
.chat-pro-input { display: flex; gap: 0.5rem; align-items: center; }
.chat-pro-input .form-control { border-radius: 999px; padding-left: 1rem; }
.chat-pro-input .btn { border-radius: 999px; width: 44px; height: 44px; padding: 0; }
.chat-attach-btn {
    width: 42px; height: 42px; border-radius: 50%;
    display: grid; place-items: center; cursor: pointer;
    background: var(--wix-canvas); color: var(--wix-deep); flex-shrink: 0;
}
.chat-attach-btn:hover { background: var(--wix-soft); }
.chat-attach { margin-bottom: 0.45rem; }
.chat-attach-img {
    display: block; max-width: 220px; max-height: 160px;
    border-radius: 10px; margin-bottom: 0.4rem; object-fit: cover;
}
.chat-attach-file {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.35rem 0.65rem; border-radius: 8px;
    background: rgba(255,255,255,0.14); color: inherit; text-decoration: none; font-size: 0.8rem;
}
.chat-pro-row.is-in .chat-attach-file { background: var(--wix-soft); color: var(--wix-deep); }
.chat-attach-chip {
    display: inline-flex; align-items: center; gap: 0.45rem;
    background: var(--wix-soft); color: var(--wix-deep);
    border-radius: 999px; padding: 0.25rem 0.65rem; margin-bottom: 0.55rem; font-size: 0.8rem;
}
.chat-pro-empty { height: 100%; display: grid; place-items: center; text-align: center; color: var(--wix-gray); }
.chat-pro-empty i { font-size: 2.4rem; color: var(--wix-deep); display: block; margin-bottom: 0.5rem; }

.chat-widget-pro {
    width: min(100%, 380px);
    background: var(--wix-white);
    border: 1px solid var(--wix-border);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(11,31,58,0.18);
    overflow: hidden;
    display: flex; flex-direction: column;
}
.chat-widget-pro.is-full { width: 100%; height: calc(100vh - 220px); min-height: 520px; }
.chat-widget-head {
    background: linear-gradient(135deg, #0b1f3a, #1b4f8a);
    color: #fff; padding: 1rem 1.1rem; display: flex; gap: 0.75rem; align-items: center;
}
.chat-online-dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: #4ade80; margin-right: 0.35rem;
}
.chat-widget-start { padding: 1.1rem; }
.chat-widget-body { flex: 1; overflow-y: auto; padding: 1rem; background: var(--wix-canvas); min-height: 260px; }
.chat-widget-pro.is-full .chat-widget-body { min-height: 0; }

@media (max-width: 991.98px) {
    .chat-pro { height: auto; min-height: 0; }
    .chat-pro-grid { grid-template-columns: 1fr; }
    .chat-pro-list { max-height: 280px; border-right: 0; border-bottom: 1px solid var(--wix-border); }
    .chat-pro-thread { min-height: 420px; }
    .chat-widget-pro.is-full { height: auto; }
}

.help-card, .help-result, .help-track {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    background: var(--wix-white);
    border: 1px solid var(--wix-border);
    border-radius: 16px;
    padding: 1.05rem 1.15rem;
    box-shadow: var(--wix-shadow);
    height: 100%;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.help-card:hover, .help-result:hover { border-color: var(--wix-deep); color: inherit; transform: translateY(-1px); }
.help-card-icon {
    width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto;
    display: grid; place-items: center;
    background: var(--wix-soft); color: var(--wix-deep); font-size: 1.15rem;
}
.help-result { margin-bottom: 0.65rem; }
.help-result i { color: var(--wix-deep); font-size: 1.2rem; margin-top: 0.15rem; }
.help-track { display: block; }
.help-step-pill {
    display: inline-block;
    background: var(--wix-canvas);
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    font-size: 0.72rem;
    color: var(--wix-gray);
}
.help-toc a {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.45rem 0.55rem; border-radius: 10px;
    color: var(--wix-gray); text-decoration: none; font-size: 0.88rem;
}
.help-toc a i { width: 16px; }
.help-toc a:hover, .help-toc a.active { background: var(--wix-soft); color: var(--wix-deep); font-weight: 600; }
.help-article h2 { font-size: 16px; font-weight: 800; margin: 1.6rem 0 0.7rem; color: var(--wix-navy); }
.help-article h2:first-of-type { margin-top: 0; }
.help-article p { color: var(--wix-gray); line-height: 1.65; }
.help-steps { padding-left: 1.2rem; margin: 0.75rem 0 1rem; }
.help-steps li { margin-bottom: 0.45rem; }
.help-callout {
    background: var(--wix-soft);
    border-left: 4px solid var(--wix-deep);
    border-radius: 0 12px 12px 0;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    margin: 1rem 0;
}
.profile-avatar {
    width: 84px; height: 84px; border-radius: 24px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #1b4f8a, #3b82f6);
    color: #fff; font-size: 1.6rem; font-weight: 800;
}
.profile-shell { background: var(--wix-white); }
.profile-cover {
    height: 118px;
    background: linear-gradient(135deg, #0b1f3a 0%, #1b4f8a 58%, #3b82f6 100%);
}
.profile-shell-body {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 1.75rem;
    align-items: flex-end;
    padding: 0 1.5rem 1.4rem;
}
.profile-photo-block { margin-top: -52px; }
.profile-photo {
    width: 112px; height: 112px; border-radius: 28px;
    position: relative;
    background: linear-gradient(135deg, #1b4f8a, #3b82f6);
    box-shadow: 0 10px 24px rgba(11, 31, 58, 0.22);
    border: 4px solid var(--wix-white);
    overflow: hidden;
}
.profile-photo img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.profile-photo-fallback {
    width: 100%; height: 100%;
    display: grid; place-items: center;
    color: #fff; font-size: 2rem; font-weight: 800;
}
.profile-photo-edit {
    position: absolute; right: 8px; bottom: 8px;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--wix-navy); color: #fff;
    display: grid; place-items: center;
    cursor: pointer; font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(0,0,0,.25);
}
.profile-photo-edit:hover { background: #163f6e; }
.profile-identity { padding-bottom: 0.35rem; min-width: 0; }
.profile-meta {
    display: flex; justify-content: space-between; gap: 0.75rem;
    text-align: left; padding: 0.55rem 0;
    border-bottom: 1px solid var(--wix-border); font-size: 0.88rem;
}
.profile-meta span { color: var(--wix-gray); }
.profile-meta strong { font-weight: 600; }
[data-theme="dark"] .help-article h2 { color: #e5e7eb; }

.home-page { background: var(--wix-canvas); color: var(--wix-dark); overflow-x: hidden; font-size: 14px; }
.home-page::before {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(90deg, #0b1f3a 0%, #1b4f8a 55%, #38bdf8 100%);
}
.home-page h1,
.home-page h2,
.home-page h3,
.home-page .home-section-title,
.home-page .home-feature h3,
.home-page .home-step h3,
.home-page .home-hero-stats strong,
.home-page .auth-card-head h2,
.home-page .site-wordmark {
    font-size: 16px;
    line-height: 1.35;
}
.home-page p,
.home-page li,
.home-page .home-lead,
.home-page .home-section-sub,
.home-page .home-feature p,
.home-page .home-step p,
.home-page .home-checklist,
.home-page .home-links a,
.home-page .home-menu a:not(.btn),
.home-page .form-label,
.home-page .form-check-label,
.home-page .small,
.home-page .btn {
    font-size: 14px;
}
.home-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 1rem; box-sizing: border-box; }
.home-nav {
    position: sticky; top: 0; z-index: 30;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(18px) saturate(1.25);
    border-bottom: 1px solid rgba(226,232,240,.8);
}
.home-nav-inner {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    min-height: 64px;
}
.home-brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--wix-navy); flex: 0 0 auto; }
.home-brand img {
    border-radius: 10px;
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
    box-shadow: 0 8px 18px rgba(11, 31, 58, 0.16);
}
.home-brand span {
    font-weight: 800;
    font-size: 16px;
    line-height: 1;
    color: inherit;
}
.site-wordmark {
    font-weight: 800;
    letter-spacing: -.035em;
    font-size: 16px;
    line-height: 1;
    color: inherit;
}
.site-wordmark span {
    font-weight: 600;
    margin-left: .28em;
    color: var(--wix-deep);
}
.home-brand .site-wordmark {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.18rem;
    letter-spacing: .02em;
}
.home-brand .site-wordmark span {
    margin-left: 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--wix-deep);
}
.auth-visual-brand .site-wordmark span { color: rgba(255,255,255,.78); }
.home-links {
    display: flex;
    align-items: center;
    gap: .15rem;
    padding: .28rem;
    margin-left: auto;
    background: #f4f7fb;
    border: 1px solid #e6edf6;
    border-radius: 999px;
}
.home-links a {
    color: #5b6b80;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: .48rem 1rem;
    border-radius: 999px;
    line-height: 1;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.home-links a:hover, .home-links a.is-active {
    background: #fff;
    color: var(--wix-navy);
    box-shadow: 0 6px 16px rgba(11,31,58,.08);
}
.home-nav-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; flex: 0 0 auto; }
.home-nav-actions .btn {
    border-radius: 999px;
    padding: .48rem 1.05rem;
    font-size: 14px;
    font-weight: 700;
}
.home-nav-actions .btn-light {
    background: #fff;
    border: 1px solid var(--wix-border);
    color: var(--wix-navy);
}
.home-nav-actions .btn-light:hover { background: var(--wix-soft); border-color: #c9d7ea; }
@media (min-width: 1100px) {
    .home-nav-inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        gap: 1rem;
    }
    .home-brand { justify-self: start; }
    .home-links { margin-left: 0; justify-self: center; }
    .home-nav-actions { margin-left: 0; justify-self: end; }
}
.home-menu-btn {
    display: none;
    margin-left: auto;
    width: 42px; height: 42px;
    border: 1px solid var(--wix-border);
    border-radius: 12px;
    background: #fff;
    color: var(--wix-navy);
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}
.home-menu { display: none; }
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.5rem; }
.home-hero-points { list-style: none; margin: 1.5rem 0 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.home-hero-points li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 14px; color: rgba(255,255,255,.86); line-height: 1.5; }
.home-hero-points i { flex-shrink: 0; margin-top: 0.2rem; color: #38bdf8; }
.home-hero-brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: .7rem;
    padding: .22rem .55rem .22rem .22rem;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.home-hero-brand img {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: block;
}
.home-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1000px 560px at -8% -20%, rgba(37,99,235,.42), transparent 50%),
        radial-gradient(720px 480px at 92% 8%, rgba(56,189,248,.22), transparent 48%),
        linear-gradient(165deg, #123057 0%, #0b1f3a 55%, #07111f 100%);
    color: #fff;
    padding: 6rem 0 6rem;
}
.home-hero-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: .2;
}
.home-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(220px, .7fr); gap: 1.4rem; align-items: start; width: 100%; }
.home-hero-grid > * { min-width: 0; max-width: 100%; }
.home-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding: .35rem .75rem;
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.14);
    color: rgba(255,255,255,.86);
}
.home-kicker::before {
    content: "";
    width: 7px; height: 7px; border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 0 4px rgba(56,189,248,.2);
}
.home-kicker-dark {
    background: var(--wix-soft);
    border-color: #d5e3f6;
    color: var(--wix-deep);
}
.home-kicker-dark::before { background: var(--wix-deep); box-shadow: 0 0 0 4px rgba(27,79,138,.12); }
.home-hero h1,
.home-hero-title {
    font-size: 20px !important;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.35;
    margin-bottom: 0.55rem;
    overflow-wrap: anywhere;
    max-width: 100%;
    white-space: normal;
}
.home-hero-title span { display: inline; }
.home-lead { font-size: 14px; color: rgba(255,255,255,.76); max-width: 36rem; width: 100%; margin: 0 0 1.2rem 0; line-height: 1.5; overflow-wrap: anywhere; }
.home-hero .btn-primary {
    background: #fff;
    color: var(--wix-navy);
    border-color: #fff;
    box-shadow: 0 12px 28px rgba(0,0,0,.18);
}
.home-hero .btn-primary:hover { background: #e8f0fe; border-color: #e8f0fe; color: var(--wix-navy); }
.home-hero .btn-outline-light {
    border-color: rgba(255,255,255,.32);
    color: #fff;
    background: rgba(255,255,255,.04);
}
.home-hero .btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); }
.home-hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: .4rem;
    margin-top: 0;
    max-width: none;
}
.home-hero-stats > div {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-left: 3px solid #38bdf8;
    border-radius: 10px;
    padding: .55rem .75rem;
    min-width: 0;
}
.home-hero-stats strong { display: block; font-size: 16px; letter-spacing: .02em; }
.home-hero-stats span { display: block; margin-top: .15rem; color: rgba(255,255,255,.62); font-size: 14px; }
.home-hero-panel { position: relative; }
.home-hero-card {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 16px;
    padding: 1rem 1.1rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 24px 50px rgba(0,0,0,.18);
}
.home-hero-card-label {
    display: inline-flex;
    margin-bottom: .75rem;
    padding: .2rem .62rem;
    border-radius: 999px;
    background: rgba(56,189,248,.16);
    color: #bae6fd;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.home-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.home-checklist li {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    color: rgba(255,255,255,.92);
    line-height: 1.4;
}
.home-checklist i { color: #7dd3fc; font-size: 1.08rem; margin-top: .12rem; }
.home-checklist-dark li { color: var(--wix-gray); }
.home-checklist-dark i { color: var(--wix-deep); }
.home-section { padding: 1.35rem 0; }
.home-section-alt { background: #fff; }
.home-section-title { font-size: 16px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 0.3rem; text-align: center; }
.home-section-sub { font-size: 14px; color: var(--wix-gray); text-align: center; max-width: min(36rem, 100%); margin: 0 auto 0.9rem; overflow-wrap: anywhere; }
#features, #how, #register, #appointments, #appointment-form { scroll-margin-top: 72px; }
.home-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .65rem;
}
.home-feature, .home-step {
    background: #fff;
    border: 1px solid var(--wix-border);
    border-radius: 12px;
    padding: .7rem .8rem;
    height: 100%;
    box-shadow: var(--wix-shadow);
    display: flex;
    gap: .7rem;
    align-items: flex-start;
    min-width: 0;
}
.home-feature > div:not(.home-feature-icon),
.home-step > div:not(.home-step-num) { min-width: 0; flex: 1 1 0; overflow-wrap: anywhere; }
.home-feature:hover {
    box-shadow: 0 12px 24px rgba(11,31,58,.08);
}
.home-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .65rem;
}
.home-section-alt .home-step { background: var(--wix-canvas); }
.home-feature-icon {
    width: 34px; height: 34px; border-radius: 9px;
    display: grid; place-items: center;
    background: linear-gradient(180deg, #eef4ff, #e0eafc);
    color: var(--wix-deep); font-size: 1rem; flex: 0 0 34px;
}
.home-feature h3, .home-step h3 { font-size: 16px; font-weight: 800; margin: 0 0 0.15rem; overflow-wrap: break-word; }
.home-feature p, .home-step p { color: var(--wix-gray); margin: 0; line-height: 1.4; overflow-wrap: break-word; }
.home-step-num {
    width: 28px; height: 28px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--wix-navy); color: #fff; font-weight: 800; font-size: 14px; flex: 0 0 28px;
}
.home-register, .home-forms {
    background:
        radial-gradient(700px 280px at 0% 0%, rgba(27,79,138,.08), transparent 55%),
        linear-gradient(180deg, #f3f6fb 0%, #e8eef8 100%);
}
.home-register-grid, .home-forms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; }
.home-hero-actions .btn {
    padding: .48rem 1.05rem;
    font-weight: 700;
    border-radius: 999px;
}
.home-forms-card {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--wix-border);
    border-radius: 16px;
    padding: 1rem 1.15rem 1.1rem;
    box-shadow: 0 18px 40px rgba(11, 31, 58, 0.08);
    overflow: hidden;
}
.home-forms-card[data-active="appointment"] [data-home-form-panel="register"],
.home-forms-card[data-active="register"] [data-home-form-panel="appointment"] {
    display: none;
}
.home-forms-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0b1f3a, #1b4f8a, #38bdf8);
}
.home-form-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .35rem;
    padding: .3rem;
    margin: .1rem 0 .75rem;
    background: #f4f7fb;
    border: 1px solid #e6edf6;
    border-radius: 12px;
}
.home-form-tabs button {
    appearance: none;
    border: 0;
    background: transparent;
    color: #5b6b80;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    padding: .55rem .65rem;
    border-radius: 9px;
    cursor: pointer;
    white-space: normal;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
}
.home-form-tabs button i { color: var(--wix-deep); font-size: 1rem; }
.home-form-tabs button.is-active {
    background: var(--wix-navy);
    color: #fff;
    box-shadow: 0 8px 16px rgba(11,31,58,.16);
}
.home-form-tabs button.is-active i { color: #7dd3fc; }
.home-form-lead {
    margin: 0 0 .85rem;
    font-size: 14px;
    color: var(--wix-gray);
}
.home-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .7rem .75rem;
    align-items: start;
}
.home-field { display: grid; gap: .28rem; min-width: 0; margin: 0; }
.home-field > span { font-size: 14px; font-weight: 600; color: var(--wix-navy); line-height: 1.2; }
.home-field > span em { color: #dc2626; font-style: normal; font-weight: 700; }
.home-field-full { grid-column: 1 / -1; }
.home-field-trio {
    display: grid;
    grid-template-columns: 1.2fr .9fr .7fr;
    gap: .7rem .75rem;
}
.home-input {
    display: flex;
    align-items: center;
    gap: .45rem;
    min-width: 0;
    background: #f7f9fc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0 .7rem;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.home-input > i { color: var(--wix-deep); font-size: 1rem; flex: 0 0 auto; }
.home-input .form-control,
.home-input .form-select {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: .52rem 0;
    font-size: 14px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}
.home-input .form-select { padding-right: 1.2rem; }
.home-form-grid input[type="datetime-local"] { min-width: 0; }
.home-input:focus-within {
    background: #fff;
    border-color: var(--wix-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.home-input-toggle {
    appearance: none;
    border: 0;
    background: transparent;
    color: #64748b;
    padding: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
}
.home-input-toggle:hover { color: var(--wix-navy); }
.home-form-cta {
    width: 100%;
    padding: .62rem 1rem;
    font-weight: 700;
    border-radius: 10px;
}
.home-form-submit {
    display: grid;
    gap: .7rem;
}
.home-form-submit .form-check {
    margin: 0;
    padding: .55rem .7rem .55rem 2rem;
    background: #f7f9fc;
    border: 1px solid #e6edf6;
    border-radius: 10px;
}
.home-form-foot { margin: .85rem 0 0; font-size: 14px; color: var(--wix-gray); }
.home-register-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--wix-border);
    border-radius: 16px;
    padding: 1.15rem 1.2rem 1.2rem;
    box-shadow: 0 16px 36px rgba(11, 31, 58, 0.06);
}
.home-form-head { margin-bottom: .85rem; }
.home-form-head h2 { font-size: 16px; font-weight: 800; margin: 0 0 .2rem; }
.home-form-head p { margin: 0; font-size: 14px; color: var(--wix-gray); }
.home-form-compact .form-control,
.home-form-compact .form-select {
    padding: .42rem .7rem;
    font-size: 14px;
}
.home-form-compact .form-check { margin: .15rem 0 .25rem; }
.home-form-compact .btn { padding: .48rem .8rem; }
.home-register-card::before {
    content: "";
    position: absolute;
    top: 0; left: 1.5rem; right: 1.5rem;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, #1b4f8a, #38bdf8);
}
.home-register-card .form-label { font-weight: 600; font-size: 14px; color: var(--wix-navy); }
.home-register-card .form-control,
.home-register-card .form-select { background: #f8fafc; }
.home-register-card .form-control:focus,
.home-register-card .form-select:focus { background: #fff; }
.job-actions .btn-lg { min-height: 48px; font-weight: 700; }
@media (max-width: 991.98px) {
    .job-actions .btn { min-height: 52px; font-size: 14px; }
    .home-hero-grid, .home-register-grid, .home-forms-grid, .home-steps { grid-template-columns: minmax(0, 1fr); }
    .home-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-form-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-forms-card, .home-feature-grid, .home-steps, .home-hero-stats { max-width: 100%; }
    .home-hero { padding: 1.75rem 0 1.95rem; }
    .home-nav-inner { min-height: 58px; gap: 0.65rem; }
    .home-brand { gap: 0.55rem; }
    .site-wordmark { font-size: 16px; }
    .home-brand img { width: 36px; height: 36px; }
    .home-links, .home-nav-actions { display: none; }
    .home-menu-btn { display: inline-flex; }
    .home-nav.is-open .home-menu { display: block; border-top: 1px solid var(--wix-border); }
    .home-nav.is-open .home-menu-btn { background: var(--wix-soft); border-color: var(--wix-deep); color: var(--wix-deep); }
    .home-menu .home-wrap { padding: 0.75rem 0 1.05rem; display: flex; flex-direction: column; gap: 0.35rem; }
    .home-menu a:not(.btn) {
        display: flex;
        align-items: center;
        gap: .7rem;
        padding: 0.78rem 0.85rem;
        color: var(--wix-navy);
        text-decoration: none;
        font-weight: 700;
        border: 1px solid transparent;
        border-radius: 14px;
        background: #f7f9fc;
    }
    .home-menu a:not(.btn) i { color: var(--wix-deep); font-size: 1.05rem; }
    .home-menu a:not(.btn):hover, .home-menu a:not(.btn).is-active { background: var(--wix-soft); border-color: #d7e3f5; }
    .home-menu-actions { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 0.55rem; }
    .home-menu-actions .btn { width: 100%; justify-content: center; padding: 0.75rem 1rem; border-radius: 999px; }
    .home-hero h1,
    .home-hero-title { font-size: 20px !important; overflow-wrap: break-word; }
    .home-kicker { font-size: 14px; letter-spacing: .07em; max-width: 100%; white-space: normal; line-height: 1.35; }
    .home-lead { font-size: 14px; }
    .home-hero-actions { flex-direction: column; }
    .home-hero-actions .btn { width: 100%; }
    .home-hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
    .home-hero-stats > div { padding: .5rem .45rem; }
    .home-hero-stats span { font-size: 14px; }
    .home-section { padding: 1.1rem 0; }
    .home-section-title { font-size: 16px; }
    .home-forms-card { padding: .8rem .8rem .9rem; }
    .home-form-submit { display: grid; }
    .home-form-cta { width: 100%; min-width: 0; }
    .home-register-card { padding: 1.4rem 1.1rem 1.25rem; }
    .site-footer-bar { text-align: center; }
}
@media (max-width: 639.98px) {
    .home-feature-grid { grid-template-columns: minmax(0, 1fr); }
    .home-field-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .home-hero-stats > div { padding: .45rem .4rem; }
    .home-hero-title span { display: block; }
}
