/* =====================================================================
   HelpDesk · Premium UI
   --------------------------------------------------------------------
   Inspired by Linear / Stripe / Notion / Raycast.
   Single-file, no preprocessor — easy to edit, fast to ship.
   ===================================================================== */

/* ---------- Reset & base tokens ------------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    /* Brand */
    --brand: #0a2540;
    --brand-700: #061a31;
    --brand-500: #173b62;
    --accent: #22d3ee;
    --accent-600: #06b6d4;
    --accent-glow: rgba(34, 211, 238, .35);

    /* Status / priority */
    --c-low: #22c55e;
    --c-medium: #3b82f6;
    --c-high: #f97316;
    --c-critical: #ef4444;
    --c-pending: #f59e0b;
    --c-progress: #a855f7;
    --c-resolved: #10b981;
    --c-closed: #64748b;

    /* Light surface */
    --bg: #f6f8fc;
    --bg-elev: #ffffff;
    --bg-soft: #eef2f8;
    --surface: rgba(255, 255, 255, .72);
    --border: #e3e8ef;
    --border-strong: #cdd5df;
    --text: #0a2540;
    --text-muted: #5b6b80;
    --text-dim: #93a1b5;

    /* Effects */
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 1px rgba(15, 23, 42, .03);
    --shadow: 0 4px 16px -4px rgba(15, 23, 42, .12), 0 2px 4px rgba(15, 23, 42, .06);
    --shadow-lg: 0 20px 50px -12px rgba(15, 23, 42, .18), 0 6px 16px rgba(15, 23, 42, .08);
    --shadow-glow: 0 0 0 6px var(--accent-glow);

    /* Type */
    --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    /* Layout */
    --sidebar-w: 260px;
    --topbar-h: 64px;
    --easing: cubic-bezier(.4, 0, .2, 1);
}

/* Dark theme variables — applied either by data-theme="dark" or by prefers-color-scheme. */
:root[data-theme="dark"],
:root[data-theme="auto"] {
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root[data-theme="auto"] {
        --bg: #07101e;
        --bg-elev: #0c1a2c;
        --bg-soft: #0a1727;
        --surface: rgba(12, 26, 44, .72);
        --border: #1a2c45;
        --border-strong: #243a57;
        --text: #e6eef9;
        --text-muted: #8fa3bf;
        --text-dim: #6079a0;
        --shadow: 0 4px 16px -4px rgba(0, 0, 0, .5);
        --shadow-lg: 0 20px 60px -10px rgba(0, 0, 0, .65);
    }
}

:root[data-theme="dark"] {
    --bg: #07101e;
    --bg-elev: #0c1a2c;
    --bg-soft: #0a1727;
    --surface: rgba(12, 26, 44, .72);
    --border: #1a2c45;
    --border-strong: #243a57;
    --text: #e6eef9;
    --text-muted: #8fa3bf;
    --text-dim: #6079a0;
    --shadow: 0 4px 16px -4px rgba(0, 0, 0, .5);
    --shadow-lg: 0 20px 60px -10px rgba(0, 0, 0, .65);
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--accent-600);
    text-decoration: none;
    transition: color .15s;
}

a:hover {
    color: var(--accent);
}

h1,
h2,
h3,
h4 {
    margin: 0 0 8px;
    line-height: 1.25;
    letter-spacing: -.015em;
}

h1 {
    font-size: 26px;
    font-weight: 700;
}

h2 {
    font-size: 20px;
    font-weight: 600;
}

h3 {
    font-size: 16px;
    font-weight: 600;
}

p {
    margin: 0 0 12px;
}

code,
kbd {
    font-family: var(--font-mono);
    font-size: .85em;
}

small {
    font-size: 12px;
}

.muted {
    color: var(--text-muted);
}

.muted.small {
    color: var(--text-muted);
    font-size: 12px;
}

.small {
    font-size: 12px;
}

input,
textarea,
select,
button {
    font: inherit;
    color: inherit;
}

/* ---------- Buttons ----------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-weight: 600;
    cursor: pointer;
    transition: transform .12s var(--easing), background .15s, box-shadow .15s, color .15s, border-color .15s;
    text-decoration: none;
    user-select: none;
    background: transparent;
}

.btn svg {
    width: 16px;
    height: 16px;
}

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

.btn:active {
    transform: translateY(0);
}

.btn--primary {
    color: #fff;
    background: linear-gradient(180deg, var(--brand-500), var(--brand));
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.btn--primary:hover {
    box-shadow: var(--shadow), 0 0 0 4px rgba(34, 211, 238, .15);
    color: #fff;
}

.btn--ghost {
    color: var(--text);
    border-color: var(--border);
    background: var(--bg-elev);
}

.btn--ghost:hover {
    border-color: var(--border-strong);
}

.btn--lg {
    padding: 12px 22px;
    font-size: 15px;
    border-radius: 12px;
}

.btn--block {
    width: 100%;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color .15s, background .15s, border-color .15s;
}

.icon-btn:hover {
    color: var(--text);
    background: var(--bg-soft);
    border-color: var(--border);
}

.icon-btn svg {
    width: 18px;
    height: 18px;
}

.text-btn {
    background: transparent;
    border: 0;
    color: var(--accent-600);
    cursor: pointer;
    padding: 4px 8px;
    font-weight: 600;
    border-radius: 6px;
}

.text-btn:hover {
    background: rgba(34, 211, 238, .08);
}

.text-btn--danger {
    color: #ef4444;
}

.text-btn--danger:hover {
    background: rgba(239, 68, 68, .1);
}

/* Danger (red) styling stays the same; size is now controlled by an explicit
   --sm modifier so a danger-action button matches its siblings by default. */
.icon-btn--danger {
    color: var(--text-dim);
}

.icon-btn--danger:hover {
    color: var(--c-critical);
    background: rgba(239, 68, 68, .1);
    border-color: rgba(239, 68, 68, .25);
}

.icon-btn--sm {
    width: 30px;
    height: 30px;
}

.icon-btn--sm svg {
    width: 14px;
    height: 14px;
}

/* ---------- Layout ----------------------------------------------- */
.app-layout {
    padding-left: var(--sidebar-w);
}

.app-layout.is-collapsed {
    padding-left: 76px;
}

.app-main {
    padding: calc(var(--topbar-h) + 24px) 28px 60px;
}

.public-main {
    min-height: 100vh;
}

/* ---------- Sidebar ---------------------------------------------- */
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-w);
    padding: 18px 14px 18px;
    background: linear-gradient(180deg, var(--brand-700), var(--brand));
    color: #cfe1ff;
    border-right: 1px solid rgba(255, 255, 255, .06);
    display: flex;
    flex-direction: column;
    z-index: 20;
    transition: width .25s var(--easing);
}

.is-collapsed .sidebar {
    width: 76px;
}

.is-collapsed .sidebar .brand-name,
.is-collapsed .sidebar .nav-item span,
.is-collapsed .sidebar .nav-divider,
.is-collapsed .sidebar .user-chip__info,
.is-collapsed .sidebar .nav-badge {
    display: none;
}

.sidebar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 18px;
    color: #fff;
    font-weight: 700;
}

.brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent), #6366f1);
    color: #0a2540;
    box-shadow: 0 6px 18px -6px var(--accent-glow);
}

.brand-mark svg {
    width: 18px;
    height: 18px;
}

.sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 10px;
    color: rgba(207, 225, 255, .78);
    font-weight: 500;
    transition: background .15s, color .15s;
    position: relative;
}

.nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, .05);
}

.nav-item.is-active,
.nav-item[aria-current="page"] {
    color: #fff;
    background: rgba(255, 255, 255, .05);
}

.nav-item.is-active::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: var(--accent);
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 18px var(--accent-glow);
}

.nav-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.nav-badge {
    margin-left: auto;
    background: var(--accent);
    color: var(--brand);
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    padding: 1px 7px;
}

.nav-divider {
    padding: 14px 12px 6px;
    color: rgba(207, 225, 255, .4);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* Accordion-style submenu (collapsed by default, opens on chevron click). */
.nav-group {
    position: relative;
}

.nav-item--group {
    padding-right: 36px;
}

/* room for the chevron button */

.nav-chevron {
    position: absolute;
    top: 7px;
    right: 8px;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: rgba(207, 225, 255, .45);
    cursor: pointer;
    z-index: 1;
    transition: color .15s, background .15s;
}

.nav-chevron svg {
    width: 13px;
    height: 13px;
    transition: transform .2s var(--easing);
}

.nav-chevron[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

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

.nav-sub {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin: 0 0 0 22px;
    padding-left: 12px;
    border-left: 1px dashed rgba(255, 255, 255, .08);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s var(--easing), margin .2s var(--easing), padding .2s var(--easing);
}

.nav-sub.is-open {
    max-height: 320px;
    margin: 4px 0 8px 22px;
}

.nav-sub__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 10px;
    color: rgba(207, 225, 255, .55);
    font-size: 12.5px;
    font-weight: 500;
    transition: background .15s, color .15s;
}

/* Hover & active share the same subtle treatment as other nav items. */
.nav-sub__item:hover,
.nav-sub__item.is-active {
    color: #fff;
    background: rgba(255, 255, 255, .05);
}

.nav-sub__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px currentColor;
}

.nav-sub__star {
    display: inline-grid;
    place-items: center;
    width: 14px;
    height: 14px;
    color: #f59e0b;
    flex-shrink: 0;
    margin-left: -3px;
    /* visually balance with the dots above */
}

.nav-sub__star svg {
    width: 13px;
    height: 13px;
    display: block;
    filter: drop-shadow(0 0 4px rgba(245, 158, 11, .5));
}

.nav-sub__item--priority {
    margin-bottom: 4px;
    padding-bottom: 7px;
    border-bottom: 1px dashed rgba(255, 255, 255, .06);
}

.nav-sub__item--priority.is-active .nav-sub__star {
    color: #fbbf24;
}

.nav-sub__label {
    flex: 1;
}

.nav-sub__count {
    font-size: 11px;
    color: rgba(207, 225, 255, .45);
    font-variant-numeric: tabular-nums;
    background: rgba(255, 255, 255, .04);
    padding: 1px 6px;
    border-radius: 6px;
    min-width: 22px;
    text-align: center;
}

.nav-sub__item.is-active .nav-sub__count {
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

/* When sidebar is collapsed, hide the submenu + chevron entirely. */
.is-collapsed .sidebar .nav-sub,
.is-collapsed .sidebar .nav-chevron {
    display: none;
}

.sidebar__footer {
    padding-top: 12px;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    color: #fff;
}

.user-chip:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.user-chip__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-chip__name {
    font-weight: 600;
    font-size: 13px;
}

.user-chip__role {
    font-size: 11px;
    color: rgba(207, 225, 255, .6);
    text-transform: capitalize;
}

/* ---------- Avatar ----------------------------------------------- */
.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #6366f1);
    color: #0a2540;
    display: inline-grid;
    place-items: center;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .02em;
    flex-shrink: 0;
}

.avatar--xs {
    width: 22px;
    height: 22px;
    font-size: 10px;
    display: none;
}

.avatar--lg {
    width: 44px;
    height: 44px;
    font-size: 14px;
}

.user-mini {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ---------- Topbar ---------------------------------------------- */
.topbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-w);
    right: 0;
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px;
    background: var(--surface);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 15;
    transition: left .25s var(--easing);
}

.is-collapsed .topbar {
    left: 76px;
}

.search-trigger {
    flex: 1;
    max-width: 560px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}

.search-trigger svg {
    width: 16px;
    height: 16px;
}

.search-trigger:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
}

.search-trigger kbd {
    margin-left: auto;
    padding: 2px 6px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 11px;
}

.topbar__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.topbar__menu {
    display: none;
}

.topbar__new {
    padding: 9px 14px;
}

/* ---------- Locale switcher (globe icon + dropdown) -------------- */
/* Built on top of <details>/<summary> so it stays CSP-safe (no inline
   onclick). The browser toggles the open state for us; we just style it. */
.lang-menu {
    position: relative;
}

.lang-menu>summary {
    list-style: none;
    cursor: pointer;
}

.lang-menu>summary::-webkit-details-marker {
    display: none;
}

.lang-menu>summary::marker {
    display: none;
    content: '';
}

.lang-menu__btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 8px;
    height: 38px;
    border-radius: 10px;
    background: transparent;
    border: 0;
    color: var(--text-muted, var(--text-dim));
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: background .15s, color .15s;
}

.lang-menu__btn:hover {
    background: var(--bg-hover, rgba(0, 0, 0, .04));
    color: var(--text);
}

.lang-menu__btn svg {
    width: 18px;
    height: 18px;
    flex: none;
}

.lang-menu__code {
    line-height: 1;
}

.lang-menu[open]>.lang-menu__btn {
    color: var(--text);
    background: var(--bg-hover, rgba(0, 0, 0, .04));
}

/* Dropdown popover */
.lang-menu__pop {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 180px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, .16), 0 2px 6px rgba(15, 23, 42, .06);
    z-index: 70;
    display: flex;
    flex-direction: column;
    gap: 2px;
    animation: lang-menu-pop .14s ease-out;
}

@keyframes lang-menu-pop {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-menu__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background .12s;
}

.lang-menu__item:hover {
    background: var(--bg-hover, rgba(0, 0, 0, .04));
}

.lang-menu__item.is-active {
    background: rgba(34, 211, 238, .10);
    color: var(--accent);
    font-weight: 600;
}

.lang-menu__flag {
    font-size: 16px;
    line-height: 1;
}

.lang-menu__label {
    flex: 1;
}

.lang-menu__check {
    width: 14px;
    height: 14px;
    color: var(--accent);
}

/* Public flavor — over hero on guest pages. Frosted glass on dark bg. */
.lang-menu--public .lang-menu__btn {
    background: rgba(255, 255, 255, .08);
    border: 0;
    color: rgba(255, 255, 255, .85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lang-menu--public .lang-menu__btn:hover {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.lang-menu--public[open]>.lang-menu__btn {
    color: #fff;
    background: rgba(255, 255, 255, .18);
}

/* ---------- Landing style picker (admin settings) ---------------- */
.landing-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.landing-picker__opt {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border: 2px solid var(--border);
    border-radius: 14px;
    background: var(--bg-elev);
    cursor: pointer;
    transition: border-color .15s, transform .15s, box-shadow .15s;
}

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

.landing-picker__opt.is-active {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 15%, transparent);
}

.landing-picker__opt input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.landing-picker__preview {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.landing-picker__preview-nav,
.landing-picker__preview-hero,
.landing-picker__preview-grid>span,
.landing-picker__preview-pill,
.landing-picker__preview-headline,
.landing-picker__preview-cta {
    display: block;
    position: absolute;
    border-radius: 4px;
}

/* Premium preview: dark navy with cyan accent */
.landing-picker__preview--premium {
    background: linear-gradient(135deg, #0a2540 0%, #173b62 100%);
}

.landing-picker__preview--premium .landing-picker__preview-nav {
    top: 8px;
    left: 8px;
    right: 8px;
    height: 8px;
    background: rgba(255, 255, 255, .1);
}

.landing-picker__preview--premium .landing-picker__preview-hero {
    top: 28px;
    left: 14px;
    width: 70%;
    height: 8px;
    background: linear-gradient(90deg, #22d3ee 0%, #a855f7 100%);
}

.landing-picker__preview--premium .landing-picker__preview-grid {
    position: absolute;
    bottom: 12px;
    left: 8px;
    right: 8px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    height: 30%;
}

.landing-picker__preview--premium .landing-picker__preview-grid>span {
    position: static;
    background: rgba(255, 255, 255, .08);
}

/* Grid preview: deep ink background + scrolling grid + glow blob */
.landing-picker__preview--grid {
    background: oklch(0.13 0.02 256);
    overflow: hidden;
}

.landing-picker__preview-grid-bg {
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M12 0H0V12' fill='none' stroke='white' stroke-width='0.5' stroke-opacity='0.18'/></svg>");
    background-size: 12px 12px;
}

.landing-picker__preview-glow {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    background: radial-gradient(circle, oklch(0.72 0.18 200 / 30%) 0%, transparent 60%);
    filter: blur(8px);
    border-radius: 50%;
}

.landing-picker__preview-headline-light {
    top: 40%;
    left: 18%;
    right: 18%;
    height: 14px;
    background: linear-gradient(90deg, oklch(0.78 0.16 200) 0%, oklch(0.72 0.18 280) 100%);
    border-radius: 4px;
}

/* Modern preview: white with shadcn black accent */
.landing-picker__preview--modern {
    background: oklch(1 0 0);
    border: 1px solid var(--border);
}

.landing-picker__preview--modern .landing-picker__preview-pill {
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 8px;
    border-radius: 999px;
    background: oklch(0.97 0 0);
    border: 1px solid var(--border);
}

.landing-picker__preview--modern .landing-picker__preview-headline {
    top: 32px;
    left: 18%;
    right: 18%;
    height: 14px;
    background: oklch(0.205 0 0);
}

.landing-picker__preview--modern .landing-picker__preview-cta {
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 10px;
    background: oklch(0.205 0 0);
}

.landing-picker__label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 2px;
}

.landing-picker__label strong {
    font-size: 14px;
    font-weight: 600;
}

.landing-picker__label small {
    color: var(--text-dim);
    font-size: 12px;
}

.landing-picker__check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}

.landing-picker__check svg {
    width: 14px;
    height: 14px;
}

.landing-picker__opt.is-active .landing-picker__check {
    display: inline-flex;
}

/* Floating switcher anchored top-right on logged-out pages (landing, auth). */
.public-lang {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 60;
}

@media (max-width: 720px) {
    .public-lang {
        top: 12px;
        right: 12px;
    }

    .lang-menu__btn {
        padding: 0 6px;
        height: 36px;
    }
}

.notif-trigger {
    position: relative;
}

.notif-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--c-critical);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--bg-elev);
}

/* ---------- Theme toggle (sun/moon) ----------------------------- */
.icon-sun,
.icon-moon {
    display: none;
}

:root[data-theme="dark"] .icon-sun,
:root[data-theme="light"] .icon-moon {
    display: block;
}

:root[data-theme="auto"] .icon-moon {
    display: block;
}

@media (prefers-color-scheme: dark) {
    :root[data-theme="auto"] .icon-moon {
        display: none;
    }

    :root[data-theme="auto"] .icon-sun {
        display: block;
    }
}

/* ---------- Pages ---------------------------------------------- */
.page {
    max-width: 1280px;
    margin: 0 auto;
}

.page--narrow {
    max-width: 760px;
    margin: 0 auto;
}

.page__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.page__head h1 {
    margin: 0;
}

.page__head .muted {
    margin: 4px 0 0;
}

.head-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.back-link {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 13px;
}

.back-link:hover {
    color: var(--text);
}

/* ---------- Card / surfaces ------------------------------------ */
.card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.card__head h3 {
    margin: 0;
}

/* ---------- KPI cards ------------------------------------------ */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.kpi-section {
    margin-bottom: 24px;
}

.kpi-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0 14px;
}

.kpi-section__head h2 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 0;
    color: var(--text);
}

.kpi-section .kpi-grid {
    margin-bottom: 0;
}

.kpi {
    position: relative;
    padding: 18px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-elev);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .2s var(--easing), box-shadow .2s;
}

.kpi:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.kpi__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.kpi__head svg {
    width: 18px;
    height: 18px;
    opacity: .7;
}

.kpi strong {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.02em;
    display: block;
}

.kpi__delta {
    color: var(--text-muted);
    font-size: 12px;
}

.kpi::after {
    content: '';
    position: absolute;
    inset: auto -30px -30px auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, .18), transparent 70%);
    pointer-events: none;
}

.kpi--blue::after {
    background: radial-gradient(circle, rgba(59, 130, 246, .18), transparent 70%);
}

.kpi--purple::after {
    background: radial-gradient(circle, rgba(168, 85, 247, .20), transparent 70%);
}

.kpi--green::after {
    background: radial-gradient(circle, rgba(16, 185, 129, .20), transparent 70%);
}

.kpi--red::after {
    background: radial-gradient(circle, rgba(239, 68, 68, .20), transparent 70%);
}

.kpi--orange::after {
    background: radial-gradient(circle, rgba(245, 158, 11, .22), transparent 70%);
}

.kpi--cyan::after {
    background: radial-gradient(circle, rgba(34, 211, 238, .20), transparent 70%);
}

.kpi--pink::after {
    background: radial-gradient(circle, rgba(236, 72, 153, .20), transparent 70%);
}

/* Analytics-specific KPI tweaks */
.kpi-grid--6 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.kpi__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    color: var(--accent);
    margin-right: 8px;
}

.kpi--green .kpi__icon {
    color: #10b981;
    background: rgba(16, 185, 129, .12);
}

.kpi--blue .kpi__icon {
    color: #3b82f6;
    background: rgba(59, 130, 246, .12);
}

.kpi--purple .kpi__icon {
    color: #a855f7;
    background: rgba(168, 85, 247, .12);
}

.kpi--orange .kpi__icon {
    color: #f59e0b;
    background: rgba(245, 158, 11, .14);
}

.kpi--cyan .kpi__icon {
    color: #06b6d4;
    background: rgba(34, 211, 238, .14);
}

.kpi--pink .kpi__icon {
    color: #ec4899;
    background: rgba(236, 72, 153, .12);
}

.kpi__icon svg {
    width: 16px;
    height: 16px;
}

.kpi__head {
    gap: 0;
}

.kpi__value {
    margin: 2px 0 6px;
}

.kpi__delta strong {
    color: var(--text);
    font-weight: 700;
}

/* Analytics filter bar */
.analytics-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 160px;
    min-width: 140px;
}

.filter-group__label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.filter-group select,
.filter-group input {
    width: 100%;
}

.filter-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* Two-column dashboard row (already had a 2fr/1fr above) */
.dash-row--2 {
    grid-template-columns: 2fr 1fr;
}

/* Chart.js with responsive+maintainAspectRatio:false will stretch its canvas
   to fill any parent height — clamp it so the chart never explodes. */
.chart-card .card__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.chart-card {
    min-height: 240px;
}

.chart-card canvas {
    width: 100% !important;
    height: 240px !important;
    max-height: 240px !important;
}

.chart-card--sm canvas {
    height: 220px !important;
    max-height: 220px !important;
}

/* Aging bars list */
.aging-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aging-item__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 13px;
}

.aging-item__head strong {
    font-variant-numeric: tabular-nums;
}

.aging-item__bar {
    height: 8px;
    background: var(--bg-soft);
    border-radius: 999px;
    overflow: hidden;
}

.aging-item__bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    transition: width .4s ease-out;
}

/* ---------- Dashboard rows ------------------------------------ */
.dash-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .dash-row {
        grid-template-columns: 1fr;
    }
}

.chart-card canvas {
    width: 100% !important;
}

/* ---------- Tables -------------------------------------------- */
.table-wrap {
    overflow-x: auto;
    margin: -8px -8px 0;
    padding: 0 8px;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table thead th {
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-elev);
    position: sticky;
    top: 0;
}

.data-table tbody td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table--hoverable tbody tr {
    transition: background .12s;
}

.data-table--hoverable tbody tr:hover {
    background: var(--bg-soft);
}

.country-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.country-flag {
    display: inline-block;
    width: 28px;
    height: 20px;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
    background: var(--bg-soft);
    flex-shrink: 0;
}

.country-name {
    color: var(--text);
    font-size: 13px;
    white-space: nowrap;
}

.cell-subject a {
    color: var(--text);
    font-weight: 500;
}

.cell-subject a:hover {
    color: var(--accent-600);
}

.ref {
    font-family: var(--font-mono);
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 6px;
    background: var(--bg-soft);
    color: var(--text);
}

.ref-pill {
    font-family: var(--font-mono);
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand), var(--brand-500));
    color: #fff;
}

.actions {
    display: flex;
    gap: 4px;
    align-items: center;
}

.actions form {
    display: inline;
}

/* ---------- Chips --------------------------------------------- */
.chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: var(--bg-soft);
    color: var(--text);
    border: 1px solid var(--border);
}

.chip--tag {
    background: rgba(34, 211, 238, .08);
    color: var(--accent-600);
    border-color: transparent;
}

.chip--muted {
    color: var(--text-muted);
}

.chip--internal {
    background: rgba(245, 158, 11, .12);
    color: #b45309;
    border-color: rgba(245, 158, 11, .3);
}

.chip--danger {
    background: rgba(239, 68, 68, .12);
    color: #b91c1c;
    border-color: rgba(239, 68, 68, .3);
}

.chip--status[data-status="open"] {
    color: #1d4ed8;
    background: rgba(59, 130, 246, .12);
    border-color: rgba(59, 130, 246, .3);
}

.chip--status[data-status="pending"] {
    color: #b45309;
    background: rgba(245, 158, 11, .12);
    border-color: rgba(245, 158, 11, .3);
}

.chip--status[data-status="in_progress"] {
    color: #7c3aed;
    background: rgba(168, 85, 247, .12);
    border-color: rgba(168, 85, 247, .3);
}

.chip--status[data-status="resolved"] {
    color: #047857;
    background: rgba(16, 185, 129, .12);
    border-color: rgba(16, 185, 129, .3);
}

.chip--status[data-status="closed"] {
    color: #475569;
    background: rgba(100, 116, 139, .12);
    border-color: rgba(100, 116, 139, .3);
}

.chip--prio[data-prio="low"] {
    color: var(--c-low);
    background: rgba(34, 197, 94, .12);
    border-color: rgba(34, 197, 94, .3);
}

.chip--prio[data-prio="medium"] {
    color: var(--c-medium);
    background: rgba(59, 130, 246, .12);
    border-color: rgba(59, 130, 246, .3);
}

.chip--prio[data-prio="high"] {
    color: var(--c-high);
    background: rgba(249, 115, 22, .12);
    border-color: rgba(249, 115, 22, .3);
}

.chip--prio[data-prio="critical"] {
    color: var(--c-critical);
    background: rgba(239, 68, 68, .12);
    border-color: rgba(239, 68, 68, .3);
}

.role {
    font-weight: 600;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 6px;
}

.role--super_admin,
.role--admin {
    background: rgba(168, 85, 247, .12);
    color: #7c3aed;
}

.role--agent {
    background: rgba(34, 211, 238, .12);
    color: var(--accent-600);
}

.role--client {
    background: rgba(100, 116, 139, .12);
    color: #475569;
}

/* ---------- Filters bar --------------------------------------- */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 12px;
}

.filters__search {
    flex: 1;
    min-width: 240px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    background: var(--bg-soft);
    border-radius: 10px;
    border: 1px solid transparent;
    transition: border-color .15s, background .15s;
}

.filters__search:focus-within {
    border-color: var(--accent);
    background: var(--bg-elev);
}

.filters__search svg {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.filters__search input {
    border: 0;
    background: transparent;
    outline: none;
    flex: 1;
}

.filters select {
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-elev);
    color: var(--text);
    cursor: pointer;
}

/* ---------- Forms --------------------------------------------- */
.form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field>span {
    font-weight: 600;
    font-size: 13px;
    color: var(--text);
}

.field>input,
.field>select,
.field>textarea,
.composer textarea {
    width: 100%;
    padding: 11px 13px;
    background: var(--bg-elev);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}

.field>input:focus,
.field>select:focus,
.field>textarea:focus,
.composer textarea:focus {
    outline: 0;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, .15);
}

.field>textarea {
    resize: vertical;
    min-height: 100px;
}

.field>input[type="color"] {
    padding: 4px;
    height: 42px;
}

.err {
    color: #ef4444;
    font-size: 12px;
}

.form-section {
    margin-top: 6px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border);
}

.form-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 8px;
}

.check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-size: 13px;
}

.check input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-600);
}

.row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 12px;
}

.link {
    color: var(--accent-600);
    font-weight: 500;
}

/* ---------- Auth pages ---------------------------------------- */
.auth-layout {
    background: var(--bg);
}

.auth-wrap {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.auth-wrap--narrow {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
}

.auth-art {
    position: relative;
    background: radial-gradient(circle at 25% 30%, rgba(34, 211, 238, .22), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(99, 102, 241, .18), transparent 50%),
        linear-gradient(180deg, var(--brand), var(--brand-700));
    color: #cfe1ff;
    padding: 60px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.auth-art__glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(34, 211, 238, .18), transparent 60%);
    pointer-events: none;
}

.auth-art__grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(circle at center, #000, transparent 75%);
    pointer-events: none;
}

.auth-art blockquote {
    position: relative;
    margin: 0;
    max-width: 460px;
    font-size: 22px;
    line-height: 1.4;
    font-weight: 500;
    color: #fff;
}

.auth-art cite {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, .65);
    font-style: normal;
}

.auth-form {
    padding: 80px clamp(24px, 6vw, 80px);
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    align-self: center;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.auth-foot {
    margin-top: 8px;
    color: var(--text-muted);
    text-align: center;
}

@media (max-width: 900px) {
    .auth-wrap {
        grid-template-columns: 1fr;
    }

    .auth-art {
        display: none;
    }
}

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
}

.alert--error {
    background: rgba(239, 68, 68, .1);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, .25);
}

.alert--success {
    background: rgba(16, 185, 129, .1);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, .25);
}

/* ---------- Landing page -------------------------------------- */
.landing {
    background: var(--bg);
}

.landing-hero {
    position: relative;
    background: radial-gradient(circle at 20% 0%, rgba(34, 211, 238, .15), transparent 50%),
        radial-gradient(circle at 90% 10%, rgba(99, 102, 241, .18), transparent 50%);
}

.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px max(24px, 6vw);
    max-width: 1280px;
    margin: 0 auto;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
    font-size: 16px;
}

.landing-nav nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.landing-hero__content {
    max-width: 1080px;
    margin: 0 auto;
    padding: 80px max(24px, 6vw) 60px;
    text-align: center;
}

.hero-pill {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(34, 211, 238, .1);
    color: var(--accent-600);
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    margin-bottom: 24px;
}

.landing-hero h1 {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.05;
    margin-bottom: 16px;
}

.hero-grad {
    background: linear-gradient(120deg, var(--accent), #6366f1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lead {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 28px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-mock {
    margin: 0 auto;
    max-width: 940px;
    transform: perspective(1200px) rotateX(8deg);
}

.mock-window {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.mock-bar {
    display: flex;
    gap: 6px;
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

.mock-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-strong);
}

.mock-body {
    display: grid;
    grid-template-columns: 200px 1fr;
    min-height: 320px;
}

.mock-side {
    padding: 16px;
    border-right: 1px solid var(--border);
    background: var(--bg-soft);
}

.mock-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 13px;
}

.mock-row--active {
    background: var(--bg-elev);
    color: var(--text);
}

.mock-content {
    padding: 24px;
}

.mock-chip {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.mock-chip--high {
    background: rgba(249, 115, 22, .12);
    color: var(--c-high);
}

.mock-content h3 {
    margin: 10px 0 6px;
    font-size: 18px;
}

.mock-chart {
    margin-top: 28px;
    height: 80px;
    background: linear-gradient(180deg, rgba(34, 211, 238, .2), transparent),
        repeating-linear-gradient(90deg, rgba(34, 211, 238, .35) 0 2px, transparent 2px 28px);
    border-radius: 8px;
}

.landing-features {
    max-width: 1080px;
    margin: 80px auto;
    padding: 0 max(24px, 6vw);
    text-align: center;
}

.landing-features h2 {
    font-size: clamp(24px, 3vw, 36px);
    margin-bottom: 28px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}

.feature {
    text-align: left;
    padding: 22px;
    border-radius: 14px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    transition: transform .15s, box-shadow .15s;
}

.feature:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 26px;
}

.feature h3 {
    margin: 12px 0 6px;
}

.feature p {
    color: var(--text-muted);
    font-size: 13.5px;
    margin: 0;
}

.landing-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px max(24px, 6vw);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
    max-width: 1280px;
    margin: 0 auto;
}

/* ---------- Ticket thread ------------------------------------ */
.ticket-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
}

@media (max-width: 1000px) {
    .ticket-grid {
        grid-template-columns: 1fr;
    }
}

.thread {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px;
}

.msg {
    display: flex;
    gap: 14px;
}

.msg--internal .msg__body {
    background: rgba(245, 158, 11, .08);
    border: 1px dashed rgba(245, 158, 11, .35);
}

.msg__body {
    flex: 1;
    padding: 14px 16px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.msg--first .msg__body {
    background: var(--bg-elev);
}

.msg__body header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.msg__content {
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.6;
}

.attachments {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.attachments a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 12px;
    color: var(--text);
}

.attachments a:hover {
    border-color: var(--accent);
}

.attachments svg {
    width: 14px;
    height: 14px;
}

.composer {
    margin-top: 6px;
    padding: 14px;
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.composer__templates {
    align-self: flex-start;
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
}

.composer__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.composer__actions .check {
    margin-left: auto;
}

.file-pick {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    background: var(--bg-elev);
    font-weight: 500;
    font-size: 13px;
}

.file-pick input {
    display: none;
}

.file-pick svg {
    width: 16px;
    height: 16px;
}

.ticket-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.ticket-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ticket-side .card {
    margin-bottom: 16px;
}

.user-card {
    display: flex;
    gap: 12px;
    align-items: center;
}

.fav-btn {
    background: transparent;
    border: 0;
    color: var(--text-dim);
    cursor: pointer;
    padding: 4px;
}

.fav-btn svg {
    width: 18px;
    height: 18px;
}

.fav-btn.is-on {
    color: #f59e0b;
}

/* ---------- Pagination --------------------------------------- */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    padding: 14px 0 0;
    flex-wrap: wrap;
}

.pagination a {
    min-width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 500;
}

.pagination a:hover {
    border-color: var(--border-strong);
}

.pagination a.is-active {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

/* ---------- Timeline / activity feed ------------------------- */
.timeline {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline__item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
}

.timeline__item:last-child {
    border-bottom: 0;
}

.timeline__item p {
    margin: 0;
    font-size: 13.5px;
}

/* ---------- Admin grid -------------------------------------- */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.admin-card {
    padding: 20px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    box-shadow: var(--shadow-sm);
    transition: transform .15s, box-shadow .15s;
}

.admin-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    color: var(--text);
}

.admin-card p {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 13.5px;
}

/* ---------- Empty state ------------------------------------- */
.empty-state {
    text-align: center;
    padding: 36px 20px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.empty-state strong {
    color: var(--text);
    font-size: 16px;
}

.empty-state p {
    margin: 0;
}

/* ---------- Command palette --------------------------------- */
.palette {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: start center;
}

.palette[hidden] {
    display: none;
}

.palette__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 37, 64, .45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: paletteFade .2s ease;
}

@keyframes paletteFade {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.palette__window {
    position: relative;
    margin-top: 12vh;
    width: min(640px, 92vw);
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: paletteIn .2s var(--easing);
}

@keyframes paletteIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(.98)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.palette__input {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}

.palette__input svg {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.palette__input input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 16px;
    color: var(--text);
}

.palette__input kbd {
    padding: 2px 6px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 11px;
    color: var(--text-muted);
}

.palette__results {
    max-height: 50vh;
    overflow-y: auto;
    padding: 8px;
}

.palette__empty {
    padding: 30px;
    text-align: center;
    color: var(--text-muted);
}

.palette__group {
    padding: 6px 12px 4px;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.palette__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text);
    cursor: pointer;
}

.palette__item:hover,
.palette__item[aria-selected="true"] {
    background: var(--bg-soft);
}

.palette__item .muted {
    font-size: 12px;
}

/* ---------- Notification panel ------------------------------ */
.notif-panel {
    position: fixed;
    top: calc(var(--topbar-h) + 8px);
    right: 16px;
    width: min(380px, 92vw);
    max-height: 70vh;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    z-index: 50;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.notif-panel[hidden] {
    display: none;
}

.notif-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.notif-panel__head h3 {
    margin: 0;
}

.notif-panel__body {
    overflow-y: auto;
    padding: 6px;
}

.notif-item {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    transition: background .15s;
    color: var(--text);
}

.notif-item:hover {
    background: var(--bg-soft);
    color: var(--text);
}

.notif-item.unread::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    margin-top: 8px;
    flex-shrink: 0;
}

.notif-item__title {
    font-weight: 600;
    font-size: 13.5px;
}

.notif-item__body {
    color: var(--text-muted);
    font-size: 12.5px;
}

/* ---------- Dropzone --------------------------------------- */
.dropzone {
    position: relative;
    border: 1.5px dashed var(--border-strong);
    border-radius: 12px;
    padding: 24px;
    background: var(--bg-soft);
    text-align: center;
    transition: border-color .15s, background .15s;
}

.dropzone.is-drag {
    border-color: var(--accent);
    background: rgba(34, 211, 238, .08);
}

.dropzone input[type=file] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.dropzone__hint {
    color: var(--text-muted);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.dropzone__hint svg {
    width: 22px;
    height: 22px;
    color: var(--text-dim);
}

.dropzone__hint strong {
    color: var(--text);
    font-size: 14px;
}

.dropzone__list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dropzone__list li {
    padding: 4px 10px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 12px;
}

/* ---------- KB --------------------------------------------- */
.kb-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.kb-search svg {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.kb-search input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 15px;
    color: var(--text);
}

.kb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.kb-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    transition: transform .15s, box-shadow .15s;
}

.kb-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    color: var(--text);
}

.kb-card__cat {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--accent-600);
    font-weight: 700;
    letter-spacing: .06em;
}

.kb-card h3 {
    margin: 0;
}

.kb-card__meta {
    margin-top: auto;
    padding-top: 12px;
    color: var(--text-muted);
    font-size: 12px;
}

.prose {
    padding: 28px;
    line-height: 1.75;
    font-size: 15px;
}

/* ---------- Toasts ----------------------------------------- */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 18px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 60;
    animation: toastIn .25s var(--easing), toastOut .3s var(--easing) 3.4s forwards;
    max-width: 360px;
}

.toast--success {
    border-left: 3px solid var(--c-resolved);
}

.toast--error {
    border-left: 3px solid var(--c-critical);
}

@keyframes toastIn {
    from {
        transform: translateY(20px);
        opacity: 0
    }

    to {
        transform: none;
        opacity: 1
    }
}

@keyframes toastOut {
    to {
        transform: translateY(20px);
        opacity: 0
    }
}

/* ---------- Error pages ------------------------------------ */
.error-layout {
    background: var(--bg);
}

.error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    position: relative;
}

.error-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(34, 211, 238, .2), transparent 50%);
    pointer-events: none;
}

.error-code {
    font-size: clamp(80px, 16vw, 160px);
    font-weight: 800;
    letter-spacing: -.05em;
    line-height: 1;
    background: linear-gradient(120deg, var(--accent), #6366f1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- Misc ------------------------------------------- */
.token-preview {
    display: block;
    padding: 10px 12px;
    margin-top: 8px;
    background: var(--bg-soft);
    border-radius: 8px;
    word-break: break-all;
    font-family: var(--font-mono);
    font-size: 12px;
}

.token-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}

.token-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
}

.token-list li form {
    margin-left: auto;
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.agent-card {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px;
    background: var(--bg-soft);
    border-radius: 12px;
}

.agent-card p {
    margin: 0;
    font-size: 12px;
}

.props .field>select {
    font-size: 14px;
}

/* ---------- Upload permission widget --------------------- */
.upload-perm-card .upload-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-soft);
    border-radius: 10px;
}

.upload-status__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 4px currentColor;
    opacity: .25;
}

.upload-status--active {
    background: rgba(16, 185, 129, .08);
}

.upload-status--active .upload-status__dot {
    background: var(--c-resolved);
    color: var(--c-resolved);
    animation: pulse 1.8s infinite;
}

.upload-status--pending {
    background: rgba(245, 158, 11, .10);
    border: 1px solid rgba(245, 158, 11, .28);
}

.upload-status--pending .upload-status__dot {
    background: #f59e0b;
    color: #f59e0b;
    animation: pulse 1.8s infinite;
}

.upload-status--off {
    background: rgba(100, 116, 139, .08);
    color: var(--text-muted);
}

.upload-status--off .upload-status__dot {
    background: var(--text-dim);
    color: var(--text-dim);
    opacity: .35;
}

.upload-status strong {
    color: var(--text);
}

.upload-status .is-expired {
    color: var(--c-critical);
    font-weight: 600;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 4px currentColor;
        opacity: .25;
    }

    50% {
        box-shadow: 0 0 0 7px currentColor;
        opacity: .12;
    }
}

.upload-meta {
    list-style: none;
    padding: 0;
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.upload-meta li {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--text-muted);
    padding: 4px 0;
    border-bottom: 1px dashed var(--border);
}

.upload-meta li:last-child {
    border-bottom: 0;
}

.upload-meta strong {
    color: var(--text);
}

.upload-grant-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 6px;
}

.upload-grant-form .field>span {
    font-size: 12px;
}

.upload-grant-form select {
    padding: 8px 11px;
    font-size: 13px;
}

.file-pick--locked {
    color: var(--text-dim);
    cursor: not-allowed;
    background: var(--bg-soft) !important;
    opacity: .8;
}

.file-pick--locked:hover {
    transform: none;
}

/* Highlight the composer's file-pick when triggered from the sidebar shortcut. */
.file-pick--pulse {
    animation: filePickPulse 1.4s var(--easing);
    border-color: var(--accent) !important;
}

@keyframes filePickPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 211, 238, .55);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(34, 211, 238, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 211, 238, 0);
    }
}

/* Files queued for upload, listed under the textarea. */
.composer__files {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.composer__file {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px 5px 10px;
    background: rgba(34, 211, 238, .08);
    border: 1px solid rgba(34, 211, 238, .25);
    border-radius: 999px;
    font-size: 12.5px;
    color: var(--text);
    max-width: 100%;
    animation: fileChipIn .18s var(--easing);
}

@keyframes fileChipIn {
    from {
        opacity: 0;
        transform: translateY(-3px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.composer__file svg {
    color: var(--accent-600);
    flex-shrink: 0;
}

.composer__file-name {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 240px;
}

.composer__file-size {
    color: var(--text-muted);
    font-size: 11px;
}

.composer__file-remove {
    background: transparent;
    border: 0;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    border-radius: 50%;
    font-size: 14px;
    transition: color .15s, background .15s;
}

.composer__file-remove:hover {
    color: var(--c-critical);
    background: rgba(239, 68, 68, .1);
}

/* Tiny shake feedback when client tries to submit an empty composer. */
.shake {
    animation: shake .4s;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-4px);
    }

    40% {
        transform: translateX(4px);
    }

    60% {
        transform: translateX(-2px);
    }

    80% {
        transform: translateX(2px);
    }
}

/* ---------- Email templates admin ------------------------ */
.tpl-edit-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: start;
}

@media (max-width: 900px) {
    .tpl-edit-grid {
        grid-template-columns: 1fr;
    }
}

.placeholder-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.placeholder-chip {
    font-family: var(--font-mono);
    font-size: 11.5px;
    padding: 4px 9px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s, transform .12s;
}

.placeholder-chip:hover {
    background: rgba(34, 211, 238, .1);
    border-color: var(--accent);
    color: var(--accent-600);
}

.placeholder-chip.is-copied {
    background: var(--c-resolved);
    color: #fff;
    border-color: var(--c-resolved);
    transform: scale(1.05);
}

/* iOS-style toggle */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    border: 0;
    padding: 0;
    background: var(--border-strong);
    border-radius: 999px;
    cursor: pointer;
    transition: background .2s var(--easing);
    display: inline-block;
    vertical-align: middle;
}

.toggle-switch.is-on {
    background: var(--c-resolved);
}

.toggle-switch__knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
    transition: transform .2s var(--easing);
}

.toggle-switch.is-on .toggle-switch__knob {
    transform: translateX(20px);
}

.toggle-switch:hover {
    box-shadow: 0 0 0 3px rgba(34, 211, 238, .12);
}

/* ---------- CSAT rating (interactive 5-star) -------------- */
.resolve-form {
    display: flex;
    flex-direction: column;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
}

.resolve-form textarea {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-elev);
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    resize: vertical;
    min-height: 56px;
}

.resolve-form textarea:focus {
    outline: 0;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, .15);
}

/* Reversed-order radios so :hover/:checked + sibling-selector lights up all stars to the left. */
.rating-stars {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
    padding: 4px 0;
}

.rating-stars input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rating-stars label {
    cursor: pointer;
    color: var(--text-dim);
    transition: color .12s var(--easing), transform .12s;
}

.rating-stars label svg {
    width: 26px;
    height: 26px;
    display: block;
}

.rating-stars label:hover,
.rating-stars label:hover~label,
.rating-stars input:checked~label {
    color: #f59e0b;
}

.rating-stars label:hover {
    transform: scale(1.12);
}

.rating-stars input:focus-visible+label {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Static read-only display for staff side */
.feedback-card .rating-display {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.feedback-card .rating-display svg {
    width: 18px;
    height: 18px;
    color: var(--text-dim);
}

.feedback-card .rating-display svg.on {
    color: #f59e0b;
}

.feedback-card .rating-display .muted {
    margin-left: 8px;
}

.feedback-comment {
    margin: 8px 0 0;
    padding: 10px 14px;
    background: var(--bg-soft);
    border-left: 3px solid #f59e0b;
    border-radius: 8px;
    font-style: italic;
    color: var(--text);
    line-height: 1.55;
}

/* =====================================================================
   Invoicing module
   ===================================================================== */

/* Payment method picker (client pay page). */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 6px 0 14px;
}

.payment-method {
    display: block;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: var(--bg-elev);
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
}

.payment-method:hover {
    border-color: var(--border-strong);
}

.payment-method input[type=radio] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-method__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.payment-method__icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: var(--bg-soft);
    border-radius: 10px;
    font-size: 18px;
    flex-shrink: 0;
}

.payment-method__head strong {
    display: block;
    font-size: 15px;
}

.payment-method__head p {
    margin: 2px 0 0;
}

.payment-method.is-selected {
    border-color: var(--accent);
    background: rgba(34, 211, 238, .04);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, .12);
}

.payment-method__details {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-method__details pre {
    margin: 0;
    padding: 12px 14px;
    background: var(--bg-soft);
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    white-space: pre-wrap;
    color: var(--text);
}

.payment-method__details input[type=file] {
    padding: 8px;
    background: var(--bg-soft);
    border: 1px dashed var(--border-strong);
    border-radius: 8px;
}

/* Payment history rows (admin invoice show). */
.payment-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.payment-row {
    /* This list lives in a narrow aside on the invoice show page, so we stack
       the main info on top and put the admin actions on a second row. That
       keeps the amount + chip readable without the action buttons climbing on
       top of them. */
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-soft);
    border-radius: 10px;
    border-left: 3px solid var(--c-resolved);
}

.payment-row--pending_review {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, .06);
}

.payment-row--rejected {
    border-left-color: var(--c-critical);
    background: rgba(239, 68, 68, .05);
    opacity: .85;
}

.payment-row__main {
    min-width: 0;
}

.payment-row__top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    /* Long amounts (e.g. "$1,000,000.00") shouldn't push the chip off-screen. */
    word-break: break-word;
}

.payment-row__top strong {
    font-size: 15px;
}

.payment-row__proof {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    padding: 4px 10px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text);
    text-decoration: none;
}

.payment-row__proof svg {
    width: 12px;
    height: 12px;
}

.payment-row__proof:hover {
    border-color: var(--accent);
}

.payment-row__actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 8px;
    border-top: 1px dashed var(--border);
}

.payment-row__actions .btn {
    flex: 1 1 auto;
    justify-content: center;
}

/* The void (×) button is always right-aligned. When it's the only action
   on the row (already-approved payments) it hugs the right edge instead of
   floating awkwardly on the left. */
.payment-row__actions .icon-btn {
    flex: 0 0 auto;
    margin-left: auto;
}

.btn--sm {
    padding: 6px 10px;
    font-size: 12.5px;
}

/* Status pill must never wrap mid-word — "Pending review" stays on one line. */
.chip--pay-status {
    white-space: nowrap;
}

.chip--pay-status[data-status="approved"] {
    color: #047857;
    background: rgba(16, 185, 129, .12);
    border-color: rgba(16, 185, 129, .3);
}

.chip--pay-status[data-status="pending_review"] {
    color: #b45309;
    background: rgba(245, 158, 11, .14);
    border-color: rgba(245, 158, 11, .3);
}

.chip--pay-status[data-status="rejected"] {
    color: #b91c1c;
    background: rgba(239, 68, 68, .12);
    border-color: rgba(239, 68, 68, .3);
}

/* Admin payment methods config (one row per method). */
.pm-row {
    padding: 14px 0;
    border-bottom: 1px dashed var(--border);
}

.pm-row:last-child {
    border-bottom: 0;
}

.pm-row__head .check strong {
    font-size: 14px;
}

/* Status pills (independent palette from ticket statuses). */
.chip--inv-status {
    font-weight: 700;
}

.chip--inv-status[data-status="draft"] {
    color: #475569;
    background: rgba(100, 116, 139, .12);
    border-color: rgba(100, 116, 139, .3);
}

.chip--inv-status[data-status="pending"] {
    color: #b45309;
    background: rgba(245, 158, 11, .12);
    border-color: rgba(245, 158, 11, .3);
}

.chip--inv-status[data-status="validated"] {
    color: #1d4ed8;
    background: rgba(59, 130, 246, .12);
    border-color: rgba(59, 130, 246, .3);
}

.chip--inv-status[data-status="rejected"] {
    color: #b91c1c;
    background: rgba(239, 68, 68, .12);
    border-color: rgba(239, 68, 68, .3);
}

.chip--inv-status[data-status="sent"] {
    color: #7c3aed;
    background: rgba(168, 85, 247, .12);
    border-color: rgba(168, 85, 247, .3);
}

.chip--inv-status[data-status="pending_payment"] {
    color: #7c3aed;
    background: rgba(168, 85, 247, .12);
    border-color: rgba(168, 85, 247, .3);
}

.chip--inv-status[data-status="unpaid"] {
    color: #b91c1c;
    background: rgba(239, 68, 68, .14);
    border-color: rgba(239, 68, 68, .35);
}

.chip--inv-status[data-status="partially_paid"] {
    color: #b45309;
    background: rgba(245, 158, 11, .14);
    border-color: rgba(245, 158, 11, .35);
}

.chip--inv-status[data-status="in_progress"] {
    color: #0e7490;
    background: rgba(34, 211, 238, .14);
    border-color: rgba(34, 211, 238, .35);
}

.chip--inv-status[data-status="paid"] {
    color: #047857;
    background: rgba(16, 185, 129, .12);
    border-color: rgba(16, 185, 129, .3);
}

.chip--inv-status[data-status="completed"] {
    color: #065f46;
    background: rgba(5, 150, 105, .18);
    border-color: rgba(5, 150, 105, .45);
}

.chip--inv-status[data-status="delivered"] {
    color: #064e3b;
    background: rgba(4, 120, 87, .20);
    border-color: rgba(4, 120, 87, .50);
}

.chip--inv-status[data-status="on_hold"] {
    color: #475569;
    background: rgba(148, 163, 184, .18);
    border-color: rgba(148, 163, 184, .45);
}

.chip--inv-status[data-status="cancelled"] {
    color: #64748b;
    background: rgba(100, 116, 139, .12);
    border-color: rgba(100, 116, 139, .3);
}

.cell-money {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.text-danger {
    color: #ef4444;
}

/* Form layout for create/edit */
.invoice-form__grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: start;
}

@media (max-width: 1000px) {
    .invoice-form__grid {
        grid-template-columns: 1fr;
    }
}

/* Line item editor */
.line-items__head,
.line-item {
    display: grid;
    grid-template-columns: 1fr 80px 110px 70px 70px 100px 30px;
    gap: 8px;
    align-items: center;
}

.line-items__head {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    padding: 0 6px 6px;
}

.line-item {
    padding: 8px 0;
    border-top: 1px dashed var(--border);
}

.line-item input {
    padding: 7px 9px;
    font-size: 13px;
}

.line-item__total {
    font-weight: 600;
    color: var(--text);
    text-align: right;
    padding-right: 4px;
}

.line-item__rm {
    background: transparent;
    border: 0;
    cursor: pointer;
    color: var(--text-muted);
    padding: 6px;
    border-radius: 6px;
    transition: color .15s, background .15s;
}

.line-item__rm:hover {
    color: var(--c-critical);
    background: rgba(239, 68, 68, .1);
}

.line-item__rm svg {
    width: 14px;
    height: 14px;
    display: block;
}

/* Invoice summary panel */
.invoice-summary .form-grid {
    grid-template-columns: 1fr;
    gap: 10px;
}

.invoice-totals {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.invoice-totals li {
    display: flex;
    justify-content: space-between;
    font-size: 13.5px;
    color: var(--text-muted);
    padding: 6px 0;
    border-bottom: 1px dashed var(--border);
}

.invoice-totals li:last-child {
    border-bottom: 0;
}

.invoice-totals strong {
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.invoice-totals .grand {
    padding-top: 10px;
    border-top: 2px solid var(--border);
    border-bottom: 0;
    font-size: 16px;
}

.invoice-totals .grand span {
    color: var(--text);
    font-weight: 600;
}

.invoice-totals .grand strong {
    font-size: 18px;
    color: var(--brand);
}

:root[data-theme="dark"] .invoice-totals .grand strong {
    color: var(--accent);
}

/* Show page */
.invoice-show__grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: start;
}

@media (max-width: 1000px) {
    .invoice-show__grid {
        grid-template-columns: 1fr;
    }
}

.invoice-card {
    padding: 28px;
}

.invoice-card__header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.invoice-card__header h4 {
    margin: 4px 0 6px;
}

.invoice-lines th,
.invoice-lines td {
    padding: 10px 12px;
}

.invoice-totals-block {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
}

.invoice-totals-block .invoice-totals {
    min-width: 280px;
}

.invoice-block {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px dashed var(--border);
}

.invoice-block h4 {
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 11px;
}

.invoice-block p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---------- PDF stylesheet (used both on-screen and on @media print) -- */
.pdf-layout {
    background: #f3f4f6;
}

.pdf-page {
    max-width: 800px;
    margin: 24px auto;
    background: #fff;
    color: #1f2937;
    padding: 56px 60px;
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .18);
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.55;
}

.pdf-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding-bottom: 28px;
    border-bottom: 2px solid #0a2540;
}

.pdf-head h1 {
    margin: 0;
    font-size: 32px;
    letter-spacing: -.02em;
    color: #0a2540;
}

.pdf-head h2 {
    margin: 0 0 4px;
    font-size: 18px;
    color: #0a2540;
}

.pdf-head .pdf-meta {
    margin: 8px 0 0;
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
}

.pdf-brand {
    text-align: right;
    font-size: 13px;
    color: #475569;
}

.pdf-brand p {
    margin: 2px 0;
}

.pdf-bill-to {
    margin: 24px 0;
}

.pdf-bill-to h3 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6b7280;
    margin: 0 0 8px;
}

.pdf-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.pdf-table th {
    text-align: left;
    background: #0a2540;
    color: #fff;
    padding: 10px 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.pdf-table td {
    padding: 11px 12px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13.5px;
}

.pdf-table tr:nth-child(even) td {
    background: #fafafa;
}

.pdf-totals {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.pdf-totals table {
    border-collapse: collapse;
    min-width: 320px;
}

.pdf-totals td {
    padding: 6px 12px;
    font-size: 13.5px;
}

.pdf-totals tr td:last-child {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.pdf-totals__grand td {
    font-weight: 700;
    font-size: 16px;
    border-top: 2px solid #0a2540;
    padding-top: 10px;
    color: #0a2540;
}

.pdf-notes {
    margin-top: 24px;
    padding: 14px 16px;
    background: #f9fafb;
    border-left: 3px solid #22d3ee;
    border-radius: 6px;
    font-size: 13px;
    color: #1f2937;
}

.pdf-notes h4 {
    margin: 0 0 4px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6b7280;
}

.pdf-foot {
    margin-top: 40px;
    text-align: center;
    font-size: 12px;
    color: #6b7280;
}

.pdf-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
}

@media print {

    .pdf-actions,
    .sidebar,
    .topbar {
        display: none !important;
    }

    .pdf-layout,
    body {
        background: #fff;
    }

    .pdf-page {
        box-shadow: none;
        margin: 0;
        max-width: none;
        padding: 24mm;
    }

    @page {
        margin: 16mm;
        size: A4 portrait;
    }
}

/* ---------- Skeleton loaders ------------------------------ */
.skeleton {
    background: linear-gradient(90deg, var(--bg-soft), var(--border), var(--bg-soft));
    background-size: 200% 100%;
    animation: shimmer 1.4s linear infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    to {
        background-position: -200% 0
    }
}

/* ---------- Deposit / down payment ------------------------ */
.deposit-card .card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.deposit-body {
    margin-top: 12px;
}

.deposit-body .form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

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

.toggle__track {
    width: 38px;
    height: 22px;
    border-radius: 999px;
    background: var(--border);
    transition: background .2s var(--easing);
    position: relative;
    display: inline-block;
}

.toggle__thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
    transition: left .2s var(--easing);
}

.toggle input:checked+.toggle__track {
    background: linear-gradient(180deg, #10b981, #059669);
}

.toggle input:checked+.toggle__track .toggle__thumb {
    left: 18px;
}

.toggle input:focus-visible+.toggle__track {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, .25);
}

.input-suffix {
    position: relative;
    display: flex;
    align-items: center;
}

.input-suffix input {
    padding-right: 32px;
    width: 100%;
}

.input-suffix__suffix {
    position: absolute;
    right: 10px;
    color: var(--muted);
    font-weight: 600;
    pointer-events: none;
}

.deposit-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    margin: 12px 0;
    border: 1px solid;
}

.deposit-banner__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.deposit-banner p {
    margin: 2px 0 0;
}

.deposit-banner--pending {
    background: rgba(245, 158, 11, .08);
    border-color: rgba(245, 158, 11, .35);
}

.deposit-banner--pending .deposit-banner__icon {
    background: rgba(245, 158, 11, .15);
    color: #b45309;
}

.deposit-banner--paid {
    background: rgba(16, 185, 129, .08);
    border-color: rgba(16, 185, 129, .35);
}

.deposit-banner--paid .deposit-banner__icon {
    background: rgba(16, 185, 129, .15);
    color: #047857;
}

/* ---------- Backup options grid ------------------------------------- */
.backup-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-top: 20px;
}

.backup-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
}

.backup-card h3 {
    margin: 0;
    font-size: 17px;
}

.backup-card p {
    margin: 0;
    line-height: 1.5;
}

.backup-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

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

.backup-card__icon--db {
    color: #06b6d4;
    background: rgba(34, 211, 238, .14);
}

.backup-card__icon--full {
    color: #6366f1;
    background: rgba(99, 102, 241, .15);
}

.backup-card--featured {
    border: 1px solid rgba(99, 102, 241, .35);
    box-shadow: 0 12px 30px rgba(99, 102, 241, .08);
}

.backup-card .chip--accent {
    align-self: flex-start;
    background: linear-gradient(180deg, #6366f1, #4f46e5);
    color: #fff;
    border-color: transparent;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.backup-list {
    list-style: none;
    padding: 0;
    margin: 8px 0;
    line-height: 1.7;
}

.backup-card__cta {
    background: linear-gradient(180deg, #6366f1, #4f46e5);
}

.backup-card__cta:hover {
    filter: brightness(1.08);
}

/* ---------- Modal dialog (CSP-safe replacement for prompt/confirm) ---- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal[hidden] {
    display: none;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 37, 64, .55);
    backdrop-filter: blur(8px) saturate(140%);
    -webkit-backdrop-filter: blur(8px) saturate(140%);
    animation: modalFade .18s ease-out;
}

.modal__card {
    position: relative;
    background: var(--bg-elev, #fff);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 28px 80px rgba(10, 37, 64, .35), 0 8px 24px rgba(10, 37, 64, .15);
    width: min(460px, 100%);
    overflow: hidden;
    animation: modalIn .22s cubic-bezier(.16, 1, .3, 1);
}

@keyframes modalFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.modal__head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.modal__close {
    background: transparent;
    border: 0;
    padding: 4px;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    display: inline-flex;
    transition: background .15s, color .15s;
}

.modal__close svg {
    width: 18px;
    height: 18px;
}

.modal__close:hover {
    background: var(--bg-soft);
    color: var(--text);
}

.modal__body {
    padding: 18px 20px;
}

.modal__body p {
    margin: 0 0 14px;
    line-height: 1.5;
    color: var(--text);
}

.modal__body .field {
    margin: 0;
}

.modal__body textarea {
    width: 100%;
    min-height: 90px;
    resize: vertical;
    transition: border-color .15s, box-shadow .15s;
}

.modal__body textarea.is-error {
    border-color: var(--c-critical);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .18);
}

.modal__required {
    color: var(--c-critical);
    font-weight: 700;
}

.modal__error {
    display: block;
    margin-top: 6px;
    color: var(--c-critical);
}

.modal__foot {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding: 12px 20px 16px;
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
}

/* ---------- Project card (ticket-linked invoices) --------- */
.chip--project {
    background: linear-gradient(180deg, #6366f1, #4f46e5);
    color: #fff;
    border-color: transparent;
    letter-spacing: .08em;
    font-size: 11px;
    text-transform: uppercase;
}

.project-card {
    border-top: 3px solid;
    padding-top: 14px;
}

.project-card .card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.project-card .card__head h3 {
    margin: 0;
}

.project-card p {
    line-height: 1.5;
}

.project-card--awaiting {
    border-top-color: #f59e0b;
    background: rgba(245, 158, 11, .05);
}

.project-card--in_progress {
    border-top-color: #22d3ee;
    background: rgba(34, 211, 238, .06);
}

.project-card--completed {
    border-top-color: #10b981;
    background: rgba(16, 185, 129, .06);
}

.project-card__cta {
    background: linear-gradient(180deg, #10b981, #059669);
    margin-top: 4px;
}

/* ---------- Mobile ---------------------------------------- */
@media (max-width: 900px) {
    .app-layout {
        padding-left: 0;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform .25s var(--easing);
    }

    .app-layout.is-mobile-open .sidebar {
        transform: translateX(0);
    }

    .topbar {
        left: 0;
        padding: 0 16px;
    }

    .topbar__menu {
        display: inline-flex;
    }

    .topbar__new span {
        display: none;
    }

    .app-main {
        padding: calc(var(--topbar-h) + 16px) 16px 60px;
    }

    .page__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .head-actions {
        flex-wrap: wrap;
    }

    .dash-row {
        grid-template-columns: 1fr;
    }

    .filters {
        padding: 10px;
    }

    .filters select,
    .filters .btn {
        flex: 1;
    }
}

/* ---------- Print (PDF export) --------------------------- */
@media print {

    .sidebar,
    .topbar,
    .composer,
    .form-actions,
    .head-actions,
    .filters {
        display: none !important;
    }

    .app-layout {
        padding-left: 0;
    }

    .app-main {
        padding: 0;
    }

    .card {
        border: 1px solid #ddd;
        box-shadow: none;
    }

    body {
        background: #fff;
        color: #000;
    }
}

/* ================================================================
   LANDING PAGE — Premium DA
   Stripe × Linear × Notion × Vercel
   Prefix: .lp-*
   ================================================================ */

.lp {
    --lp-navy: #0a2540;
    --lp-navy-2: #1e3a5f;
    --lp-cyan: #22d3ee;
    --lp-cyan-2: #06b6d4;
    --lp-violet: #7c5cff;
    --lp-mint: #10b981;
    --lp-amber: #f59e0b;
    --lp-coral: #ef4444;
    --lp-bg: #fafbfc;
    --lp-surface: #ffffff;
    --lp-mist: #e5e7eb;
    --lp-text: #0a2540;
    --lp-muted: #5b6b80;
    --lp-dim: #93a1b5;
    --lp-lavender: #f3f0ff;
    --lp-radius: 16px;
    --lp-shadow: 0 24px 64px -16px rgba(10, 37, 64, .15), 0 8px 16px -8px rgba(10, 37, 64, .08);
    --lp-shadow-sm: 0 4px 12px -4px rgba(10, 37, 64, .1);
    --lp-ease: cubic-bezier(.4, 0, .2, 1);

    background: var(--lp-bg);
    color: var(--lp-text);
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.lp * {
    box-sizing: border-box;
}

.lp-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 max(20px, 5vw);
}

.lp-container--narrow {
    max-width: 820px;
}

/* ---------- NAV ---------- */
.lp-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px max(20px, 5vw);
    background: rgba(255, 255, 255, .78);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(229, 231, 235, .6);
}

.lp-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--lp-text);
    font-weight: 700;
    font-size: 17px;
    text-decoration: none;
}

.lp-brand__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--lp-navy), var(--lp-navy-2));
    color: var(--lp-cyan);
    box-shadow: var(--lp-shadow-sm);
}

.lp-brand__suffix {
    font-weight: 600;
    color: var(--lp-cyan-2);
    font-size: .8em;
    letter-spacing: .02em;
}

.lp-nav__links {
    display: flex;
    gap: 28px;
    margin-left: auto;
}

.lp-nav__links a {
    color: var(--lp-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color .15s var(--lp-ease);
}

.lp-nav__links a:hover {
    color: var(--lp-text);
}

.lp-nav__cta {
    display: flex;
    gap: 8px;
}

@media (max-width: 860px) {
    .lp-nav__links {
        display: none;
    }
}

/* ---------- BUTTONS ---------- */
.lp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .12s var(--lp-ease), box-shadow .15s var(--lp-ease), background .15s var(--lp-ease);
    line-height: 1;
}

.lp-btn--primary {
    background: linear-gradient(135deg, var(--lp-navy) 0%, var(--lp-navy-2) 100%);
    color: #fff;
    box-shadow: 0 8px 24px -8px rgba(10, 37, 64, .45), 0 1px 0 rgba(255, 255, 255, .06) inset;
}

.lp-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px -8px rgba(10, 37, 64, .55), 0 0 0 4px rgba(34, 211, 238, .18);
}

.lp-btn--ghost {
    background: rgba(10, 37, 64, .04);
    color: var(--lp-text);
    border-color: rgba(10, 37, 64, .08);
}

.lp-btn--ghost:hover {
    background: rgba(10, 37, 64, .08);
}

.lp-btn--soft {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border-color: rgba(255, 255, 255, .18);
    backdrop-filter: blur(8px);
}

.lp-btn--soft:hover {
    background: rgba(255, 255, 255, .2);
}

.lp-btn--lg {
    padding: 14px 24px;
    font-size: 15px;
}

.lp-btn--block {
    width: 100%;
    justify-content: center;
}

/* ---------- HERO ---------- */
.lp-hero {
    position: relative;
    overflow: hidden;
    padding: 80px 0 120px;
}

.lp-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.lp-blob {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: .35;
}

.lp-blob--cyan {
    background: var(--lp-cyan);
    top: -160px;
    left: -120px;
}

.lp-blob--violet {
    background: var(--lp-violet);
    top: 80px;
    right: -160px;
    opacity: .25;
}

.lp-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(10, 37, 64, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 37, 64, .04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 70%);
}

.lp-hero__inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.lp-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 8px;
    background: rgba(255, 255, 255, .7);
    border: 1px solid rgba(10, 37, 64, .08);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--lp-text);
    text-decoration: none;
    margin-bottom: 28px;
    box-shadow: var(--lp-shadow-sm);
    backdrop-filter: blur(8px);
    transition: transform .15s var(--lp-ease);
}

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

.lp-pill__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lp-mint);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, .18);
    animation: lp-pulse 2s var(--lp-ease) infinite;
}

@keyframes lp-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 4px rgba(16, 185, 129, .18);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, .0);
    }
}

.lp-h1 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(40px, 6.2vw, 72px);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.04;
    margin: 0 0 20px;
    color: var(--lp-text);
}

.lp-h1__grad {
    background: linear-gradient(120deg, var(--lp-cyan) 0%, var(--lp-violet) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lp-lead {
    font-size: 18px;
    line-height: 1.6;
    color: var(--lp-muted);
    max-width: 640px;
    margin: 0 auto 32px;
}

.lp-lead--center {
    text-align: center;
}

.lp-lead--dark {
    color: rgba(255, 255, 255, .78);
}

.lp-hero__cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.lp-trust {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--lp-dim);
    margin: 0 0 70px;
}

/* ---------- HERO STAGE (dashboard mockup) ---------- */
.lp-stage {
    position: relative;
    max-width: 1080px;
    margin: 40px auto 0;
    perspective: 1600px;
}

.lp-stage__glow {
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: -40px;
    height: 120px;
    background: radial-gradient(ellipse at center, rgba(34, 211, 238, .3), transparent 70%);
    filter: blur(40px);
    z-index: -1;
}

.lp-window {
    background: var(--lp-surface);
    border: 1px solid var(--lp-mist);
    border-radius: 20px;
    box-shadow:
        0 50px 120px -30px rgba(10, 37, 64, .25),
        0 12px 32px -12px rgba(10, 37, 64, .15);
    overflow: hidden;
    transform: perspective(1600px) rotateX(2deg);
    transform-origin: center top;
}

.lp-window__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: #f7f9fc;
    border-bottom: 1px solid var(--lp-mist);
}

.lp-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.lp-dot--red {
    background: #ff5f57;
}

.lp-dot--amber {
    background: #ffbd2e;
}

.lp-dot--mint {
    background: #28c840;
}

.lp-window__url {
    margin-left: 16px;
    font-size: 12px;
    color: var(--lp-dim);
    font-family: 'JetBrains Mono', monospace;
}

.lp-window__body {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 420px;
}

.lp-mini-side {
    background: #f7f9fc;
    border-right: 1px solid var(--lp-mist);
    padding: 18px 14px;
}

.lp-mini-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px 14px;
    font-size: 14px;
    font-weight: 700;
    border-bottom: 1px solid var(--lp-mist);
    margin-bottom: 12px;
}

.lp-mini-brand__mark {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--lp-navy), var(--lp-cyan));
}

.lp-mini-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lp-mini-nav__item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--lp-muted);
    font-weight: 500;
}

.lp-mini-nav__item em {
    margin-left: auto;
    font-style: normal;
    font-size: 11px;
    padding: 1px 6px;
    background: rgba(10, 37, 64, .06);
    border-radius: 6px;
    color: var(--lp-text);
}

.lp-mini-nav__item.is-active {
    background: linear-gradient(135deg, rgba(34, 211, 238, .14), rgba(124, 92, 255, .10));
    color: var(--lp-text);
    font-weight: 600;
}

.lp-mini-main {
    padding: 22px 24px;
}

.lp-mini-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.lp-mini-eyebrow {
    font-size: 11px;
    color: var(--lp-dim);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 600;
}

.lp-mini-title {
    font-size: 18px;
    font-weight: 700;
    margin-top: 4px;
}

.lp-mini-search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid var(--lp-mist);
    border-radius: 8px;
    font-size: 12px;
    color: var(--lp-dim);
    background: #fff;
}

.lp-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.lp-kpi {
    padding: 14px;
    border: 1px solid var(--lp-mist);
    border-radius: 12px;
    background: linear-gradient(180deg, #fff 0%, #fafbff 100%);
}

.lp-kpi__label {
    font-size: 11px;
    color: var(--lp-dim);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 600;
}

.lp-kpi__value {
    display: block;
    font-size: 22px;
    font-weight: 700;
    margin: 6px 0 4px;
    letter-spacing: -.02em;
}

.lp-kpi__trend {
    font-size: 11px;
    color: var(--lp-dim);
    font-weight: 600;
}

.lp-kpi__trend--up {
    color: var(--lp-mint);
}

.lp-kpi__trend--warn {
    color: var(--lp-amber);
}

.lp-mini-chart {
    border: 1px solid var(--lp-mist);
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 14px;
    background: #fff;
}

.lp-mini-chart svg {
    display: block;
    width: 100%;
}

.lp-mini-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lp-mini-row {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--lp-mist);
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
}

.lp-mini-row__title {
    font-weight: 500;
    color: var(--lp-text);
}

.lp-mini-row__meta {
    color: var(--lp-dim);
    font-size: 12px;
}

.lp-chip {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.lp-chip--high {
    background: rgba(239, 68, 68, .12);
    color: #b91c1c;
}

.lp-chip--mid {
    background: rgba(245, 158, 11, .14);
    color: #b45309;
}

.lp-chip--low {
    background: rgba(16, 185, 129, .14);
    color: #047857;
}

.lp-chip--paid {
    background: rgba(16, 185, 129, .14);
    color: #047857;
}

/* Floating cards */
.lp-float {
    position: absolute;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(229, 231, 235, .7);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 24px 50px -16px rgba(10, 37, 64, .25), 0 8px 16px -8px rgba(10, 37, 64, .1);
    z-index: 3;
    animation: lp-float 6s var(--lp-ease) infinite;
}

@keyframes lp-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.lp-float--notif {
    top: 40px;
    right: -10px;
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 230px;
}

.lp-float--notif strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
}

.lp-float--notif span:not(.lp-float__icon) {
    font-size: 12px;
    color: var(--lp-dim);
}

.lp-float__icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.lp-float__icon--mint {
    background: rgba(16, 185, 129, .14);
    color: var(--lp-mint);
}

.lp-float--invoice {
    bottom: -20px;
    left: -20px;
    min-width: 240px;
    animation-delay: -3s;
}

.lp-float__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin-bottom: 4px;
}

.lp-float__row--meta {
    color: var(--lp-dim);
    font-size: 11px;
    margin-top: 6px;
    margin-bottom: 0;
}

.lp-float__amount {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 4px 0;
}

.lp-mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--lp-muted);
}

@media (max-width: 860px) {
    .lp-window__body {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .lp-mini-side {
        display: none;
    }

    .lp-kpis {
        grid-template-columns: 1fr;
    }

    .lp-mini-row {
        grid-template-columns: 60px 1fr;
    }

    .lp-mini-row__meta {
        display: none;
    }

    .lp-float--notif {
        right: 12px;
        top: 24px;
        min-width: 0;
        padding: 10px;
    }

    .lp-float--invoice {
        left: 12px;
        bottom: -12px;
        min-width: 0;
        padding: 10px;
    }

    .lp-float__amount {
        font-size: 16px;
    }
}

/* ---------- LOGOS BAR ---------- */
.lp-logos {
    padding: 48px 0 32px;
    border-top: 1px solid var(--lp-mist);
    border-bottom: 1px solid var(--lp-mist);
    background: #fff;
}

.lp-logos__caption {
    text-align: center;
    font-size: 12px;
    color: var(--lp-dim);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-weight: 600;
    margin: 0 0 24px;
}

.lp-logos__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 48px;
    opacity: .65;
}

.lp-logo {
    font-weight: 700;
    font-size: 17px;
    color: var(--lp-muted);
    letter-spacing: -.01em;
}

/* ---------- SECTIONS ---------- */
.lp-section {
    padding: 100px 0;
    position: relative;
}

.lp-section--alt {
    background: linear-gradient(180deg, #fff 0%, #f6f9ff 100%);
    border-top: 1px solid var(--lp-mist);
    border-bottom: 1px solid var(--lp-mist);
}

.lp-section--dark {
    background: radial-gradient(ellipse at top, #173b62 0%, #0a2540 60%, #061a31 100%);
    color: #fff;
    overflow: hidden;
}

.lp-section--dark::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 70%);
    pointer-events: none;
}

.lp-section__head {
    text-align: center;
    margin-bottom: 56px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.lp-eyebrow {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(34, 211, 238, .12);
    color: var(--lp-cyan-2);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    border-radius: 999px;
    margin-bottom: 16px;
}

.lp-eyebrow--dark {
    background: rgba(34, 211, 238, .18);
    color: var(--lp-cyan);
}

.lp-h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.1;
    margin: 0 0 16px;
}

.lp-h2--dark {
    color: #fff;
}

.lp-h2__grad {
    background: linear-gradient(120deg, var(--lp-cyan) 0%, var(--lp-violet) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lp-muted {
    color: var(--lp-muted);
    font-weight: 600;
}

/* ---------- FEATURES ---------- */
.lp-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.lp-card {
    background: var(--lp-surface);
    border: 1px solid var(--lp-mist);
    border-radius: var(--lp-radius);
    padding: 28px;
    transition: transform .25s var(--lp-ease), box-shadow .25s var(--lp-ease), border-color .25s var(--lp-ease);
}

.lp-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--lp-shadow);
    border-color: rgba(34, 211, 238, .4);
}

.lp-feature__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.lp-feature__icon--cyan {
    background: rgba(34, 211, 238, .14);
    color: var(--lp-cyan-2);
}

.lp-feature__icon--violet {
    background: rgba(124, 92, 255, .14);
    color: var(--lp-violet);
}

.lp-feature__icon--mint {
    background: rgba(16, 185, 129, .14);
    color: var(--lp-mint);
}

.lp-feature__icon--amber {
    background: rgba(245, 158, 11, .14);
    color: var(--lp-amber);
}

.lp-feature h3 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 0 0 10px;
}

.lp-feature p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--lp-muted);
    margin: 0 0 14px;
}

.lp-feature__list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--lp-mist);
    padding-top: 14px;
}

.lp-feature__list li {
    position: relative;
    padding-left: 22px;
    font-size: 13px;
    color: var(--lp-text);
    margin-bottom: 6px;
}

.lp-feature__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(16, 185, 129, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%2310b981' stroke-width='2'%3E%3Cpath d='M3 6l2 2 4-5'/%3E%3C/svg%3E") center/9px no-repeat;
}

/* ---------- ARCHITECTURE ---------- */
.lp-arch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    padding: 40px 0 60px;
}

.lp-arch__layer {
    flex: 1;
    min-width: 180px;
    background: #fff;
    border: 1px solid var(--lp-mist);
    border-radius: var(--lp-radius);
    padding: 18px;
    text-align: center;
    box-shadow: var(--lp-shadow-sm);
}

.lp-arch__layer--accent {
    background: linear-gradient(135deg, var(--lp-navy), var(--lp-navy-2));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 16px 32px -8px rgba(10, 37, 64, .35);
}

.lp-arch__label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--lp-dim);
    font-weight: 600;
    margin-bottom: 12px;
}

.lp-arch__layer--accent .lp-arch__label {
    color: rgba(255, 255, 255, .6);
}

.lp-arch__nodes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lp-arch__node {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(10, 37, 64, .04);
    border: 1px solid rgba(10, 37, 64, .06);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    justify-content: center;
}

.lp-arch__layer--accent .lp-arch__node {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .12);
    color: #fff;
}

.lp-arch__node--featured {
    background: rgba(34, 211, 238, .18) !important;
    border-color: rgba(34, 211, 238, .4) !important;
    color: var(--lp-cyan) !important;
    font-weight: 700;
}

.lp-arch__arrow {
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--lp-cyan), transparent);
    position: relative;
    flex-shrink: 0;
}

.lp-arch__arrow::after {
    content: "";
    position: absolute;
    right: -2px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lp-cyan);
    transform: translateY(-50%);
    box-shadow: 0 0 12px var(--lp-cyan);
}

.lp-arch__shield {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid rgba(34, 211, 238, .4);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--lp-cyan-2);
    box-shadow: 0 8px 24px -8px rgba(34, 211, 238, .4);
}

@media (max-width: 860px) {
    .lp-arch__arrow {
        width: 2px;
        height: 24px;
        background: linear-gradient(180deg, transparent, var(--lp-cyan), transparent);
    }

    .lp-arch__layer {
        width: 100%;
    }
}

/* ---------- BEFORE / AFTER ---------- */
.lp-compare {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
}

.lp-compare__col {
    background: #fff;
    border: 1px solid var(--lp-mist);
    border-radius: var(--lp-radius);
    padding: 32px;
    position: relative;
}

.lp-compare__col--before {
    background: linear-gradient(180deg, #fafbfc, #fff);
    opacity: .82;
}

.lp-compare__col--after {
    background: linear-gradient(180deg, #fff, #f0fdf4);
    border-color: rgba(16, 185, 129, .3);
    box-shadow: 0 24px 48px -16px rgba(16, 185, 129, .25);
}

.lp-compare__tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(10, 37, 64, .06);
    color: var(--lp-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 14px;
}

.lp-compare__tag--good {
    background: rgba(16, 185, 129, .14);
    color: #047857;
}

.lp-compare__col h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 18px;
    letter-spacing: -.01em;
}

.lp-compare__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lp-compare__list li {
    padding: 8px 0 8px 24px;
    border-bottom: 1px solid rgba(10, 37, 64, .06);
    font-size: 14px;
    position: relative;
}

.lp-compare__list li:last-child {
    border-bottom: none;
}

.lp-compare__col--before .lp-compare__list li::before {
    content: "✕";
    position: absolute;
    left: 0;
    color: var(--lp-coral);
    font-weight: 700;
}

.lp-compare__col--after .lp-compare__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--lp-mint);
    font-weight: 700;
}

.lp-compare__arrow {
    color: var(--lp-cyan);
    opacity: .7;
}

@media (max-width: 860px) {
    .lp-compare {
        grid-template-columns: 1fr;
    }

    .lp-compare__arrow {
        transform: rotate(90deg);
        justify-self: center;
    }
}

/* ---------- STATS ---------- */
.lp-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    position: relative;
    z-index: 1;
}

.lp-stat {
    text-align: center;
    padding: 28px 16px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--lp-radius);
    background: rgba(255, 255, 255, .03);
    backdrop-filter: blur(8px);
}

.lp-stat__num {
    display: block;
    font-size: clamp(38px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1;
    background: linear-gradient(120deg, var(--lp-cyan), var(--lp-violet));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.lp-stat__label {
    font-size: 13px;
    color: rgba(255, 255, 255, .7);
}

.lp-section__head--dark .lp-h2 {
    color: #fff;
}

/* ---------- SECURITY ---------- */
.lp-sec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.lp-sec {
    background: #fff;
    border: 1px solid var(--lp-mist);
    border-radius: var(--lp-radius);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform .2s var(--lp-ease), box-shadow .2s var(--lp-ease);
}

.lp-sec:hover {
    transform: translateY(-2px);
    box-shadow: var(--lp-shadow-sm);
}

.lp-sec__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(34, 211, 238, .14), rgba(124, 92, 255, .14));
    color: var(--lp-cyan-2);
}

.lp-sec strong {
    font-size: 15px;
    font-weight: 700;
}

.lp-sec span:not(.lp-sec__icon) {
    font-size: 13px;
    color: var(--lp-muted);
    line-height: 1.5;
}

/* ---------- INTEGRATIONS HUB ---------- */
.lp-hub {
    position: relative;
    width: 100%;
    max-width: 560px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}

.lp-hub__center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.lp-hub__logo {
    width: 90px;
    height: 90px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--lp-navy), var(--lp-navy-2));
    color: var(--lp-cyan);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px -12px rgba(10, 37, 64, .4), 0 0 0 8px rgba(34, 211, 238, .08);
}

.lp-hub__center span {
    font-size: 14px;
    font-weight: 700;
}

.lp-hub__node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center;
    transform: translate(-50%, -50%) rotate(var(--x)) translate(180px) rotate(calc(-1 * var(--x)));
    padding: 10px 16px;
    background: #fff;
    border: 1px solid var(--lp-mist);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--lp-shadow-sm);
    white-space: nowrap;
}

.lp-hub::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 380px;
    height: 380px;
    border-radius: 50%;
    border: 1px dashed rgba(34, 211, 238, .3);
    pointer-events: none;
}

.lp-hub::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 1px dashed rgba(124, 92, 255, .18);
    pointer-events: none;
}

@media (max-width: 600px) {
    .lp-hub {
        max-width: 380px;
    }

    .lp-hub__node {
        transform: translate(-50%, -50%) rotate(var(--x)) translate(130px) rotate(calc(-1 * var(--x)));
        font-size: 11px;
        padding: 7px 11px;
    }

    .lp-hub::before {
        width: 260px;
        height: 260px;
    }

    .lp-hub::after {
        width: 160px;
        height: 160px;
    }

    .lp-hub__logo {
        width: 64px;
        height: 64px;
    }
}

/* ---------- TESTIMONIAL ---------- */
.lp-quote {
    max-width: 760px;
    margin: 0 auto;
    background: linear-gradient(180deg, #fff, #f9fafb);
    border: 1px solid var(--lp-mist);
    border-radius: 20px;
    padding: 48px 56px;
    text-align: center;
    position: relative;
    box-shadow: var(--lp-shadow);
}

.lp-quote__mark {
    color: rgba(34, 211, 238, .2);
    margin-bottom: 12px;
}

.lp-quote p {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -.01em;
    margin: 0 0 28px;
}

.lp-quote footer {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.lp-quote__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--lp-cyan), var(--lp-violet));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.lp-quote footer strong {
    display: block;
    font-size: 14px;
}

.lp-quote footer span {
    font-size: 12px;
    color: var(--lp-muted);
}

@media (max-width: 600px) {
    .lp-quote {
        padding: 32px 24px;
    }

    .lp-quote p {
        font-size: 18px;
    }
}

/* ---------- PRICING ---------- */
.lp-prices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.lp-price {
    background: #fff;
    border: 1px solid var(--lp-mist);
    border-radius: var(--lp-radius);
    padding: 32px 28px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.lp-price--featured {
    background: linear-gradient(180deg, #fff 0%, #f0f9ff 100%);
    border: 2px solid var(--lp-cyan);
    box-shadow: 0 24px 50px -16px rgba(34, 211, 238, .4);
    transform: scale(1.02);
}

.lp-price__chip {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 14px;
    background: linear-gradient(135deg, var(--lp-cyan), var(--lp-violet));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    border-radius: 999px;
    box-shadow: 0 8px 20px -6px rgba(34, 211, 238, .5);
}

.lp-price h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px;
}

.lp-price__num {
    font-size: 14px;
    color: var(--lp-muted);
    margin-bottom: 14px;
}

.lp-price__num span {
    font-size: 36px;
    font-weight: 800;
    color: var(--lp-text);
    letter-spacing: -.03em;
    display: inline-block;
    margin-right: 4px;
}

.lp-price__num em {
    font-style: normal;
}

.lp-price__sub {
    font-size: 13px;
    color: var(--lp-muted);
    margin: 0 0 22px;
}

.lp-price__list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex: 1;
}

.lp-price__list li {
    position: relative;
    padding: 8px 0 8px 24px;
    font-size: 14px;
    border-bottom: 1px dashed rgba(10, 37, 64, .06);
}

.lp-price__list li:last-child {
    border-bottom: none;
}

.lp-price__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(16, 185, 129, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%2310b981' stroke-width='2'%3E%3Cpath d='M3 6l2 2 4-5'/%3E%3C/svg%3E") center/9px no-repeat;
}

/* ---------- FAQ ---------- */
.lp-faq {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lp-faq details {
    background: #fff;
    border: 1px solid var(--lp-mist);
    border-radius: 12px;
    padding: 18px 22px;
    transition: border-color .2s var(--lp-ease);
}

.lp-faq details[open] {
    border-color: rgba(34, 211, 238, .4);
    box-shadow: var(--lp-shadow-sm);
}

.lp-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    list-style: none;
}

.lp-faq summary::-webkit-details-marker {
    display: none;
}

.lp-faq__plus {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(10, 37, 64, .06);
    position: relative;
    flex-shrink: 0;
    transition: background .2s, transform .2s;
}

.lp-faq__plus::before,
.lp-faq__plus::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--lp-text);
    transition: transform .2s var(--lp-ease);
}

.lp-faq__plus::before {
    width: 10px;
    height: 2px;
    transform: translate(-50%, -50%);
}

.lp-faq__plus::after {
    width: 2px;
    height: 10px;
    transform: translate(-50%, -50%);
}

.lp-faq details[open] .lp-faq__plus {
    background: rgba(34, 211, 238, .18);
}

.lp-faq details[open] .lp-faq__plus::after {
    transform: translate(-50%, -50%) scaleY(0);
}

.lp-faq p {
    margin: 14px 0 0;
    font-size: 14px;
    color: var(--lp-muted);
    line-height: 1.6;
}

/* ---------- FINAL CTA ---------- */
.lp-final {
    position: relative;
    padding: 100px 0;
    background: radial-gradient(ellipse at top, #173b62 0%, #0a2540 60%, #061a31 100%);
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.lp-final__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .6;
}

.lp-final .lp-container {
    position: relative;
    z-index: 1;
}

.lp-final .lp-h2 {
    color: #fff;
    margin-bottom: 14px;
}

/* ---------- FOOTER ---------- */
.lp-foot {
    background: #fff;
    border-top: 1px solid var(--lp-mist);
    padding: 60px 0 30px;
}

.lp-foot__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.lp-foot__tag {
    font-size: 13px;
    color: var(--lp-muted);
    margin: 14px 0 0;
    max-width: 280px;
    line-height: 1.5;
}

.lp-foot h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--lp-dim);
    margin: 0 0 14px;
}

.lp-foot a {
    display: block;
    font-size: 14px;
    color: var(--lp-text);
    text-decoration: none;
    padding: 4px 0;
    transition: color .15s var(--lp-ease);
}

.lp-foot a:hover {
    color: var(--lp-cyan-2);
}

.lp-foot__bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--lp-mist);
    font-size: 12px;
    color: var(--lp-dim);
}

@media (max-width: 760px) {
    .lp-foot__grid {
        grid-template-columns: 1fr 1fr;
    }

    .lp-section {
        padding: 70px 0;
    }

    .lp-hero {
        padding: 50px 0 80px;
    }
}

/* ---------- Reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {

    .lp-pill__dot,
    .lp-float {
        animation: none !important;
    }
}

/* ---------- Project status KPIs (Analytics) -------------------- */
.proj-kpis {
    margin-bottom: 28px;
}

.proj-kpis__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 12px;
}

.proj-kpis__head h2 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.015em;
    margin: 4px 0 0;
}

.proj-kpis__eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--accent-600);
    padding: 3px 10px;
    background: rgba(34, 211, 238, .1);
    border-radius: 999px;
}

.proj-kpis__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.proj-kpi {
    --proj-color: #94a3b8;
    --proj-color-soft: rgba(148, 163, 184, .12);
    position: relative;
    padding: 20px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .25s var(--easing), box-shadow .25s var(--easing), border-color .25s var(--easing);
}

.proj-kpi::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--proj-color), transparent 70%);
    opacity: 0;
    transition: opacity .25s var(--easing);
}

.proj-kpi:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: color-mix(in srgb, var(--proj-color) 35%, var(--border));
}

.proj-kpi:hover::before {
    opacity: 1;
}

.proj-kpi__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: var(--proj-color);
    background: var(--proj-color-soft);
    margin-bottom: 14px;
}

.proj-kpi__icon svg {
    width: 18px;
    height: 18px;
}

.proj-kpi__label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.proj-kpi__value {
    display: block;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 12px;
    font-variant-numeric: tabular-nums;
}

.proj-kpi__bar {
    display: block;
    height: 4px;
    border-radius: 999px;
    background: var(--bg-soft);
    overflow: hidden;
    margin-bottom: 8px;
}

.proj-kpi__bar>span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--proj-color);
    transition: width .6s var(--easing);
    box-shadow: 0 0 8px color-mix(in srgb, var(--proj-color) 60%, transparent);
}

.proj-kpi__bar--grad>span {
    background: linear-gradient(90deg, #22d3ee 0%, #7c5cff 100%);
    box-shadow: 0 0 8px rgba(34, 211, 238, .4);
}

.proj-kpi__delta {
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 500;
}

/* Color variants */
.proj-kpi--progress {
    --proj-color: #a855f7;
    --proj-color-soft: rgba(168, 85, 247, .12);
}

.proj-kpi--completed {
    --proj-color: #10b981;
    --proj-color-soft: rgba(16, 185, 129, .12);
}

.proj-kpi--delivered {
    --proj-color: #3b82f6;
    --proj-color-soft: rgba(59, 130, 246, .12);
}

.proj-kpi--hold {
    --proj-color: #f59e0b;
    --proj-color-soft: rgba(245, 158, 11, .14);
}

.proj-kpi--cancelled {
    --proj-color: #ef4444;
    --proj-color-soft: rgba(239, 68, 68, .12);
}

.proj-kpi--revenue {
    --proj-color: #22d3ee;
    --proj-color-soft: rgba(34, 211, 238, .12);
    background: linear-gradient(135deg, var(--bg-elev) 0%, color-mix(in srgb, var(--accent) 6%, var(--bg-elev)) 100%);
    border-color: rgba(34, 211, 238, .25);
}

.proj-kpi--revenue::before {
    opacity: 1;
    background: linear-gradient(90deg, #22d3ee, #7c5cff 70%);
}

.proj-kpi--revenue .proj-kpi__value {
    background: linear-gradient(120deg, #22d3ee 0%, #7c5cff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 24px;
}

@media (max-width: 600px) {
    .proj-kpis__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .proj-kpi__value {
        font-size: 24px;
    }
}

/* ---------- Project deliverables ------------------------------- */
.deliv-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.deliv-form--inline {
    margin-top: 14px;
    padding: 14px;
    background: var(--bg-soft);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-sm);
}

.deliv-form__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.deliv-form__field>span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.deliv-form__field input[type="file"],
.deliv-form__field input[type="text"] {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-elev);
    font-size: 13px;
    color: var(--text);
    width: 100%;
}

.deliv-form__field input[type="file"] {
    padding: 6px 8px;
    font-size: 12px;
}

.deliv-form__field input[type="text"]:focus,
.deliv-form__field input[type="file"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.deliv-block {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.deliv-block__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.deliv-block__head h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.deliv-list {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.deliv-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color .15s var(--easing), box-shadow .15s var(--easing), transform .15s var(--easing);
}

.deliv-row:hover {
    border-color: rgba(34, 211, 238, .4);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.deliv-row__icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(34, 211, 238, .12);
    color: var(--accent-600);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.deliv-row__main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.deliv-row__name {
    font-weight: 600;
    font-size: 13.5px;
    color: var(--text);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.deliv-row__name:hover {
    color: var(--accent-600);
}

.deliv-row__meta {
    font-size: 11.5px;
    margin-top: 2px;
}

.deliv-row__notes {
    font-size: 11.5px;
    font-style: italic;
    margin-top: 4px;
    color: var(--text-dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.deliv-row__actions {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-shrink: 0;
}

.btn--sm {
    padding: 6px 10px;
    font-size: 12px;
    gap: 6px;
}

/* Client-side deliv card sits in the main column, give it a bit of breathing room. */
.deliv-card {
    margin-bottom: 16px;
}

/* ---------- Roles & permissions -------------------------------- */
.role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.role-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform .15s var(--easing), box-shadow .15s var(--easing), border-color .15s var(--easing);
}

.role-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: rgba(34, 211, 238, .35);
}

.role-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.role-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(34, 211, 238, .14), rgba(124, 92, 255, .12));
    color: var(--accent-600);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.role-card__head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.role-card__head code {
    font-size: 11px;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

.role-card__chip {
    margin-left: auto;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: rgba(34, 211, 238, .14);
    color: var(--accent-600);
}

.role-card__chip--default {
    background: rgba(148, 163, 184, .18);
    color: var(--text-muted);
}

.role-card__chip--locked {
    background: rgba(245, 158, 11, .16);
    color: #b45309;
}

.role-card__stat {
    font-size: 14px;
}

.role-card__stat strong {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.role-card__bar {
    height: 6px;
    border-radius: 999px;
    background: var(--bg-soft);
    overflow: hidden;
}

.role-card__bar>span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #22d3ee, #7c5cff);
    transition: width .5s var(--easing);
    border-radius: 999px;
}

.role-card__foot {
    margin-top: auto;
}

.role-help {
    max-width: 720px;
}

.role-help ul {
    margin: 8px 0 0;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 13.5px;
    line-height: 1.7;
}

/* Permission matrix form */
.perm-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    position: sticky;
    top: calc(var(--topbar-h) + 8px);
    z-index: 5;
}

.perm-toolbar>span[data-count] {
    margin-left: auto;
}

.perm-group {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 14px;
    overflow: hidden;
}

.perm-group__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
}

.perm-group__head h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
}

.perm-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.perm-row {
    border-bottom: 1px solid var(--border);
    transition: background .15s var(--easing);
}

.perm-row:last-child {
    border-bottom: none;
}

.perm-row:hover {
    background: rgba(34, 211, 238, .04);
}

.perm-row.is-on {
    background: rgba(16, 185, 129, .04);
}

.perm-row__label {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    cursor: pointer;
    width: 100%;
}

.perm-row__label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Custom toggle */
.perm-toggle {
    width: 38px;
    height: 22px;
    border-radius: 999px;
    background: var(--border-strong);
    position: relative;
    flex-shrink: 0;
    transition: background .15s var(--easing);
    margin-top: 2px;
}

.perm-toggle::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .2);
    transition: transform .2s var(--easing);
}

.perm-row__label input:checked~.perm-toggle {
    background: linear-gradient(135deg, #22d3ee, #06b6d4);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, .18);
}

.perm-row__label input:checked~.perm-toggle::after {
    transform: translateX(16px);
}

.perm-row__label input:disabled~.perm-toggle {
    opacity: .5;
    cursor: not-allowed;
}

.perm-row__main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.perm-row__main strong {
    font-size: 14px;
    font-weight: 600;
}

.perm-row__main .muted {
    font-size: 12.5px;
    line-height: 1.45;
}

.perm-row__key {
    margin-top: 4px;
    font-size: 10.5px;
    font-family: var(--font-mono);
    color: var(--text-dim);
    background: var(--bg-soft);
    padding: 1px 7px;
    border-radius: 4px;
    align-self: flex-start;
}

.alert--info {
    background: rgba(34, 211, 238, .1);
    color: #0e7490;
    border: 1px solid rgba(34, 211, 238, .25);
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
}

@media (max-width: 600px) {
    .perm-toolbar {
        position: static;
        flex-wrap: wrap;
    }

    .perm-row__key {
        font-size: 10px;
    }
}

/* ---------- Landing — "Nouveau" badge on feature cards ---------- */
.lp-feature--new {
    position: relative;
}

.lp-feature__new {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 3px 10px;
    background: linear-gradient(135deg, #22d3ee, #7c5cff);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    border-radius: 999px;
    box-shadow: 0 6px 16px -6px rgba(34, 211, 238, .6);
}

/* ---------- Admin Analytics ----------------------------------- */
.ana-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    margin: 0 0 18px;
    padding: 0 4px;
}

.ana-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color .15s var(--easing), border-color .15s var(--easing);
}

.ana-tab:hover {
    color: var(--text);
}

.ana-tab.is-active {
    color: var(--accent-600);
    border-bottom-color: var(--accent);
}

.ana-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
    padding: 14px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 18px;
}

.ana-filters__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 140px;
}

.ana-filters__field>span {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-dim);
}

.ana-filters__field select,
.ana-filters__field input {
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-elev);
    font-size: 13px;
    color: var(--text);
}

.ana-filters__field select:focus,
.ana-filters__field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.ana-filters__actions {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-left: auto;
}

.ana-filters__export {
    display: flex;
    gap: 6px;
    align-items: center;
    padding-left: 10px;
    border-left: 1px solid var(--border);
    margin-left: 0;
}

@media (max-width: 700px) {

    .ana-filters__actions,
    .ana-filters__export {
        margin-left: 0;
        border-left: none;
        padding-left: 0;
        width: 100%;
    }
}

.chart-wrap {
    position: relative;
    height: 260px;
    padding: 8px 4px;
}

.chart-wrap--sm {
    height: 220px;
}

.chart-wrap>canvas {
    width: 100% !important;
    height: 100% !important;
}

.kpi--cyan::after {
    background: radial-gradient(circle, rgba(34, 211, 238, .20), transparent 70%);
}

.kpi--pink::after {
    background: radial-gradient(circle, rgba(236, 72, 153, .20), transparent 70%);
}

.kpi--cyan .kpi__icon {
    color: #06b6d4;
    background: rgba(34, 211, 238, .14);
}

.kpi--pink .kpi__icon {
    color: #ec4899;
    background: rgba(236, 72, 153, .14);
}

.kpi--red .kpi__icon {
    color: #ef4444;
    background: rgba(239, 68, 68, .14);
}

.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, .18);
    margin-right: 6px;
    vertical-align: middle;
    animation: live-pulse 2s var(--easing) infinite;
}

@keyframes live-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 4px rgba(16, 185, 129, .18);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

.ana-stream {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.ana-stream--scroll {
    max-height: 480px;
    overflow-y: auto;
}

.ana-stream li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.ana-stream li:last-child {
    border-bottom: none;
}

.ana-stream li>div {
    flex: 1;
    min-width: 0;
}

.ana-stream p {
    margin: 0;
    font-size: 13.5px;
}

.ana-stream small {
    display: block;
    margin-top: 2px;
    font-size: 11.5px;
}

.ana-stream code {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
}

.ana-bar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ana-bar-list__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 13px;
}

.ana-bar-list__row code {
    font-family: var(--font-mono);
    font-size: 11.5px;
    background: var(--bg-soft);
    padding: 2px 7px;
    border-radius: 4px;
    color: var(--text);
}

.ana-bar-list__bar {
    height: 6px;
    background: var(--bg-soft);
    border-radius: 999px;
    overflow: hidden;
}

.ana-bar-list__bar>span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #7c5cff);
    border-radius: 999px;
    transition: width .5s var(--easing);
}

/* PDF export ---------------------------------------------------- */
.pdf-body {
    background: #fff;
    color: #0a2540;
    font-family: 'Inter', sans-serif;
    padding: 0;
    margin: 0;
}

.pdf-page {
    max-width: 920px;
    margin: 0 auto;
    padding: 28px 36px;
}

.pdf-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #0a2540;
    padding-bottom: 12px;
    margin-bottom: 18px;
}

.pdf-head h1 {
    margin: 0 0 4px;
    font-size: 22px;
}

.pdf-meta {
    text-align: right;
}

.pdf-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 22px;
}

.pdf-kpis>div {
    padding: 12px;
    border: 1px solid #e3e8ef;
    border-radius: 8px;
}

.pdf-kpis span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: #5b6b80;
    font-weight: 600;
    letter-spacing: .06em;
    margin-bottom: 4px;
}

.pdf-kpis strong {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.pdf-page h3 {
    font-size: 14px;
    margin: 18px 0 8px;
}

.pdf-page table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
    font-size: 12.5px;
}

.pdf-page th,
.pdf-page td {
    padding: 8px 10px;
    border: 1px solid #e3e8ef;
    text-align: left;
}

.pdf-page th {
    background: #f6f8fc;
    font-weight: 600;
}

.pdf-page code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
}

@media print {
    .pdf-body {
        padding: 0;
    }

    .pdf-page {
        padding: 12mm;
    }
}

/* ---------- Two-factor authentication -------------------------- */
.tfa-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(34, 211, 238, .14), rgba(124, 92, 255, .14));
    color: var(--accent-600);
    margin: 0 auto 20px;
}

.tfa-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
}

.tfa-field span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.tfa-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .25em;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-elev);
    color: var(--text);
    font-variant-numeric: tabular-nums;
    transition: border-color .15s var(--easing), box-shadow .15s var(--easing);
}

.tfa-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.tfa-input::placeholder {
    color: var(--text-dim);
    font-weight: 500;
    letter-spacing: .2em;
}

.tfa-alt {
    text-align: center;
    margin-top: 18px;
}

.tfa-alt a {
    color: var(--accent-600);
    font-size: 13px;
    text-decoration: none;
}

.tfa-alt a:hover {
    text-decoration: underline;
}

.tfa-cancel {
    margin-top: 12px;
    text-align: center;
}

/* Setup page */
.tfa-setup {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 32px;
    align-items: start;
}

.tfa-setup__steps ol {
    padding-left: 18px;
    line-height: 1.8;
    color: var(--text);
}

.tfa-setup__steps li {
    margin-bottom: 8px;
    font-size: 14px;
}

.tfa-setup__steps em {
    color: var(--accent-600);
    font-style: normal;
    font-weight: 600;
}

.tfa-setup__qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

#tfaQr {
    width: 220px;
    height: 220px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

#tfaQr svg {
    display: block;
    width: 100%;
    height: 100%;
}

.tfa-setup__manual {
    width: 100%;
    background: var(--bg-soft);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 14px;
    font-size: 12.5px;
}

.tfa-setup__manual summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-muted);
}

.tfa-setup__manual[open] summary {
    margin-bottom: 10px;
}

.tfa-setup__secret {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}

.tfa-setup__secret:last-child {
    border-bottom: none;
}

.tfa-setup__secret span {
    color: var(--text-muted);
    font-weight: 600;
}

.tfa-setup__secret code {
    font-family: var(--font-mono);
    color: var(--text);
    user-select: all;
}

.tfa-setup__form {
    grid-column: 1 / -1;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

@media (max-width: 760px) {
    .tfa-setup {
        grid-template-columns: 1fr;
    }
}

/* Profile section */
.tfa-card .card__head .chip {
    margin-left: auto;
}

.tfa-codes {
    background: linear-gradient(135deg, rgba(34, 211, 238, .06), rgba(124, 92, 255, .06));
    border: 1px solid rgba(34, 211, 238, .25);
    border-radius: var(--radius);
    padding: 18px;
    margin: 14px 0;
}

.tfa-codes strong {
    display: block;
    margin-bottom: 4px;
}

.tfa-codes__list {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}

.tfa-codes__list li {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    text-align: center;
}

.tfa-codes__list code {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: .02em;
    user-select: all;
}

.tfa-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.tfa-mini-form {
    display: flex;
    gap: 6px;
    align-items: center;
    flex: 1;
    min-width: 240px;
}

.tfa-mini-form input[type="password"] {
    flex: 1;
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    background: var(--bg-elev);
    color: var(--text);
}

.tfa-mini-form input[type="password"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Narrow page variant (used by setup) */
.page--narrow {
    max-width: 820px;
    margin: 0 auto;
}

/* ---------- Tooltip premium (.tip + data-tip) ------------------ */
.tip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: help;
    border-bottom: 1px dotted var(--border-strong);
    padding-bottom: 1px;
    transition: color .15s var(--easing), border-color .15s var(--easing);
}

.tip:hover {
    color: var(--accent-600);
    border-bottom-color: var(--accent);
}

.tip__icon {
    color: var(--text-dim);
    transition: color .15s var(--easing), transform .25s var(--easing);
}

.tip:hover .tip__icon {
    color: var(--accent);
    transform: rotate(15deg);
}

/* The bubble */
.tip::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    padding: 8px 14px;
    background: linear-gradient(135deg, #0a2540 0%, #173b62 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .01em;
    border-radius: 10px;
    border: 1px solid rgba(34, 211, 238, .3);
    box-shadow: 0 12px 32px -8px rgba(10, 37, 64, .5),
        0 0 0 1px rgba(34, 211, 238, .15);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    transition: opacity .18s var(--easing), transform .18s var(--easing), visibility .18s;
    font-family: var(--font-sans);
    font-variant-numeric: tabular-nums;
}

.tip::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #0a2540;
    filter: drop-shadow(0 1px 0 rgba(34, 211, 238, .3));
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    transition: opacity .18s var(--easing), visibility .18s;
    pointer-events: none;
}

.tip:hover::after,
.tip:focus-within::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.tip:hover::before,
.tip:focus-within::before {
    opacity: 1;
    visibility: visible;
}

/* Bottom variant (when tooltip should appear below) */
.tip--bottom::after {
    bottom: auto;
    top: calc(100% + 10px);
    transform: translateX(-50%) translateY(-4px);
}

.tip--bottom::before {
    bottom: auto;
    top: calc(100% + 4px);
    border-top: none;
    border-bottom: 6px solid #0a2540;
}

.tip--bottom:hover::after {
    transform: translateX(-50%) translateY(0);
}

/* ---------- Passkeys (Face ID / Touch ID / Windows Hello) ------ */
.pk-card .card__head .chip {
    margin-left: auto;
}

.pk-list {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pk-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color .15s var(--easing), box-shadow .15s var(--easing), transform .15s var(--easing);
}

.pk-row:hover {
    border-color: rgba(124, 92, 255, .4);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.pk-row__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(34, 211, 238, .14), rgba(124, 92, 255, .14));
    color: var(--accent-600);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pk-row__main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pk-row__main strong {
    font-size: 14px;
    font-weight: 600;
}

.pk-row__main .muted {
    font-size: 11.5px;
}

.pk-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: var(--text-dim);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 600;
}

.pk-divider::before,
.pk-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ---------- Custom roles -------------------------------------- */
.section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--text-muted);
    margin: 28px 0 14px;
}

.section-title:first-of-type {
    margin-top: 8px;
}

.role-card__chip--custom {
    background: rgba(124, 92, 255, .16);
    color: #6d28d9;
}

.role-card--custom {
    border-color: rgba(124, 92, 255, .22);
}

.empty-state--card {
    text-align: center;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.empty-state--card strong {
    font-size: 16px;
}

.empty-state--card p {
    color: var(--text-muted);
    margin: 0 0 8px;
    max-width: 360px;
}

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

@media (max-width: 600px) {
    .form-grid--2 {
        grid-template-columns: 1fr;
    }
}

/* ---------- Saved backups list -------------------------------- */
.bk-list {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bk-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color .15s var(--easing), box-shadow .15s var(--easing);
}

.bk-row:hover {
    border-color: rgba(34, 211, 238, .4);
    box-shadow: var(--shadow-sm);
}

.bk-row__icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bk-row__icon--db {
    background: rgba(34, 211, 238, .14);
    color: var(--accent-600);
}

.bk-row__icon--full {
    background: rgba(124, 92, 255, .14);
    color: #7c5cff;
}

.bk-row__main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.bk-row__head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bk-row__name {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text);
    background: var(--bg-soft);
    padding: 2px 8px;
    border-radius: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.bk-row__chip {
    font-size: 9.5px;
    padding: 1px 7px;
}

.bk-row__actions {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-shrink: 0;
}

.bk-upload {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 14px;
    background: var(--bg-soft);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-sm);
    margin-top: 12px;
}

.bk-upload__field {
    flex: 1;
}

.bk-upload__field input[type="file"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-elev);
    font-size: 13px;
    color: var(--text);
}

.chip--accent {
    background: rgba(34, 211, 238, .14);
    color: var(--accent-600);
}

/* ---------- Automatic backup config card ---------------------- */
.auto-card .live-dot {
    width: 6px;
    height: 6px;
    margin-right: 5px;
}

.auto-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auto-toggle {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color .15s var(--easing), background .15s var(--easing);
}

.auto-toggle:hover {
    border-color: rgba(34, 211, 238, .3);
}

.auto-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.auto-toggle__switch {
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: var(--border-strong);
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: background .2s var(--easing);
}

.auto-toggle__switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .2);
    transition: transform .2s var(--easing);
}

.auto-toggle input:checked~.auto-toggle__switch {
    background: linear-gradient(135deg, #22d3ee, #06b6d4);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, .18);
}

.auto-toggle input:checked~.auto-toggle__switch::after {
    transform: translateX(18px);
}

.auto-toggle__main {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.auto-toggle__main strong {
    font-size: 14px;
    font-weight: 600;
}

.auto-toggle__main small {
    font-size: 12px;
    line-height: 1.45;
}

.auto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 600px) {
    .auto-grid {
        grid-template-columns: 1fr;
    }
}

.auto-status {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(34, 211, 238, .04), rgba(124, 92, 255, .04));
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.auto-status__item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.auto-status__item strong {
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}