:root {
    --bw-bg: #0b0f1a;
    --bw-card: #0f1320;
    --bw-card-hover: #13182a;
    --bw-card-2: #0b1020;
    --bw-accent: #7ee787;
    --bw-accent-2: #7cc5ff;
    --bw-purple: #a78bfa;
    --bw-orange: #f59e0b;
    --bw-cyan: #34d399;
    --bw-muted: #8b949e;
}

body {
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(126,231,135,.15), transparent 60%),
        radial-gradient(900px 500px at 90% -20%, rgba(124,197,255,.15), transparent 70%),
        var(--bw-bg);
    color: #e6edf3;
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* NAVBAR */
.bw-navbar {
    background: rgba(13,18,30,.78);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,.06);
    z-index: 1050;
}
.bw-navbar .nav-link { color: #c6d1d9; }
.bw-navbar .nav-link:hover { color: var(--bw-accent); }
.bw-navbar .dropdown-menu {
    background: var(--bw-card);
    border: 1px solid rgba(255,255,255,.08);
}
.bw-navbar .dropdown-item { color: #e6edf3; }
.bw-navbar .dropdown-item:hover { background: rgba(126,231,135,.1); color: var(--bw-accent); }
.bw-avatar-placeholder {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%;
    background: linear-gradient(135deg, var(--bw-accent), var(--bw-accent-2));
    color: #0b0f1a; font-weight: 800; font-size: 0.85rem;
}

/* HERO */
.hero {
    height: 100vh; min-height: 72vh;
    padding-top: 7rem; padding-bottom: 3rem;
    background:
        linear-gradient(180deg, rgba(0,0,0,.18), transparent),
        radial-gradient(600px 300px at 15% 5%, rgba(126,231,135,.12), transparent 70%);
    position: relative;
    overflow: hidden;
}
.hero #floatingWordsCanvas {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    pointer-events: none; z-index: 0;
}
.hero .hero-inner { position: relative; z-index: 1; }
.hero h1 {
    background: linear-gradient(135deg, #ffffff 0%, var(--bw-accent) 60%, var(--bw-accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

/* CARDS */
.bw-card {
    background: var(--bw-card);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 1rem;
    transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.bw-card:hover {
    transform: translateY(-3px);
    background: var(--bw-card-hover);
    border-color: rgba(126,231,135,.35);
}

/* BUTTONS */
.btn-accent {
    background: var(--bw-accent) !important;
    color: #0b0f1a !important;
    border: 0 !important;
    box-shadow: 0 6px 24px rgba(126,231,135,.2);
    font-weight: 700;
}
.btn-accent:hover { filter: brightness(.97); }
.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255,255,255,.16);
    color: #e6edf3;
}
.btn-ghost:hover { background: rgba(255,255,255,.04); color: #e6edf3; }

/* PRICING */
.price-card ul { list-style: none; padding-left: 0; }
.price-card li { padding: .5rem 0; border-bottom: 1px dashed rgba(255,255,255,.1); }

/* COMMUNITY */
.post-teaser {
    background: var(--bw-card-2);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: .75rem;
    padding: 1.5rem;
}
.badge-outline { border: 1px solid var(--bw-muted); color: var(--bw-muted); background: transparent; }

/* FOOTER */
footer { border-top: 1px solid rgba(255,255,255,.06); }

/* ===== PHONE DEMO (matching actual mobile app) ===== */
.phone-stage {
    perspective: 1400px;
    perspective-origin: 50% 40%;
    width: 100%; height: 640px;
    display: grid; place-items: center;
    position: relative;
}
.phone-ghost {
    position: absolute; inset: 0;
    background: radial-gradient(60% 40% at 50% 30%, rgba(126,231,135,.08), transparent 60%);
    filter: blur(30px); pointer-events: none;
}
.phone {
    width: 290px; height: 600px;
    background: linear-gradient(160deg, #1a1d28, #090d18);
    border-radius: 38px;
    position: relative;
    box-shadow:
        0 22px 60px rgba(0,0,0,.6),
        inset 0 0 0 1px rgba(255,255,255,.08),
        inset 0 -20px 40px rgba(255,255,255,0.02);
    transform-style: preserve-3d;
    transition: transform .28s cubic-bezier(.2,.8,.2,1);
    will-change: transform;
}
.phone-notch {
    position: absolute; top: 14px; left: 50%;
    transform: translateX(-50%);
    width: 100px; height: 22px;
    border-radius: 0 0 14px 14px;
    background: rgba(0,0,0,.7);
    z-index: 5;
}
.phone-glare {
    position: absolute; inset: 0;
    border-radius: 38px;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 6;
    mix-blend-mode: screen;
    opacity: 0;
}
.phone .screen {
    position: absolute; inset: 8px;
    border-radius: 32px;
    background: radial-gradient(80% 100% at 50% 0%, rgba(124,197,255,.05), transparent 60%), #060a15;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Phone app header */
.app-header {
    padding: 32px 18px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.app-header h2 {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
    color: #fff;
    letter-spacing: -0.02em;
}
.app-header small {
    color: rgba(255,255,255,.5);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}
.app-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bw-accent), var(--bw-accent-2));
    color: #0b0f1a;
    display: grid; place-items: center;
    font-weight: 800;
    font-size: 0.95rem;
}

/* App body */
.app-body {
    flex: 1;
    overflow: hidden;
    padding: 0 14px;
    position: relative;
}

/* App project card */
.app-card {
    background: linear-gradient(180deg, rgba(126,231,135,.12), rgba(126,231,135,.04));
    border: 1px solid rgba(126,231,135,.22);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: transform .15s, border-color .15s;
}
.app-card:active { transform: scale(.98); }
.app-card-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 6px;
}
.app-card-title { font-weight: 700; font-size: 0.92rem; color: #fff; }
.app-card-status {
    font-size: 0.65rem; font-weight: 700;
    background: rgba(126,231,135,.2); color: var(--bw-accent);
    padding: 2px 8px; border-radius: 999px;
}
.app-card-meta {
    display: flex; gap: 14px;
    font-size: 0.7rem; color: rgba(255,255,255,.55);
    margin-top: 8px;
}
.app-card-meta b { color: #fff; font-weight: 700; }

/* App KPI */
.app-kpi {
    background: linear-gradient(180deg, rgba(124,197,255,.12), rgba(124,197,255,.04));
    border: 1px solid rgba(124,197,255,.22);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 10px;
}
.app-kpi-label { font-size: 0.7rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: 0.06em; }
.app-kpi-value { font-weight: 800; font-size: 1.7rem; line-height: 1.1; margin-top: 2px; color: #fff; }
.app-kpi-sub { font-size: 0.7rem; color: rgba(255,255,255,.55); margin-top: 4px; }

/* App buttons (clickable) */
.app-btn {
    width: 100%; height: 56px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.06);
    background: rgba(255,255,255,.03);
    color: #fff;
    display: grid; place-items: center;
    grid-auto-flow: column;
    gap: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: transform .12s, background .2s, border-color .2s, box-shadow .2s;
    -webkit-tap-highlight-color: transparent;
}
.app-btn:active { transform: scale(.96); }
.app-btn i { font-size: 1.1rem; opacity: .9; }
.app-btn.on {
    background: linear-gradient(180deg, rgba(126,231,135,.25), rgba(126,231,135,.08));
    border-color: rgba(126,231,135,.45);
    box-shadow: 0 0 0 1px rgba(126,231,135,.2), 0 0 20px rgba(126,231,135,.18);
}
.app-btn.on i { color: var(--bw-accent); }
.app-btn.off { opacity: .65; }
.app-btn.off i { opacity: .55; }

/* App slider */
.app-slider {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px;
    padding: 10px 12px;
}
.app-slider-label { font-size: 0.72rem; color: rgba(255,255,255,.6); margin-bottom: 6px; display: flex; justify-content: space-between; }
.app-slider-label b { color: var(--bw-accent); font-weight: 700; }
.app-slider input[type="range"] {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 5px; border-radius: 999px;
    background: linear-gradient(90deg, rgba(126,231,135,.7), rgba(126,231,135,.15));
    border: 1px solid rgba(126,231,135,.3);
    outline: none;
}
.app-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 16px; height: 16px; border-radius: 50%;
    background: #fff;
    border: 2px solid rgba(126,231,135,.9);
    cursor: pointer;
}
.app-slider input[type="range"]::-moz-range-thumb {
    width: 16px; height: 16px; border-radius: 50%;
    background: #fff; border: 2px solid rgba(126,231,135,.9);
    cursor: pointer;
}

/* Bottom nav (matches mobile-app.css) */
.app-bottom-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 10px 12px 14px;
    background: rgba(0,0,0,.4);
    border-top: 1px solid rgba(255,255,255,.06);
    backdrop-filter: blur(10px);
}
.app-bottom-nav button {
    background: transparent;
    border: 0;
    color: rgba(255,255,255,.55);
    font-size: 0.62rem;
    font-weight: 600;
    padding: 6px 4px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    transition: color .15s, background .15s;
}
.app-bottom-nav button i { font-size: 1.1rem; }
.app-bottom-nav button.active {
    color: var(--bw-accent);
    background: rgba(126,231,135,.08);
}
.app-bottom-nav button:active {
    background: rgba(126,231,135,.14);
}

/* ===== BLUEPRINT DEMO (interaktivní) ===== */
.bp-demo-wrap {
    position: relative;
    border-radius: 18px;
    background:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(180deg, #0d1224, #0a0e1c);
    background-size: 28px 28px, 28px 28px, 100% 100%;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: inset 0 0 80px rgba(0,0,0,.4);
    height: 460px;
    overflow: hidden;
    user-select: none;
    touch-action: none;
}
.bp-demo-hint {
    position: absolute; top: 12px; right: 14px;
    color: rgba(255,255,255,.45);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    pointer-events: none;
    z-index: 5;
}
.bp-svg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
}
.bp-wire {
    fill: none;
    stroke: rgba(126,231,135,.5);
    stroke-width: 2.5;
    filter: drop-shadow(0 0 6px rgba(126,231,135,.3));
}
.bp-wire.draft {
    stroke: rgba(124,197,255,.7);
    stroke-dasharray: 6 4;
    filter: drop-shadow(0 0 6px rgba(124,197,255,.4));
    animation: bp-dash 1s linear infinite;
}
@keyframes bp-dash { to { stroke-dashoffset: -20; } }

.bp-node {
    position: absolute;
    width: 180px;
    background: linear-gradient(180deg, #1a2138, #0f1320);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 14px;
    padding: 12px 14px;
    cursor: grab;
    z-index: 2;
    box-shadow: 0 8px 28px rgba(0,0,0,.38);
    transition: box-shadow .15s, border-color .15s;
}
.bp-node:hover { border-color: rgba(126,231,135,.4); box-shadow: 0 10px 32px rgba(0,0,0,.45); }
.bp-node.dragging { cursor: grabbing; z-index: 10; box-shadow: 0 14px 40px rgba(0,0,0,.6); }
.bp-node.sensor { background: linear-gradient(180deg, rgba(20,184,166,.18), #0f1320); }
.bp-node.compare { background: linear-gradient(180deg, rgba(167,139,250,.18), #0f1320); }
.bp-node.action { background: linear-gradient(180deg, rgba(245,158,11,.16), #0f1320); }
.bp-node.timer { background: linear-gradient(180deg, rgba(124,197,255,.16), #0f1320); }
.bp-kicker {
    font-size: 0.6rem; letter-spacing: 0.12em;
    color: rgba(255,255,255,.5);
    text-transform: uppercase;
    margin-bottom: 4px;
    font-weight: 700;
}
.bp-node-title {
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    font-size: 0.95rem;
}
.bp-node-sub {
    color: rgba(226,232,240,0.6);
    font-size: 0.75rem;
    margin-bottom: 8px;
}
.bp-port {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    color: #dce7ff;
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 6px;
    cursor: crosshair;
    transition: background .15s, border-color .15s;
}
.bp-port:hover { background: rgba(126,231,135,.1); border-color: rgba(126,231,135,.4); }
.bp-port.in { padding-left: 14px; }
.bp-port.out { padding-right: 14px; flex-direction: row-reverse; text-align: right; }
.bp-port-dot {
    width: 11px; height: 11px;
    border-radius: 50%;
    background: var(--bw-accent);
    border: 2px solid rgba(11,15,26,0.95);
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(126,231,135,.4);
}
.bp-port.in .bp-port-dot {
    position: absolute; left: -7px; top: 50%; transform: translateY(-50%);
    background: var(--bw-cyan);
    box-shadow: 0 0 10px rgba(52,211,153,.4);
}
.bp-port.out .bp-port-dot {
    position: absolute; right: -7px; top: 50%; transform: translateY(-50%);
    background: var(--bw-purple);
    box-shadow: 0 0 10px rgba(167,139,250,.4);
}
.bp-port.connected .bp-port-dot {
    box-shadow: 0 0 12px rgba(126,231,135,.6), 0 0 0 2px rgba(126,231,135,.3);
}

/* ===== WORKSPACE preview (interactive) ===== */
.ws-preview {
    border-radius: 18px;
    background: linear-gradient(180deg, #0d1224, #0a0e1c);
    border: 1px solid rgba(255,255,255,.08);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.ws-titlebar {
    display: flex; align-items: center;
    padding: 10px 14px;
    background: rgba(255,255,255,.02);
    border-bottom: 1px solid rgba(255,255,255,.05);
    gap: 6px;
}
.ws-titlebar .dot {
    width: 11px; height: 11px; border-radius: 50%;
    background: rgba(255,255,255,.15);
}
.ws-titlebar .dot:nth-child(1) { background: #ff5f57; }
.ws-titlebar .dot:nth-child(2) { background: #febc2e; }
.ws-titlebar .dot:nth-child(3) { background: #28c840; }
.ws-titlebar .url {
    margin-left: auto; margin-right: auto;
    background: rgba(255,255,255,.04);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: rgba(255,255,255,.6);
    font-family: 'Roboto Mono', monospace;
}
.ws-body {
    display: grid;
    grid-template-columns: 200px 1fr;
    min-height: 460px;
}
.ws-sidebar {
    background: rgba(0,0,0,.18);
    border-right: 1px solid rgba(255,255,255,.04);
    padding: 14px 0;
    user-select: none;
}
.ws-side-group {
    padding: 0 14px;
    margin-bottom: 8px;
    color: rgba(255,255,255,.4);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 12px;
}
.ws-side-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 14px;
    color: rgba(226,232,240,.75);
    font-size: 0.85rem;
    border-left: 2px solid transparent;
    cursor: pointer;
    transition: background .12s, color .12s, border-left-color .12s;
}
.ws-side-item:hover { background: rgba(255,255,255,.03); color: #fff; }
.ws-side-item.active {
    background: rgba(126,231,135,.06);
    border-left-color: var(--bw-accent);
    color: #fff;
}
.ws-side-item i { font-size: 1rem; opacity: .7; width: 16px; }

.ws-content { padding: 22px; }
.ws-section { display: none; animation: ws-fade .25s ease; }
.ws-section.active { display: block; }
@keyframes ws-fade {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ws-section-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px;
}
.ws-section-head h3 {
    font-size: 1.1rem; font-weight: 800; margin: 0; color: #fff;
}
.ws-section-head .ws-mini-btn {
    background: var(--bw-accent);
    color: #0b0f1a;
    border: 0;
    border-radius: 8px;
    padding: 5px 11px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: default;
}

.ws-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}
.ws-stat {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 10px;
    padding: 12px;
}
.ws-stat-label { font-size: 0.7rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: 0.05em; }
.ws-stat-value { font-size: 1.4rem; font-weight: 800; margin-top: 4px; }
.ws-stat.cyan .ws-stat-value { color: var(--bw-accent-2); }
.ws-stat.green .ws-stat-value { color: var(--bw-accent); }
.ws-stat.purple .ws-stat-value { color: var(--bw-purple); }
.ws-stat.orange .ws-stat-value { color: var(--bw-orange); }

.ws-device-list { display: grid; gap: 8px; }
.ws-device-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 14px; align-items: center;
    padding: 10px 12px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 10px;
}
.ws-device-icon {
    width: 32px; height: 32px;
    background: rgba(126,231,135,.1);
    border-radius: 8px;
    display: grid; place-items: center;
    color: var(--bw-accent);
    font-size: 1rem;
}
.ws-device-name { font-weight: 600; }
.ws-device-meta { font-size: 0.75rem; color: rgba(255,255,255,.5); }
.ws-pill {
    font-size: 0.7rem; font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(126,231,135,.12);
    color: var(--bw-accent);
}
.ws-pill.offline { background: rgba(255,255,255,.04); color: rgba(255,255,255,.5); }

/* DB section table */
.ws-table {
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 10px;
    overflow: hidden;
    font-size: 0.82rem;
}
.ws-table-row {
    display: grid;
    grid-template-columns: 80px 1fr 1fr 1fr;
    gap: 12px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.ws-table-row:last-child { border-bottom: 0; }
.ws-table-row.head {
    background: rgba(255,255,255,.04);
    color: rgba(255,255,255,.55);
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* Endpoint row */
.ws-endpoint {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    gap: 12px; align-items: center;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
}
.ws-endpoint-method {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    padding: 3px 8px;
    border-radius: 6px;
}
.ws-endpoint-method.get { background: rgba(124,197,255,.15); color: var(--bw-accent-2); }
.ws-endpoint-method.post { background: rgba(126,231,135,.15); color: var(--bw-accent); }
.ws-endpoint-path { font-family: 'Roboto Mono', monospace; font-size: 0.85rem; color: #fff; }
.ws-endpoint-desc { font-size: 0.72rem; color: rgba(255,255,255,.5); margin-top: 2px; }
.ws-endpoint-calls { font-size: 0.72rem; color: rgba(255,255,255,.55); }

/* Automation card */
.ws-auto {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 8px;
}
.ws-auto-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 6px;
}
.ws-auto-head strong { font-size: 0.9rem; }
.ws-auto-toggle {
    width: 32px; height: 18px;
    background: rgba(126,231,135,.4);
    border-radius: 999px;
    position: relative;
}
.ws-auto-toggle.off { background: rgba(255,255,255,.1); }
.ws-auto-toggle::after {
    content: ''; position: absolute;
    width: 14px; height: 14px;
    background: #fff; border-radius: 50%;
    top: 2px; right: 2px;
    transition: right .2s;
}
.ws-auto-toggle.off::after { right: 16px; }
.ws-auto-meta { font-size: 0.72rem; color: rgba(255,255,255,.55); }
.ws-auto-meta b { color: #fff; }

/* Versions list */
.ws-version {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px; align-items: center;
    padding: 10px 12px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 10px;
    margin-bottom: 6px;
}
.ws-version-tag {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.7rem; font-weight: 700;
    background: rgba(124,197,255,.15);
    color: var(--bw-accent-2);
    padding: 3px 9px; border-radius: 6px;
}
.ws-version-msg { font-size: 0.85rem; color: #fff; }
.ws-version-time { font-size: 0.72rem; color: rgba(255,255,255,.5); }

/* App Builder mini */
.ws-appbuilder-grid {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 14px;
    align-items: start;
}
.ws-widget-list {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 10px;
    padding: 8px;
}
.ws-widget-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px;
    border-radius: 8px;
    font-size: 0.82rem;
    cursor: default;
}
.ws-widget-item:hover { background: rgba(255,255,255,.03); }
.ws-widget-item i { color: var(--bw-accent); }
.ws-widget-mini-phone {
    aspect-ratio: 9/16;
    background: linear-gradient(160deg, #14172a, #0a0d18);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.08);
    padding: 12px 8px;
    display: flex; flex-direction: column; gap: 6px;
}
.ws-widget-mini-phone .mb {
    height: 28px;
    background: rgba(126,231,135,.15);
    border-radius: 6px;
    border: 1px solid rgba(126,231,135,.25);
}
.ws-widget-mini-phone .mb.alt {
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.06);
}

/* ===== AUTH VIEWS ===== */
.bw-auth-shell {
    min-height: calc(100vh - 80px);
    display: grid;
    place-items: center;
    padding: 100px 16px 40px;
}
.bw-auth-card {
    width: 100%;
    max-width: 460px;
    background: var(--bw-card);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.bw-auth-title {
    background: linear-gradient(135deg, #ffffff, var(--bw-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}
.bw-auth-sub { color: rgba(255,255,255,.55); margin-bottom: 24px; }
.bw-auth-form .form-control {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    color: #fff;
    padding: 11px 14px;
    border-radius: 10px;
    margin-bottom: 12px;
}
.bw-auth-form .form-control:focus {
    background: rgba(255,255,255,.05);
    border-color: rgba(126,231,135,.4);
    box-shadow: 0 0 0 3px rgba(126,231,135,.12);
    color: #fff;
}
.bw-auth-form label { font-size: 0.78rem; color: rgba(255,255,255,.7); margin-bottom: 4px; font-weight: 600; }
.bw-auth-divider {
    display: flex; align-items: center; gap: 12px;
    color: rgba(255,255,255,.4);
    font-size: 0.75rem;
    margin: 18px 0;
}
.bw-auth-divider::before, .bw-auth-divider::after {
    content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.08);
}
.bw-social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bw-social-btn {
    display: flex; align-items: center; justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background .15s, border-color .15s;
}
.bw-social-btn:hover { background: rgba(255,255,255,.07); border-color: rgba(126,231,135,.4); color: #fff; }
.bw-social-btn .gi { font-weight: 800; font-size: 1rem; }

@media (max-width: 768px) {
    .ws-body { grid-template-columns: 1fr; }
    .ws-sidebar { display: none; }
    .ws-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .ws-appbuilder-grid { grid-template-columns: 1fr; }
    .bp-demo-wrap { height: 540px; }
    .bp-node { width: 160px; }
}

/* =====================================================
   LANDING WORKSPACE MOCKUP (matches actual app design)
   ===================================================== */
.lpws-window {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, #0d1224, #0a0e1c);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lpws-titlebar {
    display: flex; align-items: center;
    padding: 10px 14px;
    background: rgba(255,255,255,.02);
    border-bottom: 1px solid rgba(255,255,255,.05);
    gap: 6px;
}
.lpws-titlebar .dot {
    width: 11px; height: 11px; border-radius: 50%;
    background: rgba(255,255,255,.15);
}
.lpws-titlebar .dot:nth-child(1) { background: #ff5f57; }
.lpws-titlebar .dot:nth-child(2) { background: #febc2e; }
.lpws-titlebar .dot:nth-child(3) { background: #28c840; }
.lpws-titlebar .url {
    margin-left: auto; margin-right: auto;
    background: rgba(255,255,255,.04);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: rgba(255,255,255,.6);
    font-family: 'Roboto Mono', monospace;
}

.lpws-frame {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    min-height: 680px;
    background:
        radial-gradient(circle at 18% 0%, rgba(139, 92, 246, 0.22), transparent 28%),
        radial-gradient(circle at 88% 8%, rgba(54, 212, 255, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(8, 13, 27, 0.98), rgba(7, 11, 22, 0.98));
}

/* Sidebar */
.lpws-sidebar {
    background: rgba(12, 18, 36, 0.78);
    border-right: 1px solid rgba(255,255,255,0.07);
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.lpws-nav {
    display: grid;
    gap: 4px;
}
.lpws-menu-group {
    display: grid;
    gap: 4px;
    margin-bottom: 14px;
}
.lpws-menu-title {
    margin: 0 12px 6px;
    color: var(--bw-muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.lpws-nav button {
    min-height: 40px;
    padding: 0 12px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d7e1ff;
    font-size: 0.9rem;
    font-weight: 700;
    transition: background 0.18s ease;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: left;
    width: 100%;
}
.lpws-nav button:hover {
    background: rgba(255,255,255,0.055);
}
.lpws-nav button.active {
    background: linear-gradient(135deg, rgba(79,140,255,0.20), rgba(139,92,246,0.17));
    border-color: rgba(79,140,255,0.22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    color: #fff;
}
.lpws-nav button span {
    width: 22px;
    text-align: center;
    font-size: 0.95rem;
}

.lpws-plan-box {
    margin-top: auto;
    padding: 16px;
    border-radius: 18px;
    background: rgba(79, 140, 255, 0.08);
    border: 1px solid rgba(79, 140, 255, 0.15);
}
.lpws-plan-label {
    color: var(--bw-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
}
.lpws-plan-name {
    margin-top: 6px;
    font-size: 1.1rem;
    font-weight: 900;
    color: #fff;
}
.lpws-mini-progress {
    height: 8px;
    margin-top: 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    overflow: hidden;
}
.lpws-mini-progress div {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--bw-accent-2), var(--bw-purple));
}
.lpws-plan-small {
    margin-top: 8px;
    color: var(--bw-muted);
    font-size: 0.78rem;
}

/* Main area */
.lpws-main {
    padding: 28px 30px 34px;
    overflow: hidden;
}

.lpws-section { display: none; animation: lpws-fade .25s ease; }
.lpws-section.active { display: block; }
@keyframes lpws-fade {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.lpws-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 22px;
}
.lpws-back {
    display: inline-flex;
    margin-bottom: 10px;
    color: #bcd0ff;
    font-weight: 800;
    font-size: 0.85rem;
    text-decoration: none;
}
.lpws-header h1 {
    margin: 0;
    font-size: clamp(1.7rem, 2.6vw, 2.4rem);
    line-height: 1;
    letter-spacing: -0.05em;
    font-weight: 950;
    background: linear-gradient(135deg, #ffffff, #bcd0ff 45%, #8aaeff 72%, #cabdff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.lpws-header.compact h1 {
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
}
.lpws-header p {
    max-width: 640px;
    margin: 12px 0 0;
    color: var(--bw-muted);
    line-height: 1.55;
    font-size: 0.92rem;
}
.lpws-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.lpws-tags span {
    min-height: 28px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.08);
    color: #dce7ff;
    font-size: 0.76rem;
    font-weight: 800;
}
.lpws-header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}
.lpws-btn {
    min-height: 38px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    color: white;
    font-size: 0.85rem;
}
.lpws-btn.primary {
    background: linear-gradient(135deg, #4f8cff, #a78bfa);
    box-shadow: 0 10px 24px rgba(79, 140, 255, 0.25);
}
.lpws-btn.secondary {
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.10);
}
.lpws-draft-status {
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    min-height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(53, 224, 161, 0.18);
    color: #a7f3d0;
    background: rgba(20, 184, 166, 0.10);
    font-size: 0.72rem;
    font-weight: 900;
}

/* Stat cards */
.lpws-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.lpws-stat-card {
    min-height: 110px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    overflow: hidden;
    position: relative;
}
.lpws-stat-card::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    right: -48px;
    top: -48px;
    background: rgba(255,255,255,0.08);
}
.lpws-stat-card.cyan { background: linear-gradient(135deg, rgba(54,212,255,0.22), rgba(79,140,255,0.14)); }
.lpws-stat-card.purple { background: linear-gradient(135deg, rgba(139,92,246,0.24), rgba(79,140,255,0.12)); }
.lpws-stat-card.green { background: linear-gradient(135deg, rgba(53,224,161,0.20), rgba(79,140,255,0.10)); }
.lpws-stat-card.dark { background: rgba(255,255,255,0.035); }
.lpws-stat-card span {
    display: block;
    color: #cfdcff;
    font-size: 0.78rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
}
.lpws-stat-card strong {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 10px;
    font-size: 1.4rem;
    letter-spacing: -0.05em;
    font-weight: 950;
    color: #fff;
}
.lpws-stat-card small {
    position: relative; z-index: 1;
    display: block;
    margin-top: 10px;
    color: var(--bw-muted);
    font-size: 0.74rem;
}

/* Cards / content */
.lpws-content-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.85fr;
    gap: 16px;
}
.lpws-big-card {
    background: rgba(15, 22, 43, 0.82);
    border: 1px solid rgba(255,255,255,0.075);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.24);
}
.lpws-card-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.lpws-card-head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 850;
    letter-spacing: -0.03em;
    color: #fff;
}
.lpws-card-head p {
    margin: 6px 0 0;
    color: var(--bw-muted);
    line-height: 1.55;
    font-size: 0.85rem;
}

/* IoT flow */
.lpws-iot-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 12px;
    align-items: center;
}
.lpws-flow-node {
    min-height: 140px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.075);
    display: grid;
    align-content: center;
    text-align: center;
    gap: 8px;
}
.lpws-flow-node.main {
    background: linear-gradient(135deg, rgba(79,140,255,0.16), rgba(139,92,246,0.14));
    border-color: rgba(79,140,255,0.20);
}
.lpws-flow-icon { font-size: 1.7rem; }
.lpws-flow-node strong { font-size: 0.95rem; color: #fff; }
.lpws-flow-node span { color: var(--bw-muted); line-height: 1.45; font-size: 0.78rem; }
.lpws-flow-arrow {
    color: #bcd0ff;
    font-size: 1.4rem;
    font-weight: 900;
}

/* Checklist */
.lpws-checklist {
    display: grid;
    gap: 10px;
}
.lpws-checklist > div {
    display: grid;
    grid-template-columns: 32px 1fr;
    align-items: start;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}
.lpws-checklist > div.done {
    background: rgba(53, 224, 161, 0.10);
    border-color: rgba(53, 224, 161, 0.22);
}
.lpws-checklist b {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(79,140,255,0.18);
    color: #cfdcff;
    font-size: 0.85rem;
    font-weight: 900;
}
.lpws-checklist > div.done b {
    background: rgba(53, 224, 161, 0.25);
    color: #d1fae5;
}
.lpws-checklist strong { display: block; color: #fff; font-size: 0.92rem; }
.lpws-checklist span { display: block; color: var(--bw-muted); font-size: 0.8rem; margin-top: 2px; line-height: 1.45; }

/* Empty state */
.lpws-empty {
    min-height: 280px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 30px 20px;
    border: 1px dashed rgba(255,255,255,0.15);
    border-radius: 18px;
    background: rgba(255,255,255,0.025);
}
.lpws-empty-icon {
    width: 64px; height: 64px;
    display: grid; place-items: center;
    margin: 0 auto 14px;
    font-size: 1.7rem;
    border-radius: 20px;
    background: rgba(79, 140, 255, 0.10);
    border: 1px solid rgba(79, 140, 255, 0.18);
}
.lpws-empty h3 { font-size: 1.05rem; margin: 0 0 8px; color: #fff; font-weight: 850; }
.lpws-empty p { color: var(--bw-muted); margin: 0; font-size: 0.88rem; max-width: 480px; }

/* Device cards */
.lpws-device-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.lpws-device-card {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.07);
    display: grid;
    gap: 12px;
}
.lpws-device-card.active {
    background: linear-gradient(135deg, rgba(79,140,255,0.14), rgba(139,92,246,0.10));
    border-color: rgba(79,140,255,0.30);
}
.lpws-device-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.lpws-device-ident {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.lpws-device-ident i {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(79,140,255,0.18);
    display: grid; place-items: center;
    color: #bcd0ff;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.lpws-device-ident strong { display: block; color: #fff; font-size: 0.9rem; font-weight: 800; }
.lpws-device-ident span { display: block; color: var(--bw-muted); font-size: 0.74rem; margin-top: 2px; }
.lpws-device-status {
    font-style: normal;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.lpws-device-status.online {
    background: rgba(53, 224, 161, 0.18);
    color: #6ee7b7;
}
.lpws-device-status.offline {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.5);
}
.lpws-device-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.lpws-device-meta div {
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(0,0,0,0.24);
    border: 1px solid rgba(255,255,255,0.05);
}
.lpws-device-meta span { display: block; color: var(--bw-muted); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 800; }
.lpws-device-meta strong { display: block; color: #fff; font-size: 0.85rem; font-weight: 800; margin-top: 4px; }

/* Table */
.lpws-table {
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px;
    overflow: hidden;
    font-size: 0.82rem;
}
.lpws-table-row {
    display: grid;
    grid-template-columns: 80px 1fr 1fr 1fr;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,.04);
    color: #d7e1ff;
}
.lpws-table-row:last-child { border-bottom: 0; }
.lpws-table-row.head {
    background: rgba(255,255,255,.04);
    color: rgba(255,255,255,.55);
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.06em;
}

/* Endpoints */
.lpws-endpoint {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 14px;
    align-items: center;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 8px;
}
.lpws-endpoint:last-child { margin-bottom: 0; }
.lpws-endpoint-method {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.72rem;
    font-weight: 800;
    text-align: center;
    padding: 4px 8px;
    border-radius: 8px;
}
.lpws-endpoint-method.get { background: rgba(124,197,255,.15); color: var(--bw-accent-2); }
.lpws-endpoint-method.post { background: rgba(126,231,135,.15); color: var(--bw-accent); }
.lpws-endpoint-path { font-family: 'Roboto Mono', monospace; font-size: 0.88rem; color: #fff; }
.lpws-endpoint-desc { font-size: 0.74rem; color: rgba(255,255,255,.55); margin-top: 4px; }
.lpws-endpoint-calls { font-size: 0.74rem; color: rgba(255,255,255,.6); font-weight: 700; }

/* Automations */
.lpws-auto {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 10px;
}
.lpws-auto:last-child { margin-bottom: 0; }
.lpws-auto-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 8px;
}
.lpws-auto-head strong { font-size: 0.95rem; color: #fff; }
.lpws-auto-toggle {
    width: 36px; height: 20px;
    background: rgba(53,224,161,.5);
    border-radius: 999px;
    position: relative;
}
.lpws-auto-toggle.off { background: rgba(255,255,255,.1); }
.lpws-auto-toggle::after {
    content: ''; position: absolute;
    width: 16px; height: 16px;
    background: #fff; border-radius: 50%;
    top: 2px; right: 2px;
    transition: right .2s;
}
.lpws-auto-toggle.off::after { right: 18px; }
.lpws-auto-meta { font-size: 0.78rem; color: rgba(255,255,255,.55); }
.lpws-auto-meta b { color: #fff; font-weight: 800; }

/* Versions */
.lpws-version {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px; align-items: center;
    padding: 12px 14px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px;
    margin-bottom: 8px;
}
.lpws-version:last-child { margin-bottom: 0; }
.lpws-version-tag {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.72rem; font-weight: 800;
    background: rgba(124,197,255,.15);
    color: var(--bw-accent-2);
    padding: 4px 10px; border-radius: 8px;
}
.lpws-version-msg { font-size: 0.9rem; color: #fff; }
.lpws-version-time { font-size: 0.74rem; color: rgba(255,255,255,.5); }

/* App Builder mini phone */
.lpws-appbuilder-grid {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 18px;
    align-items: start;
}
.lpws-widget-list {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px;
    padding: 8px;
}
.lpws-widget-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #dce7ff;
    cursor: default;
}
.lpws-widget-item:hover { background: rgba(255,255,255,.04); }
.lpws-widget-item i { color: var(--bw-accent-2); font-size: 1.05rem; }
.lpws-mini-phone {
    aspect-ratio: 9/17;
    background: linear-gradient(160deg, #14172a, #0a0d18);
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,.08);
    padding: 12px 10px 6px;
    display: flex; flex-direction: column; gap: 8px;
    box-shadow: inset 0 0 30px rgba(0,0,0,.4);
}
.lpws-mini-phone-screen {
    flex: 1;
    background: #060a15;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.04);
    padding: 12px 10px 6px;
    display: flex; flex-direction: column; gap: 8px;
}
.lpws-mini-phone-header {
    display: flex; flex-direction: column;
    padding: 0 4px 8px;
    border-bottom: 1px solid rgba(255,255,255,.05);
    margin-bottom: 4px;
}
.lpws-mini-phone-header small { color: rgba(255,255,255,.5); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.08em; }
.lpws-mini-phone-header b { color: #fff; font-size: 0.9rem; font-weight: 800; }
.lpws-mini-widget {
    background: rgba(126,231,135,.10);
    border: 1px solid rgba(126,231,135,.22);
    border-radius: 10px;
    padding: 8px 10px;
    display: flex; justify-content: space-between; align-items: center;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}
.lpws-mini-widget.gauge {
    background: rgba(124,197,255,.10);
    border-color: rgba(124,197,255,.22);
    justify-content: center;
    font-size: 1rem;
    font-weight: 900;
}
.lpws-mini-widget.slider {
    background: rgba(167,139,250,.10);
    border-color: rgba(167,139,250,.22);
    justify-content: center;
}
.lpws-mini-widget i { color: var(--bw-accent); font-size: 1rem; }
.lpws-mini-phone-tabs {
    margin-top: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 6px 0 2px;
    border-top: 1px solid rgba(255,255,255,.05);
}
.lpws-mini-phone-tabs span {
    display: grid; place-items: center;
    height: 28px;
    color: rgba(255,255,255,.4);
    font-size: 0.95rem;
    border-radius: 8px;
}
.lpws-mini-phone-tabs span.active {
    color: var(--bw-accent);
    background: rgba(126,231,135,.08);
}

/* =====================================================
   LANDING BLUEPRINT MOCKUP (matches actual blueprint)
   ===================================================== */
.lpbp-window {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, #0d1224, #0a0e1c);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lpbp-toolbar {
    display: flex; align-items: center; justify-content: flex-end;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.02);
    flex-wrap: wrap;
}
.lpbp-autosync {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(53, 224, 161, 0.18);
    color: #a7f3d0;
    background: rgba(20, 184, 166, 0.10);
    font-size: 0.74rem;
    font-weight: 900;
}
.lpbp-toolbar-select {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.10);
    color: #d7e1ff;
    background: rgba(5, 9, 20, 0.62);
    font-size: 0.82rem;
    font-weight: 700;
}
.lpbp-canvas {
    height: 540px !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: inset 0 0 80px rgba(0,0,0,.4);
}
.lpbp-hint {
    position: absolute; top: 12px; right: 14px;
    color: rgba(255,255,255,.45);
    font-size: 0.75rem;
    pointer-events: none;
    z-index: 5;
}

/* Blueprint node overrides — match actual app's node-card design */
.lpbp-node {
    width: 200px !important;
    padding: 14px 14px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    background: rgba(15, 23, 42, 0.92) !important;
    box-shadow: 0 16px 40px rgba(0,0,0,0.36) !important;
}
.lpbp-node.sensor_am2302 {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.24), rgba(15, 23, 42, 0.94)) !important;
}
.lpbp-node.compare_value {
    background: linear-gradient(180deg, rgba(234, 179, 8, 0.22), rgba(15, 23, 42, 0.94)) !important;
}
.lpbp-node.output {
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.26), rgba(15, 23, 42, 0.94)) !important;
}
.lpbp-node.data_logger {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.22), rgba(15, 23, 42, 0.94)) !important;
}
.lpbp-node.automation_timer {
    background: linear-gradient(180deg, rgba(244, 63, 94, 0.24), rgba(15, 23, 42, 0.94)) !important;
}
.lpbp-node-title {
    display: grid;
    gap: 4px;
    margin-bottom: 6px;
}
.lpbp-node-title span {
    color: rgba(226, 232, 240, 0.62);
    font-size: 0.66rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.10em;
}
.lpbp-node-title strong {
    font-size: 1rem;
    font-weight: 850;
    color: #fff;
    letter-spacing: -0.01em;
}
.lpbp-node small {
    color: rgba(226, 232, 240, 0.55);
    font-weight: 700;
    font-size: 0.74rem;
    display: block;
    margin-bottom: 4px;
}

/* Override wire color to match app (bluish) */
.lpbp-window .bp-wire {
    stroke: rgba(113, 196, 255, 0.82) !important;
    stroke-width: 3 !important;
    filter: drop-shadow(0 0 8px rgba(79, 140, 255, 0.32)) !important;
}
.lpbp-window .bp-wire.draft {
    stroke: rgba(255, 213, 138, 0.85) !important;
    stroke-dasharray: 10 8 !important;
}

/* =====================================================
   COMMUNITY ROW (5 posts in one line) — copies cm-card design
   ===================================================== */
.community-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.cm-card {
    display: flex;
    flex-direction: column;
    background: var(--bw-card);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .15s, border-color .2s, background .2s;
}
.cm-card:hover {
    transform: translateY(-3px);
    border-color: rgba(126,231,135,.35);
    background: var(--bw-card-hover);
    color: inherit;
}
.cm-card-cover {
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(11,15,26,.85);
    font-size: 2.4rem;
    overflow: hidden;
}
.cm-card-cover i { filter: drop-shadow(0 4px 10px rgba(0,0,0,.2)); }
.cm-card-cover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s;
}
.cm-card:hover .cm-card-cover-image img { transform: scale(1.04); }

.cm-card-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
}
.cm-card-title {
    margin: 0;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cm-card:hover .cm-card-title { color: var(--bw-accent); }
.cm-card-author {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--bw-muted);
    font-size: 0.78rem;
    margin-top: auto;
}
.cm-card-author span:not(.cm-author-avatar) {
    color: #c6d1d9;
    font-weight: 600;
}
.cm-author-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bw-accent), var(--bw-accent-2));
    color: #0b0f1a;
    font-weight: 800;
    font-size: 0.7rem;
    flex-shrink: 0;
}
.cm-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255,255,255,.06);
    font-size: 0.72rem;
    color: var(--bw-muted);
}
.cm-card-stats span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.cm-card-stats i { color: var(--bw-accent); }

.cm-empty {
    text-align: center;
    padding: 50px 20px;
    background: rgba(255,255,255,.02);
    border: 1px dashed rgba(255,255,255,.10);
    border-radius: 14px;
}
.cm-empty-icon {
    font-size: 2.4rem;
    color: var(--bw-accent);
}

@media (max-width: 1100px) {
    .community-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lpws-frame { grid-template-columns: 200px minmax(0, 1fr); }
    .lpws-content-grid { grid-template-columns: 1fr; }
    .lpws-iot-flow { grid-template-columns: 1fr; }
    .lpws-flow-arrow { display: none; }
}
@media (max-width: 768px) {
    .lpws-frame { grid-template-columns: 1fr; min-height: auto; }
    .lpws-sidebar { display: none; }
    .lpws-stats { grid-template-columns: repeat(2, 1fr); }
    .lpws-appbuilder-grid { grid-template-columns: 1fr; }
    .lpws-device-grid { grid-template-columns: 1fr; }
    .lpws-main { padding: 18px; }
    .community-row { grid-template-columns: 1fr 1fr; gap: 12px; }
    .lpbp-canvas { height: 460px !important; }
    .lpbp-node { width: 170px !important; }
}
@media (max-width: 480px) {
    .community-row { grid-template-columns: 1fr; }
}

/* =====================================================
   LANDING MOBILE APP MOCKUP (copies mobile-app.css)
   ===================================================== */
.lpmob-stage {
    position: relative;
    width: 100%;
    display: grid;
    place-items: center;
    padding: 20px 0;
}
.lpmob-glow {
    position: absolute;
    width: 80%;
    height: 70%;
    background:
        radial-gradient(60% 60% at 50% 40%, rgba(79, 142, 247, 0.18), transparent 70%),
        radial-gradient(40% 40% at 70% 60%, rgba(126, 231, 135, 0.10), transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}
.lpmob-phone {
    position: relative;
    width: 320px;
    max-width: 100%;
    height: 660px;
    border-radius: 44px;
    background: linear-gradient(160deg, #1a1d28, #090d18);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 -20px 40px rgba(255, 255, 255, 0.02);
    padding: 10px;
    z-index: 1;
}
.lpmob-notch {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 24px;
    border-radius: 0 0 16px 16px;
    background: rgba(0, 0, 0, 0.75);
    z-index: 5;
}
.lpmob-screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 36px;
    background:
        radial-gradient(100% 60% at 50% 0%, rgba(79, 142, 247, 0.08), transparent 70%),
        radial-gradient(80% 60% at 50% 100%, rgba(79, 142, 247, 0.04), transparent 70%),
        #060a15;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #fff;
    font-family: Inter, system-ui, sans-serif;
}

/* Top bar */
.lpmob-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 14px 8px;
    background: rgba(6, 10, 21, 0.85);
    backdrop-filter: blur(14px);
    flex-shrink: 0;
}
.lpmob-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
}
.lpmob-brand-logo {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    object-fit: contain;
}
.lpmob-brand-bastl { color: #fff; }
.lpmob-brand-world { color: #4f8ef7; }
.lpmob-top-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.lpmob-icon-btn {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 0.9rem;
    cursor: pointer;
}
.lpmob-icon-dot {
    position: absolute;
    top: 6px; right: 6px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #fb7185;
}
.lpmob-avatar-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7ee787, #7cc5ff);
    color: #0b0f1a;
    display: grid; place-items: center;
    font-weight: 800;
    font-size: 0.78rem;
    border: 0;
    cursor: pointer;
}

/* Project dropdown */
.lpmob-project-wrap {
    padding: 8px 14px 4px;
    flex-shrink: 0;
}
.lpmob-project-dropdown {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}
.lpmob-project-dropdown i { color: rgba(255, 255, 255, 0.5); font-size: 0.85rem; }

/* Tab screen */
.lpmob-tab-screen {
    flex: 1;
    overflow-y: auto;
    padding: 8px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.lpmob-tab-screen::-webkit-scrollbar { width: 0; }

.lpmob-section-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
    margin: 6px 0 -2px;
    padding: 0 2px;
}

/* Scene cards */
.lpmob-scene-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.lpmob-scene-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    color: #fff;
    cursor: pointer;
    transition: transform .12s, background .15s;
}
.lpmob-scene-card:active { transform: scale(0.97); background: rgba(255, 255, 255, 0.06); }
.lpmob-scene-icon {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: rgba(79, 142, 247, 0.14);
    display: grid; place-items: center;
    color: #4f8ef7;
    font-size: 0.85rem;
}
.lpmob-scene-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
}
.lpmob-scene-status {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.42);
    font-weight: 500;
}

/* Switch list */
.lpmob-list-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    overflow: hidden;
}
.lpmob-switch-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    text-align: left;
    color: #fff;
    cursor: pointer;
}
.lpmob-switch-row:last-child { border-bottom: 0; }
.lpmob-switch-icon {
    width: 32px; height: 32px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.06);
    display: grid; place-items: center;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.62);
    flex-shrink: 0;
    transition: background .2s, color .2s, box-shadow .2s;
}
.lpmob-switch-icon.on {
    background: rgba(126, 231, 135, 0.18);
    color: #7ee787;
    box-shadow: 0 0 0 1px rgba(126, 231, 135, 0.3);
}
.lpmob-switch-label {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.lpmob-switch-label strong {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}
.lpmob-switch-label small {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.42);
}

/* Toggle */
.lpmob-toggle {
    width: 40px; height: 22px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.07);
    position: relative;
    transition: background .25s, border-color .25s, box-shadow .25s;
    flex-shrink: 0;
}
.lpmob-toggle.on {
    background: linear-gradient(135deg, #7ee787, #5fcf75);
    border-color: transparent;
    box-shadow: 0 0 0 1px rgba(126, 231, 135, 0.35), 0 0 12px rgba(126, 231, 135, 0.3);
}
.lpmob-toggle-thumb {
    position: absolute;
    top: 1px; left: 1px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: transform .25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lpmob-toggle.on .lpmob-toggle-thumb { transform: translateX(16px); }

/* Slider tile */
.lpmob-slider-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}
.lpmob-slider-tile {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.lpmob-slider-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
}
.lpmob-slider-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
}
.lpmob-slider-value {
    font-size: 0.88rem;
    font-weight: 800;
    color: #4f8ef7;
}
.lpmob-slider-control {
    display: flex;
    align-items: center;
    gap: 10px;
}
.lpmob-slider-icon {
    width: 24px; height: 24px;
    border-radius: 7px;
    background: rgba(79, 142, 247, 0.14);
    display: grid; place-items: center;
    color: #4f8ef7;
    font-size: 0.78rem;
    flex-shrink: 0;
}
.lpmob-slider-input {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(79, 142, 247, 0.85) 65%, rgba(79, 142, 247, 0.15) 65%);
    outline: none;
    border: 0;
}
.lpmob-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #4f8ef7;
    box-shadow: 0 2px 8px rgba(79, 142, 247, 0.45);
    cursor: pointer;
}
.lpmob-slider-input::-moz-range-thumb {
    width: 16px; height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #4f8ef7;
    cursor: pointer;
}

/* Output cards */
.lpmob-output-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.lpmob-output-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.lpmob-output-icon {
    width: 26px; height: 26px;
    border-radius: 8px;
    background: rgba(79, 142, 247, 0.14);
    display: grid; place-items: center;
    color: #4f8ef7;
    font-size: 0.82rem;
}
.lpmob-output-name {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.62);
    font-weight: 600;
}
.lpmob-output-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1;
}
.lpmob-output-value small {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.62);
    margin-left: 3px;
}

/* Bottom nav */
.lpmob-bottom-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 6px 8px 10px;
    background: rgba(8, 12, 28, 0.92);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(16px);
    flex-shrink: 0;
}
.lpmob-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 4px;
    border-radius: 10px 10px 0 0;
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: color .15s, background .15s;
}
.lpmob-nav-btn i { font-size: 1.1rem; }
.lpmob-nav-btn.active {
    color: #4f8ef7;
    background: rgba(79, 142, 247, 0.14);
}

@media (max-width: 992px) {
    .lpmob-phone { width: 300px; height: 620px; }
}
@media (max-width: 480px) {
    .lpmob-phone { width: 280px; height: 580px; }
}
