/* =============================================================
 * ZevsHost LK — Customer area styles
 * Aligned with site Carbon V2 theme tokens (css/style-v2.css).
 * Default = LIGHT, dark theme via [data-theme="dark"].
 * ============================================================= */

:root, [data-theme="light"] {
    /* Surfaces */
    --lk-bg:           #f6f6f8;
    --lk-bg-2:         #ffffff;
    --lk-bg-elevated:  #ffffff;
    --lk-card:         #ffffff;
    --lk-glass:        rgba(15, 23, 42, 0.025);
    --lk-glass-hover:  rgba(15, 23, 42, 0.04);

    /* Text */
    --lk-text:         #0b1220;
    --lk-muted:        #5b6678;
    --lk-dim:          #9aa3b2;

    /* Accent */
    --lk-primary:      #059660;
    --lk-primary-dark: #047a4e;
    --lk-primary-soft: rgba(5, 150, 96, 0.08);
    --lk-primary-glow: rgba(5, 150, 96, 0.18);
    --lk-primary-fg:   #ffffff;       /* text on primary fills */

    /* Borders */
    --lk-border:       rgba(15, 23, 42, 0.08);
    --lk-border-strong:rgba(15, 23, 42, 0.14);
    --lk-border-glow:  rgba(5, 150, 96, 0.25);

    /* Shadows — tinted to background hue, no neon glow */
    --lk-shadow-card:  0 8px 24px -10px rgba(15, 23, 42, 0.08), 0 2px 6px -2px rgba(15, 23, 42, 0.05);
    --lk-shadow-float: 0 28px 64px -22px rgba(15, 23, 42, 0.18), 0 8px 20px -10px rgba(15, 23, 42, 0.08);
    --lk-shadow-glow:  0 18px 40px -16px rgba(5, 150, 96, 0.30), 0 4px 12px -4px rgba(5, 150, 96, 0.18);

    /* Mesh — soft emerald wash for guest screens */
    --lk-mesh:
        radial-gradient(ellipse 80% 60% at 12% 20%, rgba(5, 150, 96, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 88% 78%, rgba(5, 150, 96, 0.07) 0%, transparent 60%);

    color-scheme: light;
}

[data-theme="dark"] {
    /* Surfaces (mirrors style-v2 dark) */
    --lk-bg:           #09090b;
    --lk-bg-2:         #0d0d10;
    --lk-bg-elevated:  #15151a;
    --lk-card:         #111115;
    --lk-glass:        rgba(255, 255, 255, 0.035);
    --lk-glass-hover:  rgba(255, 255, 255, 0.06);

    --lk-text:         #ededed;
    --lk-muted:        #8f8f9d;
    --lk-dim:          #555560;

    --lk-primary:      #05c47c;
    --lk-primary-dark: #04a368;
    --lk-primary-soft: rgba(5, 196, 124, 0.10);
    --lk-primary-glow: rgba(5, 196, 124, 0.22);
    --lk-primary-fg:   #031a0e;

    --lk-border:       rgba(255, 255, 255, 0.07);
    --lk-border-strong:rgba(255, 255, 255, 0.12);
    --lk-border-glow:  rgba(5, 196, 124, 0.30);

    --lk-shadow-card:  0 12px 32px -12px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    --lk-shadow-float: 0 36px 72px -24px rgba(0, 0, 0, 0.55), 0 12px 28px -12px rgba(0, 0, 0, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --lk-shadow-glow:  0 24px 56px -20px rgba(5, 196, 124, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.05);

    --lk-mesh:
        radial-gradient(ellipse 90% 60% at 12% 20%, rgba(5, 196, 124, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 88% 78%, rgba(5, 196, 124, 0.06) 0%, transparent 60%);

    color-scheme: dark;
}

/* =============================================================
 * Tokens — fonts, radii, easing
 * ============================================================= */
:root {
    /* Single sans-serif family across the whole LK to keep typography consistent.
       Geist handles 400/500/600/700/800 weights, so we cover everything from body
       to display from one font. Mono is reserved strictly for numbers and IDs. */
    --font-display:    'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body:       'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-heading:    'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono:       'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;

    --lk-radius-xs:    8px;
    --lk-radius-sm:    12px;
    --lk-radius:       18px;
    --lk-radius-lg:    24px;
    --lk-radius-xl:    32px;
    --lk-radius-2xl:   40px;

    --lk-ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
    --lk-ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
    --lk-ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);
    --lk-tr-fast:      0.18s var(--lk-ease-out);
    --lk-tr:           0.28s var(--lk-ease-out);
    --lk-tr-slow:      0.5s  var(--lk-ease-out);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html, body { min-height: 100vh; }
html { overflow-x: hidden; }
body {
    font-family: var(--font-body);
    background: var(--lk-bg);
    color: var(--lk-text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    max-width: 100vw;
}
a { color: var(--lk-primary); text-decoration: none; transition: color var(--lk-tr-fast); }
a:hover { color: var(--lk-primary-dark); }
img { max-width: 100%; display: block; }
::selection { background: var(--lk-primary-soft); color: var(--lk-primary-dark); }
[data-theme="dark"] ::selection { color: var(--lk-text); }

/* =============================================================
 * Guest layout (login / register / forgot / reset)
 * ============================================================= */
.lk-guest {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--lk-mesh), var(--lk-bg);
    position: relative;
}
.lk-guest::before {
    content: '';
    position: fixed; inset: 0;
    background-image:
        linear-gradient(rgba(15,23,42,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15,23,42,0.025) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 30%, transparent 90%);
    pointer-events: none;
    z-index: 0;
}
[data-theme="dark"] .lk-guest::before {
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
}
.lk-guest > * { position: relative; z-index: 1; }
.lk-guest-top {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; max-width: 440px;
    margin-bottom: 28px;
}
.lk-guest-brand {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--lk-text);
    letter-spacing: -0.025em;
    display: inline-flex; align-items: center; gap: 10px;
}
.lk-guest-brand:hover { color: var(--lk-text); }
.lk-guest-brand-mark {
    width: 30px; height: 30px;
    border-radius: 9px;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    box-shadow: 0 8px 22px var(--lk-primary-glow), inset 0 1px 0 rgba(255,255,255,0.22);
    position: relative;
    flex-shrink: 0;
}
.lk-guest-brand-mark::before {
    content: 'Z';
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-weight: 900;
    font-size: 0.98rem;
    font-family: var(--font-display);
}
.lk-guest-tools { display: flex; gap: 8px; align-items: center; }
.lk-guest .lk-card { width: 100%; max-width: 440px; }

/* Asymmetric auth shell: marketing text on the left, form-card on the right.
   Falls back to single-column on mobile. */
.lk-auth-shell {
    display: grid;
    grid-template-columns: 1fr minmax(380px, 460px);
    gap: 56px;
    align-items: center;
    width: 100%;
    max-width: 1080px;
    padding: 0 8px;
}
.lk-auth-shell .lk-card { max-width: none; }
.lk-auth-pitch { min-width: 0; }
.lk-auth-pitch-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--lk-primary);
    font-weight: 700;
    padding: 5px 12px;
    border: 1px solid var(--lk-border-glow);
    border-radius: 999px;
    background: var(--lk-primary-soft);
    margin-bottom: 22px;
}
.lk-auth-pitch h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.2vw, 2.9rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
    margin: 0 0 18px;
    color: var(--lk-text);
}
.lk-auth-pitch h2 em {
    color: var(--lk-primary);
    font-style: normal;
    font-weight: 800;
}
.lk-auth-pitch-lead {
    color: var(--lk-muted);
    font-size: 1.02rem;
    line-height: 1.55;
    max-width: 48ch;
    margin-bottom: 26px;
}
.lk-auth-marks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 24px;
    max-width: 420px;
}
.lk-auth-mark {
    display: flex; align-items: flex-start; gap: 12px;
}
.lk-auth-mark-ico {
    width: 36px; height: 36px;
    flex-shrink: 0;
    border-radius: 11px;
    background: var(--lk-primary-soft);
    color: var(--lk-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.lk-auth-mark-ico svg { width: 17px; height: 17px; stroke-width: 1.8; }
.lk-auth-mark strong {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.96rem;
    letter-spacing: -0.01em;
    margin-bottom: 2px;
}
.lk-auth-mark span {
    color: var(--lk-muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

@media (max-width: 920px) {
    .lk-auth-shell { grid-template-columns: 1fr; gap: 28px; max-width: 100%; padding: 0 2px; }
    .lk-auth-pitch { width: 100%; max-width: 100%; }
    .lk-auth-pitch h2 { font-size: 1.45rem !important; max-width: 100% !important; word-break: break-word !important; overflow-wrap: anywhere !important; hyphens: auto; }
    .lk-auth-pitch-lead { font-size: 0.94rem; max-width: 100%; }
    .lk-auth-marks { grid-template-columns: 1fr; gap: 12px; max-width: 100%; }
    .lk-guest { padding: 18px 14px; }
    .lk-guest-top { max-width: 100%; }
}
.lk-guest-foot {
    margin-top: 32px;
    color: var(--lk-dim);
    font-size: 0.82rem;
    text-align: center;
}

/* =============================================================
 * App layout (sidebar + main)
 * ============================================================= */
.lk-layout-app {
    display: grid;
    grid-template-columns: 260px 1fr;
    grid-template-rows: 68px 1fr;
    min-height: 100dvh;
    background: var(--lk-bg);
}

/* Sidebar */
.lk-sidebar {
    grid-row: 1 / 3;
    background: var(--lk-bg-2);
    border-right: 1px solid var(--lk-border);
    padding: 20px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: sticky; top: 0; height: 100dvh;
}
.lk-brand {
    display: flex; align-items: center; gap: 11px;
    margin: 4px 6px 20px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.06rem;
    color: var(--lk-text);
    letter-spacing: -0.025em;
}
.lk-brand:hover { color: var(--lk-text); }
.lk-brand-mark {
    width: 30px; height: 30px;
    border-radius: 9px;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    box-shadow: 0 6px 18px var(--lk-primary-glow), inset 0 1px 0 rgba(255,255,255,0.22);
    position: relative;
    flex-shrink: 0;
}
.lk-brand-mark::before {
    content: 'Z';
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-weight: 900;
    font-size: 0.95rem;
    font-family: var(--font-display);
}
.lk-brand-sub {
    color: var(--lk-muted);
    font-weight: 600;
    font-size: 0.72rem;
    margin-left: 4px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Nav */
.lk-nav {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
}
.lk-nav-link {
    display: flex; align-items: center; gap: 11px;
    padding: 10px 12px;
    border-radius: 11px;
    color: var(--lk-muted);
    font-weight: 500;
    font-size: 0.9rem;
    transition: background var(--lk-tr-fast), color var(--lk-tr-fast);
    position: relative;
}
.lk-nav-link svg {
    width: 17px; height: 17px;
    stroke-width: 1.8;
    flex-shrink: 0;
    opacity: 0.85;
}
.lk-nav-link:hover {
    background: var(--lk-glass-hover);
    color: var(--lk-text);
}
.lk-nav-link.is-active {
    background: var(--lk-primary-soft);
    color: var(--lk-primary);
    font-weight: 600;
}
.lk-nav-link.is-active svg { opacity: 1; }
.lk-nav-link.is-active::before {
    content: '';
    position: absolute; left: -16px; top: 50%;
    width: 3px; height: 18px;
    margin-top: -9px;
    background: var(--lk-primary);
    border-radius: 0 3px 3px 0;
}

.lk-sidebar-foot {
    border-top: 1px solid var(--lk-border);
    padding-top: 10px;
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

/* Topbar */
.lk-topbar {
    grid-column: 2;
    background: rgba(255,255,255,0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--lk-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    gap: 12px;
    position: sticky; top: 0;
    z-index: 5;
}
[data-theme="dark"] .lk-topbar { background: rgba(13,13,16,0.78); }
.lk-topbar-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.02em;
}
.lk-topbar-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}
.lk-topbar-user {
    color: var(--lk-muted);
    font-size: 0.84rem;
    font-family: var(--font-mono);
    margin-left: 4px;
    padding: 6px 12px;
    border: 1px solid var(--lk-border);
    border-radius: 999px;
    background: var(--lk-glass);
}

/* Lang select / theme button — pill-shaped, like the site */
.lk-lang-select {
    background: var(--lk-bg-2);
    border: 1px solid var(--lk-border);
    border-radius: 999px;
    padding: 7px 14px;
    color: var(--lk-text);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: border-color var(--lk-tr-fast), background var(--lk-tr-fast);
}
.lk-lang-select:hover { border-color: var(--lk-border-strong); }
.lk-lang-select:focus { border-color: var(--lk-primary); }

.lk-theme-btn {
    background: var(--lk-bg-2);
    border: 1px solid var(--lk-border);
    border-radius: 999px;
    width: 38px; height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--lk-text);
    transition: background var(--lk-tr-fast), border-color var(--lk-tr-fast), transform var(--lk-tr-fast);
}
.lk-theme-btn svg { width: 17px; height: 17px; stroke-width: 1.8; }
.lk-theme-btn:hover { background: var(--lk-primary-soft); border-color: var(--lk-border-glow); transform: scale(1.04); }
.lk-theme-btn:active { transform: scale(0.96); }

/* Main */
.lk-main {
    grid-column: 2;
    padding: 28px 28px 48px;
    overflow-y: auto;
}
.lk-page {
    max-width: 1240px;
    margin: 0 auto;
}
.lk-page-head {
    margin-bottom: 24px;
}
.lk-page-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--lk-primary);
    font-weight: 700;
    margin-bottom: 8px;
}
.lk-page-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 6px;
}
.lk-page-lead {
    color: var(--lk-muted);
    font-size: 0.95rem;
    max-width: 65ch;
}

.lk-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
}
.lk-grid .lk-card-hero { grid-column: 1 / -1; }

/* =============================================================
 * Card
 * ============================================================= */
.lk-card {
    background: var(--lk-card);
    border: 1px solid var(--lk-border);
    border-radius: var(--lk-radius-lg);
    padding: 26px;
    box-shadow: var(--lk-shadow-card);
    position: relative;
}
.lk-card h1 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 6px;
    line-height: 1.15;
}
.lk-card h2 {
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.lk-card-hero {
    padding: 34px;
    border-radius: var(--lk-radius-xl);
    background: linear-gradient(160deg, var(--lk-card) 60%, var(--lk-primary-soft) 130%);
}
.lk-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
    color: var(--lk-primary);
    font-weight: 700;
    margin-bottom: 10px;
}
.lk-muted { color: var(--lk-muted); font-size: 0.9rem; }
.lk-dim   { color: var(--lk-dim);   font-size: 0.85rem; }

/* =============================================================
 * Form fields
 * ============================================================= */
.lk-field { display: block; margin-bottom: 14px; }
.lk-field > span {
    display: block;
    font-size: 0.72rem;
    color: var(--lk-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}
.lk-field input, .lk-field select, .lk-field textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--lk-bg);
    border: 1px solid var(--lk-border);
    border-radius: var(--lk-radius-sm);
    color: var(--lk-text);
    font-family: inherit;
    font-size: 0.94rem;
    outline: none;
    transition: border-color var(--lk-tr-fast), box-shadow var(--lk-tr-fast), background var(--lk-tr-fast);
}
.lk-field input:hover, .lk-field select:hover, .lk-field textarea:hover { border-color: var(--lk-border-strong); }
.lk-field input:focus, .lk-field select:focus, .lk-field textarea:focus {
    border-color: var(--lk-primary);
    box-shadow: 0 0 0 4px var(--lk-primary-glow);
    background: var(--lk-bg-2);
}
.lk-field input:disabled { opacity: 0.55; cursor: not-allowed; }
.lk-field-helper { margin-top: 5px; font-size: 0.78rem; color: var(--lk-dim); }
.lk-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 540px) { .lk-row { grid-template-columns: 1fr; } }

/* =============================================================
 * Buttons — pill shapes like site V2
 * ============================================================= */
.lk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    white-space: nowrap;
    transition: transform var(--lk-tr-fast), box-shadow var(--lk-tr-fast),
                background var(--lk-tr-fast), border-color var(--lk-tr-fast),
                color var(--lk-tr-fast);
}
.lk-btn svg { width: 16px; height: 16px; stroke-width: 1.8; }
.lk-btn:active { transform: translateY(0) scale(0.98); }
.lk-btn-primary {
    background: var(--lk-primary);
    color: var(--lk-primary-fg);
    box-shadow: var(--lk-shadow-glow);
}
.lk-btn-primary:hover {
    background: var(--lk-primary-dark);
    color: var(--lk-primary-fg);
    transform: translateY(-1px);
    box-shadow: 0 22px 48px -16px rgba(5, 150, 96, 0.40), 0 8px 18px -8px rgba(5, 150, 96, 0.22);
}
.lk-btn-outline {
    background: transparent;
    color: var(--lk-text);
    border-color: var(--lk-border-strong);
}
.lk-btn-outline:hover {
    border-color: var(--lk-primary);
    color: var(--lk-primary);
    background: var(--lk-primary-soft);
}
.lk-btn-ghost {
    background: var(--lk-glass);
    color: var(--lk-text);
}
.lk-btn-ghost:hover { background: var(--lk-glass-hover); }
.lk-btn-danger {
    background: rgba(220, 38, 38, 0.10);
    color: #b91c1c;
    border-color: rgba(220, 38, 38, 0.25);
}
.lk-btn-danger:hover { background: rgba(220, 38, 38, 0.18); border-color: rgba(220, 38, 38, 0.50); color: #991b1b; }
.lk-btn-sm { padding: 8px 16px; font-size: 0.84rem; }
.lk-btn-lg { padding: 14px 28px; font-size: 1rem; }
.lk-btn-block { width: 100%; }

.lk-form-foot {
    margin-top: 18px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--lk-muted);
}

/* =============================================================
 * Alerts
 * ============================================================= */
.lk-alert {
    padding: 12px 16px 12px 14px;
    border-radius: var(--lk-radius-sm);
    font-size: 0.88rem;
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid transparent;
}
.lk-alert-error {
    background: rgba(220, 38, 38, 0.06);
    border-color: rgba(220, 38, 38, 0.22);
    color: #b91c1c;
}
[data-theme="dark"] .lk-alert-error { background: rgba(255,80,80,0.10); border-color: rgba(255,80,80,0.30); color: #ff8080; }
.lk-alert-success {
    background: var(--lk-primary-soft);
    border-color: var(--lk-border-glow);
    color: var(--lk-primary-dark);
}
[data-theme="dark"] .lk-alert-success { color: var(--lk-primary); }

/* =============================================================
 * Balance / Hero stats
 * ============================================================= */
.lk-balance {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 14px 0;
}
.lk-balance-value {
    font-family: var(--font-mono);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--lk-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.025em;
    line-height: 1;
}
.lk-balance-currency {
    color: var(--lk-muted);
    font-weight: 600;
    font-size: 0.95rem;
}

/* =============================================================
 * Empty states
 * ============================================================= */
.lk-empty {
    text-align: center;
    padding: 36px 18px;
}
.lk-empty-icon {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 56px; height: 56px;
    border-radius: 999px;
    background: var(--lk-primary-soft);
    color: var(--lk-primary);
    margin-bottom: 14px;
}
.lk-empty-icon svg { width: 24px; height: 24px; stroke-width: 1.6; }
.lk-empty h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}
.lk-empty p { margin-bottom: 16px; color: var(--lk-muted); font-size: 0.9rem; }

/* =============================================================
 * Tabs
 * ============================================================= */
.lk-tabs {
    display: inline-flex;
    gap: 2px;
    background: var(--lk-bg-2);
    border: 1px solid var(--lk-border);
    border-radius: 999px;
    padding: 4px;
    margin-bottom: 24px;
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
}
.lk-tabs::-webkit-scrollbar { display: none; }
.lk-tab {
    padding: 8px 18px;
    border-radius: 999px;
    color: var(--lk-muted);
    font-weight: 600;
    font-size: 0.84rem;
    white-space: nowrap;
    transition: all var(--lk-tr-fast);
}
.lk-tab:hover { color: var(--lk-text); }
.lk-tab.is-active {
    background: var(--lk-primary);
    color: var(--lk-primary-fg);
    box-shadow: 0 4px 12px var(--lk-primary-glow);
}

.lk-group-title {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--lk-muted);
    margin: 28px 0 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* =============================================================
 * Catalog
 * ============================================================= */
.lk-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}
.lk-product {
    background: var(--lk-card);
    border: 1px solid var(--lk-border);
    border-radius: var(--lk-radius-lg);
    padding: 26px 24px;
    position: relative;
    transition: transform var(--lk-tr) var(--lk-ease-spring),
                border-color var(--lk-tr-fast),
                box-shadow var(--lk-tr);
    box-shadow: var(--lk-shadow-card);
}
.lk-product:hover {
    transform: translateY(-4px);
    border-color: var(--lk-border-glow);
    box-shadow: var(--lk-shadow-float);
}
.lk-product.is-popular {
    border-color: var(--lk-border-glow);
    background: linear-gradient(180deg, var(--lk-card), var(--lk-primary-soft));
}
.lk-product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--lk-primary);
    color: var(--lk-primary-fg);
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 999px;
}
.lk-product h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.lk-product-price {
    margin-bottom: 16px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.lk-price-value {
    font-family: var(--font-mono);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--lk-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.025em;
    line-height: 1;
}
.lk-price-currency { font-size: 0.85rem; color: var(--lk-muted); font-weight: 600; }
.lk-price-period   { font-size: 0.78rem; color: var(--lk-dim); }
.lk-product-features { list-style: none; margin-bottom: 18px; padding: 0; }
.lk-product-features li {
    padding: 5px 0 5px 22px;
    font-size: 0.84rem;
    color: var(--lk-muted);
    position: relative;
}
.lk-product-features li::before {
    content: '';
    position: absolute; left: 0; top: 9px;
    width: 14px; height: 14px;
    border-radius: 999px;
    background: var(--lk-primary-soft);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059660' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 10px 10px;
}
[data-theme="dark"] .lk-product-features li::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2305c47c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
}

/* =============================================================
 * Tables
 * ============================================================= */
.lk-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9rem;
}
.lk-table th, .lk-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--lk-border);
}
.lk-table th {
    color: var(--lk-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.72rem;
}
.lk-table tfoot td {
    border-bottom: none;
    border-top: 2px solid var(--lk-border-strong);
    padding-top: 16px;
    font-weight: 700;
}
.lk-table .lk-is-num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* =============================================================
 * Status pills
 * ============================================================= */
.lk-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
    white-space: nowrap;
    border: 1px solid transparent;
}
.lk-status::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 999px;
    background: currentColor;
}
.lk-status-success { background: rgba(5,150,96,0.10);  color: var(--lk-primary-dark); }
[data-theme="dark"] .lk-status-success { background: rgba(5,196,124,0.15); color: var(--lk-primary); }
.lk-status-warn    { background: rgba(180,83,9,0.10); color: #b45309; }
[data-theme="dark"] .lk-status-warn { background: rgba(234,179,8,0.15); color: #eab308; }
.lk-status-info    { background: rgba(29,78,216,0.10); color: #1d4ed8; }
[data-theme="dark"] .lk-status-info { background: rgba(59,130,246,0.15); color: #60a5fa; }
.lk-status-error   { background: rgba(220,38,38,0.10); color: #b91c1c; }
[data-theme="dark"] .lk-status-error { background: rgba(255,80,80,0.15); color: #f87171; }
.lk-status-muted   { background: rgba(15,23,42,0.06); color: var(--lk-muted); }
[data-theme="dark"] .lk-status-muted { background: rgba(255,255,255,0.06); }

/* =============================================================
 * Services
 * ============================================================= */
.lk-services { display: flex; flex-direction: column; gap: 12px; }
.lk-service {
    background: var(--lk-card);
    border: 1px solid var(--lk-border);
    border-radius: var(--lk-radius-lg);
    padding: 22px 24px;
    box-shadow: var(--lk-shadow-card);
    transition: border-color var(--lk-tr-fast), transform var(--lk-tr-fast);
}
.lk-service:hover { border-color: var(--lk-border-strong); transform: translateY(-1px); }
.lk-service-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
    gap: 12px;
}
.lk-service-head h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}
.lk-service-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--lk-border);
}
.lk-meta-label {
    display: block;
    font-size: 0.66rem;
    color: var(--lk-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 3px;
    font-weight: 700;
}
.lk-meta-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--lk-text);
}
.lk-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.lk-svc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    background: var(--lk-bg);
    border: 1px solid var(--lk-border);
    border-radius: 11px;
    color: var(--lk-text);
    text-decoration: none;
    transition: all var(--lk-tr-fast);
}
.lk-svc-icon svg { width: 16px; height: 16px; stroke-width: 1.8; }
.lk-svc-icon:hover {
    border-color: var(--lk-primary);
    background: var(--lk-primary-soft);
    color: var(--lk-primary);
}

/* =============================================================
 * Orders list (row-style)
 * ============================================================= */
.lk-orders { display: flex; flex-direction: column; gap: 8px; }
.lk-order-row {
    display: grid;
    grid-template-columns: auto auto 1fr auto auto;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--lk-card);
    border: 1px solid var(--lk-border);
    border-radius: var(--lk-radius-sm);
    color: var(--lk-text);
    transition: all var(--lk-tr-fast);
    box-shadow: var(--lk-shadow-card);
}
.lk-order-row:hover {
    border-color: var(--lk-primary);
    transform: translateX(2px);
    color: var(--lk-text);
    box-shadow: var(--lk-shadow-float);
}
.lk-order-num { font-family: var(--font-mono); font-weight: 700; }
.lk-order-price {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--lk-primary);
    font-variant-numeric: tabular-nums;
    text-align: right;
}
.lk-order-arrow { color: var(--lk-dim); transition: transform var(--lk-tr-fast); }
.lk-order-row:hover .lk-order-arrow { transform: translateX(3px); color: var(--lk-primary); }
.lk-order-meta { font-size: 0.86rem; color: var(--lk-muted); }

/* =============================================================
 * Mini services on dashboard
 * ============================================================= */
.lk-mini-services { display: flex; flex-direction: column; gap: 6px; }
.lk-mini-service {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--lk-bg);
    border: 1px solid var(--lk-border);
    border-radius: 12px;
    color: var(--lk-text);
    transition: all var(--lk-tr-fast);
    font-size: 0.88rem;
}
.lk-mini-service:hover { border-color: var(--lk-primary); color: var(--lk-text); background: var(--lk-primary-soft); }
.lk-mini-name {
    font-weight: 600;
    flex: 1; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    padding-right: 12px;
}

/* =============================================================
 * KPI Bento (dashboard hero)
 * ============================================================= */
.lk-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.lk-bento-card {
    background: var(--lk-card);
    border: 1px solid var(--lk-border);
    border-radius: var(--lk-radius-xl);
    padding: 26px;
    box-shadow: var(--lk-shadow-card);
    position: relative;
    overflow: hidden;
}
.lk-bento-card--span-6 { grid-column: span 6; }
.lk-bento-card--span-4 { grid-column: span 4; }
.lk-bento-card--span-3 { grid-column: span 3; }
.lk-bento-card--span-8 { grid-column: span 8; }
.lk-bento-card--span-12 { grid-column: span 12; }
.lk-bento-card--accent {
    background: linear-gradient(160deg, var(--lk-card) 0%, var(--lk-primary-soft) 140%);
    border-color: var(--lk-border-glow);
}
.lk-bento-card--dark {
    background: #0d0d10;
    color: #ededed;
    border-color: rgba(255,255,255,0.07);
}
.lk-bento-card--dark .lk-kpi-label { color: rgba(255,255,255,0.6); }
.lk-bento-card--dark .lk-kpi-value { color: #05c47c; }
.lk-kpi-label {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--lk-muted);
    font-weight: 700;
    margin-bottom: 10px;
}
.lk-kpi-label svg { width: 14px; height: 14px; stroke-width: 1.8; opacity: 0.7; }
.lk-kpi-value {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 2rem;
    font-weight: 700;
    color: var(--lk-text);
    letter-spacing: -0.025em;
    line-height: 1.05;
}
.lk-kpi-sub {
    margin-top: 8px;
    font-size: 0.84rem;
    color: var(--lk-muted);
}
.lk-bento-spark {
    position: absolute;
    right: 22px; bottom: 22px;
    width: 110px; height: 38px;
    color: var(--lk-primary);
    opacity: 0.6;
}
@media (max-width: 1080px) {
    .lk-bento-card--span-4,
    .lk-bento-card--span-3,
    .lk-bento-card--span-6,
    .lk-bento-card--span-8 { grid-column: span 6; }
}
@media (max-width: 720px) {
    .lk-bento-card { grid-column: span 12 !important; padding: 22px; }
}

/* =============================================================
 * Responsive
 * ============================================================= */
@media (max-width: 900px) {
    .lk-layout-app {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr;
    }
    .lk-sidebar {
        grid-row: auto;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px;
        padding: 14px;
        position: static; height: auto;
        border-right: none;
        border-bottom: 1px solid var(--lk-border);
    }
    .lk-brand { margin: 0; flex-shrink: 0; }
    .lk-nav { flex-direction: row; flex-wrap: wrap; flex: 0 1 auto; }
    .lk-nav-link { padding: 7px 12px; font-size: 0.84rem; }
    .lk-nav-link.is-active::before { display: none; }
    .lk-sidebar-foot { border: none; padding: 0; margin: 0; flex-direction: row; }
    .lk-topbar { grid-column: 1; padding: 0 16px; }
    .lk-main { grid-column: 1; padding: 18px 16px 36px; }
    .lk-grid { grid-template-columns: 1fr; }
    .lk-card { padding: 22px; border-radius: var(--lk-radius); }
}

/* =============================================================
 * Tickets list
 * ============================================================= */
.lk-tickets { display: flex; flex-direction: column; gap: 8px; }
.lk-ticket-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: var(--lk-card);
    border: 1px solid var(--lk-border);
    border-radius: var(--lk-radius-sm);
    color: var(--lk-text);
    transition: all var(--lk-tr-fast);
    box-shadow: var(--lk-shadow-card);
    min-width: 0;
}
.lk-ticket-row:hover {
    border-color: var(--lk-primary);
    transform: translateX(2px);
    color: var(--lk-text);
    box-shadow: var(--lk-shadow-float);
}
.lk-ticket-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.lk-ticket-num { font-family: var(--font-mono); font-weight: 700; font-size: 0.86rem; }
.lk-ticket-subj {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    font-size: 0.94rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lk-ticket-time {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--lk-muted);
    flex-shrink: 0;
}
.lk-unread-dot {
    width: 8px; height: 8px;
    border-radius: 999px;
    background: var(--lk-primary);
    box-shadow: 0 0 0 4px var(--lk-primary-soft);
    flex-shrink: 0;
}
@media (max-width: 640px) {
    .lk-ticket-row {
        flex-wrap: wrap;
        gap: 8px 14px;
    }
    .lk-ticket-subj { flex-basis: 100%; order: 99; }
    .lk-ticket-time { margin-left: auto; }
}

/* =============================================================
 * Transactions list (billing.php history)
 * ============================================================= */
.lk-tx-list { display: flex; flex-direction: column; }
.lk-tx-list > div:hover { background: var(--lk-glass-hover); }
.lk-tx-list > div:last-child { border-bottom: none !important; }

/* =============================================================
 * Ticket-detail chat bubbles
 * ============================================================= */
.lk-chat { display: flex; flex-direction: column; gap: 12px; margin: 18px 0; }
.lk-bubble {
    display: flex; gap: 10px;
    max-width: 78%;
}
.lk-bubble--customer { align-self: flex-end; flex-direction: row-reverse; }
.lk-bubble-avatar {
    width: 32px; height: 32px;
    border-radius: 999px;
    background: var(--lk-bg);
    border: 1px solid var(--lk-border);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--lk-muted);
    font-weight: 700; font-size: 0.84rem;
    flex-shrink: 0;
    font-family: var(--font-mono);
}
.lk-bubble--customer .lk-bubble-avatar {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: #fff; border: none;
}
.lk-bubble-body {
    background: var(--lk-bg);
    border: 1px solid var(--lk-border);
    border-radius: var(--lk-radius-sm);
    padding: 12px 14px;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--lk-text);
    white-space: pre-wrap;
}
.lk-bubble--customer .lk-bubble-body {
    background: var(--lk-primary-soft);
    border-color: var(--lk-border-glow);
}
.lk-bubble-time {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--lk-dim);
    margin-top: 6px;
    text-align: right;
}

/* =============================================================
 * Service detail page (/lk/?p=service&id=X)
 * ============================================================= */
.lk-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--lk-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.lk-back-link svg { width: 14px; height: 14px; stroke-width: 2; }
.lk-back-link:hover { color: var(--lk-primary); }

.lk-svc-tabs {
    display: flex;
    gap: 2px;
    background: var(--lk-bg-2);
    border: 1px solid var(--lk-border);
    border-radius: 999px;
    padding: 4px;
    margin: 18px 0 22px;
    overflow-x: auto;
    width: fit-content;
    max-width: 100%;
    scrollbar-width: none;
}
.lk-svc-tabs::-webkit-scrollbar { display: none; }
.lk-svc-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: none;
    background: transparent;
    border-radius: 999px;
    color: var(--lk-muted);
    font: 600 0.84rem var(--font-body);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--lk-tr-fast);
}
.lk-svc-tab svg { width: 14px; height: 14px; stroke-width: 1.8; }
.lk-svc-tab:hover { color: var(--lk-text); }
.lk-svc-tab.is-active {
    background: var(--lk-primary);
    color: var(--lk-primary-fg);
    box-shadow: 0 4px 12px var(--lk-primary-glow);
}

.lk-svc-panel { animation: lk-fade 0.22s var(--lk-ease-out); }
@keyframes lk-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* --- Stat charts grid --- */
.lk-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
@media (max-width: 760px) {
    .lk-chart-grid { grid-template-columns: 1fr; }
}
.lk-chart-wrap {
    border: 1px solid var(--lk-border);
    border-radius: var(--lk-radius-sm);
    padding: 14px 16px 8px;
    background: var(--lk-bg-2);
}
.lk-chart-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}
.lk-chart-label {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--lk-muted);
}
.lk-chart-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--lk-text);
    font-variant-numeric: tabular-nums;
}
.lk-chart-wrap[data-metric="cpu"]    { color: var(--lk-primary); }
.lk-chart-wrap[data-metric="mem"]    { color: #1d4ed8; }
.lk-chart-wrap[data-metric="net"]    { color: #b45309; }
.lk-chart-wrap[data-metric="diskio"] { color: #6b21a8; }
[data-theme="dark"] .lk-chart-wrap[data-metric="mem"]    { color: #60a5fa; }
[data-theme="dark"] .lk-chart-wrap[data-metric="net"]    { color: #eab308; }
[data-theme="dark"] .lk-chart-wrap[data-metric="diskio"] { color: #c084fc; }
.lk-chart {
    width: 100%;
    height: 80px;
    display: block;
}

/* --- Credentials card --- */
.lk-creds-card {
    background: var(--lk-bg);
    border: 1px solid var(--lk-border);
    border-radius: var(--lk-radius-sm);
    padding: 14px 16px;
}
.lk-creds-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--lk-border);
}
.lk-creds-row:last-child { border-bottom: none; }
.lk-creds-label {
    width: 100px;
    flex-shrink: 0;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--lk-muted);
    font-weight: 700;
}
.lk-creds-val {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.9rem;
}
.lk-creds-val code {
    background: var(--lk-bg-2);
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid var(--lk-border);
    word-break: break-all;
}

/* --- OS reinstall grid --- */
.lk-os-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}
.lk-os-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid var(--lk-border);
    border-radius: var(--lk-radius-sm);
    background: var(--lk-bg-2);
    color: var(--lk-text);
    cursor: pointer;
    transition: all var(--lk-tr-fast);
    text-align: left;
    min-height: 64px;
}
.lk-os-btn:hover {
    border-color: var(--lk-primary);
    background: var(--lk-primary-soft);
    transform: translateY(-1px);
    box-shadow: var(--lk-shadow-card);
}
.lk-os-name {
    font-weight: 700;
    font-size: 0.92rem;
}
.lk-os-fam {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--lk-dim);
}

/* =============================================================
 * Feature cards (snapshots / backups paid add-ons)
 * ============================================================= */
.lk-feature-card {
    background: var(--lk-bg-2);
    border: 1px solid var(--lk-border);
    border-radius: var(--lk-radius-sm);
    padding: 18px 20px;
    margin-bottom: 14px;
}
.lk-feature-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.lk-feature-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.04rem;
    letter-spacing: -0.01em;
}
.lk-feature-desc {
    color: var(--lk-muted);
    font-size: 0.88rem;
    line-height: 1.5;
    margin-top: 4px;
    max-width: 60ch;
}
.lk-feature-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--lk-primary);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.lk-feature-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--lk-border);
    margin-bottom: 14px;
}
.lk-feature-card:has(.lk-feature-body:empty) .lk-feature-actions { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.lk-feature-body { font-size: 0.92rem; }

/* Snapshot/backup list rows */
.lk-snap-toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.lk-snap-toolbar input[type="text"] {
    flex: 1;
    min-width: 180px;
    padding: 8px 12px;
    background: var(--lk-card);
    border: 1px solid var(--lk-border);
    border-radius: var(--lk-radius-sm);
    color: var(--lk-text);
    font: 400 0.88rem var(--font-body);
    outline: none;
    transition: border-color var(--lk-tr-fast), box-shadow var(--lk-tr-fast);
}
.lk-snap-toolbar input[type="text"]:focus { border-color: var(--lk-primary); box-shadow: 0 0 0 3px var(--lk-primary-glow); }
.lk-snap-list { display: flex; flex-direction: column; gap: 6px; }
.lk-snap-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 14px;
    align-items: center;
    padding: 12px 14px;
    background: var(--lk-card);
    border: 1px solid var(--lk-border);
    border-radius: var(--lk-radius-xs);
}
.lk-snap-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) {
    .lk-snap-row { grid-template-columns: 1fr; gap: 8px; }
    .lk-snap-actions { justify-content: flex-start; }
}

/* =============================================================
 * Reduced motion
 * ============================================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* =============================================================
 * Mobile safety net — prevents long words, large tables, and
 * fixed-width 3rd-party widgets from causing horizontal scroll.
 * Targeted at viewports below the tablet breakpoint.
 * ============================================================= */
@media (max-width: 640px) {
    h1, h2, h3 { overflow-wrap: anywhere; word-break: break-word; hyphens: auto; }
    .lk-card,
    .lk-bento,
    .lk-bento-card,
    .lk-table-wrap,
    .lk-thread,
    .lk-svc-panel,
    .lk-msg-body,
    .lk-bubble-body { max-width: 100%; }
    .lk-msg-body, .lk-bubble-body { word-break: break-word; overflow-wrap: anywhere; }
    table { display: block; max-width: 100%; overflow-x: auto; }
    pre, code { white-space: pre-wrap; word-break: break-word; }
    .lk-thread { padding-left: 0; padding-right: 0; }
    .lk-tabs { flex-wrap: wrap; }
    .lk-row { flex-direction: column; }
    /* Touch-target floor */
    .lk-btn, .lk-tab, .lk-svc-tab, button, .lk-field input, .lk-field textarea, .lk-field select {
        min-height: 44px;
    }
    .lk-btn-sm { min-height: 36px; }
}
