/* ================================================================
   SenseR Cloud � global stylesheet
   Particle.io-inspired � light + dark via CSS variables from MudBlazor
   ================================================================ */

/* -- Base ------------------------------------------------------- */
html, body {
    font-family: 'Inter', 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--mud-palette-background, #060E1A);
    color: var(--mud-palette-text-primary, #E0EAFF);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* -- Scrollbar -------------------------------------------------- */
::-webkit-scrollbar              { width: 5px; height: 5px; }
::-webkit-scrollbar-track        { background: var(--mud-palette-background, #060E1A); }
::-webkit-scrollbar-thumb        { background: var(--mud-palette-lines-default, #1A2B3C); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover  { background: #B5121B; }

/* -- Links ------------------------------------------------------ */
a, .btn-link { color: #B5121B; }

/* -- Misc helpers ----------------------------------------------- */
.mono {
    font-family: 'Fira Code', 'Courier New', 'Consolas', monospace;
    font-size: 0.82em;
    background: rgba(181,18,27,0.08);
    padding: 0.1em 0.35em;
    border-radius: 4px;
    color: #B5121B;
}

.glow-primary { text-shadow: 0 0 20px rgba(181,18,27,0.5); color: #B5121B; }

.status-dot { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:6px; vertical-align:middle; }
.status-dot.online  { background:#00E5B0; box-shadow: 0 0 7px rgba(0,229,176,0.6); }
.status-dot.offline { background:#607B8B; }
.status-dot.warning { background:#FFB74D; box-shadow: 0 0 7px rgba(255,183,77,0.5); }

.stat-card { position:relative; overflow:hidden; }
.stat-card::before {
    content:''; position:absolute; top:0; left:0; right:0; height:3px;
    background: var(--stat-accent, #B5121B); border-radius: 10px 10px 0 0;
}
.stat-card-primary { --stat-accent: #B5121B; }
.stat-card-success { --stat-accent: #00E5B0; }
.stat-card-warning { --stat-accent: #FFB74D; }
.stat-card-error   { --stat-accent: #FF5252; }

.mud-table-head .mud-table-cell {
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: var(--mud-palette-text-secondary) !important;
}

/* -- Auth pages -------------------------------------------------- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse 70% 40% at 50% -10%, rgba(27,174,174,0.14) 0%, transparent 60%),
        var(--mud-palette-background, #060E1A);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--mud-palette-surface, #0C1929);
    border: 1px solid var(--mud-palette-divider, rgba(255,255,255,0.08));
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 40px rgba(0,0,0,0.25), 0 0 0 1px rgba(27,174,174,0.06);
}

.auth-logo  { display:flex; justify-content:center; margin-bottom:1rem; }
.auth-title { font-weight:700 !important; margin-bottom:0.25rem; }

/* -- Form validation --------------------------------------------- */
.valid.modified:not([type=checkbox]) { outline: 1px solid #00E5B0; }
.invalid                             { outline: 1px solid #FF5252; }
.validation-message                  { color: #FF5252; font-size: 0.8rem; }

/* -- Blazor error boundary --------------------------------------- */
.blazor-error-boundary {
    padding: 1rem 1rem 1rem 3.7rem;
    color: #FF5252;
    background-color: rgba(211,47,47,0.1);
    border: 1px solid rgba(255,82,82,0.3);
    border-radius: 8px;
}
.blazor-error-boundary::after { content: "An error has occurred." }

/* -- Focus ring -------------------------------------------------- */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.15rem rgba(27,174,174,0.35);
}

.darker-border-checkbox.form-check-input { border-color: var(--mud-palette-lines-inputs, #1A2B3C); }

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--mud-palette-text-secondary, #607B8B);
    text-align: end;
}
.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder { text-align: start; }


/* ================================================================
   LANDING PAGE STYLES
   ================================================================ */

/* -- Shared section helpers --------------------------------------- */
.lp-section { padding: 6rem 0; }

.lp-section-alt {
    background: var(--mud-palette-background-gray, #0A1929);
}

.lp-section-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.lp-overline {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #B5121B;
    margin: 0 0 0.75rem;
}

.lp-section-h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--mud-palette-text-primary);
    margin: 0 0 1rem;
}

.lp-section-sub {
    font-size: 1.05rem;
    color: var(--mud-palette-text-secondary);
    max-width: 600px;
    margin: 0 0 3.5rem;
    line-height: 1.7;
}

/* -- Hero --------------------------------------------------------- */
.lp-hero {
    position: relative;
    overflow: hidden;
    background: #060E1A;
    min-height: 88vh;
    display: flex;
    align-items: center;
}

.lp-hero-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(181,18,27,0.18) 0%, transparent 70%);
    pointer-events: none;
}

.lp-hero-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 5rem 1.5rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.lp-hero-content { color: #E0EAFF; }

.lp-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #B5121B;
    background: rgba(181,18,27,0.1);
    border: 1px solid rgba(181,18,27,0.25);
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.lp-hero-h1 {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.12;
    color: #E0EAFF;
    margin: 0 0 1.5rem;
}

.lp-hero-accent { color: #B5121B; }

.lp-hero-sub {
    font-size: 1.1rem;
    color: #8BAABB;
    line-height: 1.75;
    margin: 0 0 2.5rem;
    max-width: 520px;
}

.lp-hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.lp-btn-primary {
    display: inline-flex;
    align-items: center;
    background: #2A7CBE;
    color: #fff !important;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255,255,255,0.1);
}
.lp-btn-primary:hover {
    background: #183d5e;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(13,40,64,0.45);
}

.lp-btn-ghost {
    display: inline-flex;
    align-items: center;
    color: #8BAABB !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    text-decoration: none !important;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.lp-btn-ghost:hover {
    color: #E0EAFF !important;
    border-color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.05);
}

/* Ghost variant for light background (CTA section) */
.lp-btn-ghost-light {
    color: rgba(224,234,255,0.8) !important;
    border-color: rgba(224,234,255,0.3);
}
.lp-btn-ghost-light:hover {
    color: #fff !important;
    border-color: rgba(224,234,255,0.6);
}

/* -- Hero floating card ------------------------------------------- */
.lp-hero-card {
    background: rgba(12,25,41,0.85);
    border: 1px solid rgba(27,174,174,0.2);
    border-radius: 14px;
    padding: 1.5rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(27,174,174,0.08);
}

.lp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}
.lp-card-title  { font-weight: 700; font-size: 0.9rem; color: #E0EAFF; }
.lp-card-live   { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; color: #00E5B0; }

.lp-card-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0;
}
.lp-dot          { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.lp-dot-green    { background: #00E5B0; box-shadow: 0 0 7px rgba(0,229,176,0.6); }
.lp-dot-amber    { background: #FFB74D; box-shadow: 0 0 7px rgba(255,183,77,0.5); }
.lp-card-label   { font-size: 0.875rem; color: #8BAABB; flex: 1; }
.lp-card-badge   { font-size: 0.68rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 100px; letter-spacing: 0.04em; }
.lp-badge-green  { background: rgba(0,229,176,0.12); color: #00E5B0; }
.lp-badge-amber  { background: rgba(255,183,77,0.12); color: #FFB74D; }

.lp-card-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 1rem 0; }

.lp-card-metrics { display: flex; justify-content: space-around; }
.lp-card-metric  { text-align: center; }
.lp-metric-val   { display: block; font-size: 1.35rem; font-weight: 700; color: #1BAEAE; line-height: 1; }
.lp-metric-label { font-size: 0.7rem; color: #607B8B; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.25rem; display: block; }

/* -- Stats bar ----------------------------------------------------- */
.lp-stats {
    background: var(--mud-palette-surface, #0C1929);
    border-top: 1px solid var(--mud-palette-divider, rgba(255,255,255,0.07));
    border-bottom: 1px solid var(--mud-palette-divider, rgba(255,255,255,0.07));
    padding: 2rem 0;
}

.lp-stats-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.lp-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 3rem;
    gap: 0.2rem;
}

.lp-stat-num {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--mud-palette-text-primary);
    letter-spacing: -0.02em;
}

.lp-stat-lbl {
    font-size: 0.8rem;
    color: var(--mud-palette-text-secondary);
    text-align: center;
}

.lp-stat-sep {
    width: 1px;
    height: 40px;
    background: var(--mud-palette-divider, rgba(255,255,255,0.07));
}

/* -- Feature cards ------------------------------------------------- */
.lp-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.lp-feature-card {
    background: var(--mud-palette-surface, #0C1929);
    border: 1px solid var(--mud-palette-divider, rgba(255,255,255,0.07));
    border-left: 3px solid var(--fc-border, rgba(255,255,255,0.1));
    border-radius: 12px;
    padding: 1.75rem;
    transition: border-color 0.2s, transform 0.22s cubic-bezier(0.22,1,0.36,1),
                box-shadow 0.22s cubic-bezier(0.22,1,0.36,1);
}

/* Per-colour left-border + hover glow */
.lp-fc-teal   { --fc-border: #1BAEAE; }
.lp-fc-blue   { --fc-border: #4FC3F7; }
.lp-fc-green  { --fc-border: #00E5B0; }
.lp-fc-amber  { --fc-border: #FFB74D; }
.lp-fc-purple { --fc-border: #9C82E5; }
.lp-fc-red    { --fc-border: #FF5252; }

.lp-feature-card:hover {
    transform: translateY(-4px) translateX(2px);
}
.lp-fc-teal:hover   { border-color: #1BAEAE; box-shadow: -4px 6px 28px rgba(27,174,174,0.18),  0 2px 12px rgba(0,0,0,0.2); }
.lp-fc-blue:hover   { border-color: #4FC3F7; box-shadow: -4px 6px 28px rgba(79,195,247,0.18), 0 2px 12px rgba(0,0,0,0.2); }
.lp-fc-green:hover  { border-color: #00E5B0; box-shadow: -4px 6px 28px rgba(0,229,176,0.18),  0 2px 12px rgba(0,0,0,0.2); }
.lp-fc-amber:hover  { border-color: #FFB74D; box-shadow: -4px 6px 28px rgba(255,183,77,0.18), 0 2px 12px rgba(0,0,0,0.2); }
.lp-fc-purple:hover { border-color: #9C82E5; box-shadow: -4px 6px 28px rgba(156,130,229,0.18),0 2px 12px rgba(0,0,0,0.2); }
.lp-fc-red:hover    { border-color: #FF5252; box-shadow: -4px 6px 28px rgba(255,82,82,0.18),  0 2px 12px rgba(0,0,0,0.2); }

.lp-feat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
}
.lp-feat-icon svg { width: 22px; height: 22px; }

.lp-feat-teal   { background: rgba(27,174,174,0.12);  color: #1BAEAE; }
.lp-feat-blue   { background: rgba(79,195,247,0.12);  color: #4FC3F7; }
.lp-feat-green  { background: rgba(0,229,176,0.12);   color: #00E5B0; }
.lp-feat-amber  { background: rgba(255,183,77,0.12);  color: #FFB74D; }
.lp-feat-purple { background: rgba(156,130,229,0.12); color: #9C82E5; }
.lp-feat-red    { background: rgba(255,82,82,0.12);   color: #FF5252; }

.lp-feat-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--mud-palette-text-primary);
    margin: 0 0 0.6rem;
}

.lp-feat-desc {
    font-size: 0.875rem;
    color: var(--mud-palette-text-secondary);
    line-height: 1.65;
    margin: 0;
}

/* -- How it works -------------------------------------------------- */
.lp-steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: start;
    gap: 1.5rem;
    margin-top: 3rem;
}

.lp-step {
    background: var(--mud-palette-surface, #0C1929);
    border: 1px solid var(--mud-palette-divider, rgba(255,255,255,0.07));
    border-radius: 12px;
    padding: 2rem 1.75rem;
}

.lp-step-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(27,174,174,0.25);
    line-height: 1;
    margin-bottom: 0.75rem;
    font-variant-numeric: tabular-nums;
}

.lp-step-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--mud-palette-text-primary);
    margin: 0 0 0.6rem;
}

.lp-step-desc {
    font-size: 0.875rem;
    color: var(--mud-palette-text-secondary);
    line-height: 1.65;
    margin: 0;
}

.lp-step-arrow {
    font-size: 1.75rem;
    color: rgba(27,174,174,0.4);
    align-self: center;
    margin-top: 1rem;
}

/* -- Platform pillars ---------------------------------------------- */
.lp-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.lp-pillar {
    background: var(--mud-palette-surface, #0C1929);
    border: 1px solid var(--mud-palette-divider, rgba(255,255,255,0.07));
    border-left: 3px solid var(--pl-border, rgba(255,255,255,0.1));
    border-radius: 12px;
    padding: 1.75rem;
    transition: transform 0.22s cubic-bezier(0.22,1,0.36,1),
                box-shadow  0.22s cubic-bezier(0.22,1,0.36,1);
}

.lp-pl-teal   { --pl-border: #1BAEAE; }
.lp-pl-blue   { --pl-border: #4FC3F7; }
.lp-pl-amber  { --pl-border: #FFB74D; }
.lp-pl-purple { --pl-border: #9C82E5; }

.lp-pl-teal:hover   { transform: translateY(-3px); box-shadow: -3px 6px 24px rgba(27,174,174,0.15);  border-color: #1BAEAE; }
.lp-pl-blue:hover   { transform: translateY(-3px); box-shadow: -3px 6px 24px rgba(79,195,247,0.15); border-color: #4FC3F7; }
.lp-pl-amber:hover  { transform: translateY(-3px); box-shadow: -3px 6px 24px rgba(255,183,77,0.15); border-color: #FFB74D; }
.lp-pl-purple:hover { transform: translateY(-3px); box-shadow: -3px 6px 24px rgba(156,130,229,0.15);border-color: #9C82E5; }

.lp-pillar-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #1BAEAE;
    margin-bottom: 1.1rem;
}

.lp-pillar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.lp-pillar-list li {
    font-size: 0.875rem;
    color: var(--mud-palette-text-secondary);
    padding-left: 1.1rem;
    position: relative;
}

.lp-pillar-list li::before {
    content: '?';
    position: absolute;
    left: 0;
    color: rgba(27,174,174,0.5);
    font-size: 0.75rem;
}

/* -- CTA section --------------------------------------------------- */
.lp-cta {
    position: relative;
    overflow: hidden;
    background: #060E1A;
    padding: 7rem 0;
    text-align: center;
}

.lp-cta-glow {
    position: absolute;
    bottom: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(27,174,174,0.2) 0%, transparent 70%);
    pointer-events: none;
}

.lp-cta-inner {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.lp-cta-h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: #E0EAFF;
    margin: 0 0 1rem;
    line-height: 1.15;
}

.lp-cta-sub {
    font-size: 1.05rem;
    color: #8BAABB;
    margin: 0 0 2.5rem;
}

/* -- Responsive ---------------------------------------------------- */
@media (max-width: 900px) {
    .lp-hero-inner {
        grid-template-columns: 1fr;
        padding-top: 3rem;
    }

    .lp-hero-card { display: none; }

    .lp-steps {
        grid-template-columns: 1fr;
    }

    .lp-step-arrow {
        transform: rotate(90deg);
        text-align: center;
        align-self: auto;
    }

    .lp-stats-inner { gap: 1.5rem; }
    .lp-stat-sep    { display: none; }
    .lp-stat        { padding: 0; }
}

@media (max-width: 600px) {
    .lp-hero { min-height: auto; padding-bottom: 2rem; }
    .lp-features-grid { grid-template-columns: 1fr; }
    .lp-pillars       { grid-template-columns: 1fr; }
}


/* ================================================================
   PLATFORM FLOW � animated data-flow diagram
   ================================================================ */

/* -- Section wrapper -------------------------------------------- */
.lp-flow-section {
    position: relative;
    overflow: hidden;
}

.lp-flow-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(27,174,174,0.06) 0%, transparent 65%);
    pointer-events: none;
}

/* -- 5-column grid: sources | pipe | hub | pipe | outputs -------- */
.lp-flow-diagram {
    display: grid;
    grid-template-columns: 1fr 110px 190px 110px 1fr;
    align-items: center;
    margin-top: 3.5rem;
}

/* -- Device / App columns --------------------------------------- */
.lp-flow-col {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

/* Output column cards slide in from right on hover */
.lp-flow-col-out .lp-flow-card:hover {
    transform: translateX(-4px) !important;
}

/* -- Individual flow cards -------------------------------------- */
.lp-flow-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: var(--mud-palette-surface, #0C1929);
    border: 1px solid var(--mud-palette-divider, rgba(255,255,255,0.07));
    border-radius: 10px;
    padding: 0.85rem 1rem;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    animation: fcardIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: var(--card-delay, 0ms);
}

.lp-flow-card:hover {
    border-color: rgba(27,174,174,0.3);
    box-shadow: 0 4px 24px rgba(27,174,174,0.1);
    transform: translateX(4px);
}

@keyframes fcardIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* -- Icon badge ------------------------------------------------- */
.lp-flow-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 9px;
    background: var(--fi-bg, rgba(27,174,174,0.12));
    color: var(--fi-fg, #1BAEAE);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lp-flow-icon svg { width: 20px; height: 20px; }

/* -- Card text -------------------------------------------------- */
.lp-flow-card-text {
    flex: 1;
    min-width: 0;
}

.lp-flow-card-name {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--mud-palette-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lp-flow-card-sub {
    display: block;
    font-size: 0.68rem;
    color: var(--mud-palette-text-secondary);
    margin-top: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* -- Status dot ------------------------------------------------- */
.lp-flow-status {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.lp-fstatus-green { background: #00E5B0; box-shadow: 0 0 6px rgba(0,229,176,0.7); }
.lp-fstatus-amber { background: #FFB74D; box-shadow: 0 0 6px rgba(255,183,77,0.7); }

@keyframes fstatusBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.25; }
}

.lp-fstatus-blink { animation: fstatusBlink 1.4s ease-in-out infinite; }

/* -- Animated pipe ---------------------------------------------- */
.lp-flow-pipe {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 0 8px;
}

/* Chevrons */
.lp-flow-chevrons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    line-height: 1;
}

.lp-chev {
    font-size: 1.8rem;
    color: rgba(27,174,174,0.12);
    display: block;
    width: 26px;
    text-align: center;
    animation: chevPulse 1.8s ease-in-out infinite;
    will-change: color, text-shadow;
    font-family: system-ui, sans-serif;
}

.lp-chev-1 { animation-delay: 0s; }
.lp-chev-2 { animation-delay: 0.3s; }
.lp-chev-3 { animation-delay: 0.6s; }

@keyframes chevPulse {
    0%, 100% {
        color: rgba(27,174,174,0.12);
        text-shadow: none;
    }
    40%, 60% {
        color: rgba(27,174,174,0.95);
        text-shadow: 0 0 14px rgba(27,174,174,0.85), 0 0 28px rgba(27,174,174,0.4);
    }
}

/* Particle track � the glowing line */
.lp-flow-track {
    position: relative;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        to right,
        rgba(27,174,174,0.04),
        rgba(27,174,174,0.5),
        rgba(27,174,174,0.04)
    );
    border-radius: 2px;
    overflow: visible;
}

/* Travelling dot particles */
.lp-fp {
    position: absolute;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1BAEAE;
    box-shadow: 0 0 10px rgba(27,174,174,1), 0 0 4px rgba(27,174,174,0.8);
    transform: translateY(-50%);
    left: -8px;
    animation: particleFlow 2.4s linear infinite;
    will-change: left, opacity;
}

.lp-fp-a { animation-delay: 0s; }
.lp-fp-b { animation-delay: 0.8s; }
.lp-fp-c { animation-delay: 1.6s; }

@keyframes particleFlow {
    0%   { left: -8px;            opacity: 0; }
    6%   {                         opacity: 1; }
    90%  {                         opacity: 1; }
    100% { left: calc(100% + 8px); opacity: 0; }
}

/* -- Center hub ------------------------------------------------- */
.lp-flow-hub {
    position: relative;
    width: 190px;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0 auto;
}

.lp-hub-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(27,174,174,0.35);
    animation: hubRingExpand 3s ease-out infinite;
    will-change: transform, opacity;
}

.lp-hub-ring-1 { width:  84px; height:  84px; animation-delay: 0s; }
.lp-hub-ring-2 { width: 120px; height: 120px; animation-delay: 1s;   border-color: rgba(27,174,174,0.2); }
.lp-hub-ring-3 { width: 168px; height: 168px; animation-delay: 2s;   border-color: rgba(27,174,174,0.09); }

@keyframes hubRingExpand {
    0%   { transform: scale(0.86); opacity: 0.95; }
    65%  { transform: scale(1);    opacity: 0.3; }
    100% { transform: scale(1.08); opacity: 0; }
}

.lp-hub-core {
    position: relative;
    z-index: 2;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: radial-gradient(circle at 42% 38%, rgba(27,174,174,0.22), rgba(27,174,174,0.06));
    border: 2px solid rgba(27,174,174,0.55);
    box-shadow:
        0 0 0 5px rgba(27,174,174,0.06),
        0 0 32px rgba(27,174,174,0.22),
        inset 0 0 16px rgba(27,174,174,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
}

.lp-hub-gear {
    width: 24px;
    height: 24px;
    color: #1BAEAE;
    animation: gearSpin 14s linear infinite;
    will-change: transform;
}

@keyframes gearSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.lp-hub-name {
    font-size: 0.58rem;
    font-weight: 800;
    color: #1BAEAE;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    line-height: 1;
}

.lp-hub-tag {
    font-size: 0.46rem;
    color: rgba(27,174,174,0.55);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1;
}

/* -- Responsive ------------------------------------------------- */
@media (max-width: 900px) {
    .lp-flow-diagram {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .lp-flow-col { gap: 0.75rem; }

    .lp-flow-pipe {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 0.25rem 0;
        gap: 0;
    }

    /* Hide particle line on mobile � use chevrons only */
    .lp-flow-track { display: none; }

    .lp-chev {
        display: inline-block;
        transform: rotate(90deg);
        font-size: 1.5rem;
        width: 22px;
    }

    .lp-flow-hub {
        width: 140px;
        height: 140px;
        margin: 0.5rem auto;
    }

    .lp-hub-ring-1 { width: 64px; height: 64px; }
    .lp-hub-ring-2 { width: 96px; height: 96px; }
    .lp-hub-ring-3 { width: 130px; height: 130px; }
    .lp-hub-core   { width: 60px; height: 60px; }

    .lp-flow-col-out .lp-flow-card:hover { transform: translateX(4px) !important; }
}


/* ================================================================
   LAL-INSPIRED DESIGN: SCROLL ANIMATIONS � PANELS � METRICS
   ================================================================ */

/* -- Scroll-entrance animation ---------------------------------- */
.lp-observe {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.lp-observe.lp-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger grid � container is opaque; children animate in sequence */
.lp-stagger > .lp-feature-card {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.lp-stagger.lp-visible > .lp-feature-card            { opacity: 1; transform: translateY(0); }
.lp-stagger.lp-visible > .lp-feature-card:nth-child(1) { transition-delay:   0ms; }
.lp-stagger.lp-visible > .lp-feature-card:nth-child(2) { transition-delay:  85ms; }
.lp-stagger.lp-visible > .lp-feature-card:nth-child(3) { transition-delay: 170ms; }
.lp-stagger.lp-visible > .lp-feature-card:nth-child(4) { transition-delay: 255ms; }
.lp-stagger.lp-visible > .lp-feature-card:nth-child(5) { transition-delay: 340ms; }
.lp-stagger.lp-visible > .lp-feature-card:nth-child(6) { transition-delay: 425ms; }

/* -- Feature category micro-tag (LAL "Data Generator"-style) ---- */
.lp-feat-tag {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0.15rem 0 0.5rem;
}

.lp-ft-teal   { color: #1BAEAE; }
.lp-ft-blue   { color: #4FC3F7; }
.lp-ft-green  { color: #00E5B0; }
.lp-ft-amber  { color: #FFB74D; }
.lp-ft-purple { color: #9C82E5; }
.lp-ft-red    { color: #FF5252; }

/* -- LAL-inspired dark panel container ------------------------- */
.lp-panel {
    border-radius: 14px;
    border: 1px solid var(--mud-palette-divider, rgba(255,255,255,0.07));
    overflow: hidden;
    box-shadow:
        0 2px 8px  rgba(0,0,0,0.15),
        0 8px 40px rgba(0,0,0,0.22);
}

/* Panel header � dark, LAL simulator-style */
.lp-panel-hdr {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem 2.5rem;
    background: linear-gradient(
        135deg,
        rgba(6, 14, 26, 0.97) 0%,
        rgba(12, 25, 41, 0.95) 100%
    );
    border-bottom: 1px solid rgba(27,174,174,0.2);
}

.lp-panel-overline {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #1BAEAE;
    margin: 0 0 0.55rem;
}

.lp-panel-title {
    font-size: clamp(1.2rem, 2.2vw, 1.65rem);
    font-weight: 800;
    color: #E0EAFF;
    margin: 0 0 0.65rem;
    line-height: 1.2;
}

.lp-panel-sub {
    font-size: 0.875rem;
    color: #8BAABB;
    line-height: 1.65;
    max-width: 500px;
    margin: 0;
}

.lp-panel-hdr-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
    flex-shrink: 0;
    padding-top: 0.2rem;
}

/* Panel badges */
.lp-panel-badge {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.2rem 0.65rem;
    border-radius: 100px;
    white-space: nowrap;
}

.lp-pb-live {
    color: #00E5B0;
    background: rgba(0,229,176,0.1);
    border: 1px solid rgba(0,229,176,0.25);
    animation: fstatusBlink 1.8s ease-in-out infinite;
}

.lp-pb-tag {
    color: #4FC3F7;
    background: rgba(79,195,247,0.08);
    border: 1px solid rgba(79,195,247,0.2);
}

/* -- Panel body: chart (left) + metrics (right) ----------------- */
.lp-panel-body {
    display: grid;
    grid-template-columns: 1fr 268px;
    background: var(--mud-palette-surface, #0C1929);
}

.lp-pq-chart-wrap {
    padding: 1.5rem 1.5rem 1rem;
    border-right: 1px solid var(--mud-palette-divider, rgba(255,255,255,0.07));
}

.lp-pq-chart-label {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mud-palette-text-secondary);
    margin-bottom: 0.3rem;
}

/* -- Metric cells (LAL inspector-panel style) ------------------- */
.lp-pq-metrics {
    display: flex;
    flex-direction: column;
}

.lp-mc {
    flex: 1;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--mud-palette-divider, rgba(255,255,255,0.07));
    border-left: 3px solid transparent;
    transition: background 0.2s ease;
}

.lp-mc:last-child { border-bottom: none; }
.lp-mc:hover      { background: rgba(27,174,174,0.04); }

.lp-mc-teal  { border-left-color: #1BAEAE; }
.lp-mc-green { border-left-color: #00E5B0; }
.lp-mc-amber { border-left-color: #FFB74D; }
.lp-mc-blue  { border-left-color: #4FC3F7; }

.lp-mc-label {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mud-palette-text-secondary);
    margin-bottom: 0.3rem;
}

.lp-mc-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    font-family: 'Fira Code', 'Courier New', monospace;
    color: var(--mud-palette-text-primary);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 0.2rem;
}

.lp-mc-note {
    display: block;
    font-size: 0.65rem;
    color: var(--mud-palette-text-secondary);
    opacity: 0.7;
}

/* -- Panel responsive ------------------------------------------- */
@media (max-width: 960px) {
    .lp-panel-hdr {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    .lp-panel-hdr-right {
        flex-direction: row;
        align-items: center;
    }

    .lp-panel-body {
        grid-template-columns: 1fr;
    }

    .lp-pq-chart-wrap {
        border-right: none;
        border-bottom: 1px solid var(--mud-palette-divider, rgba(255,255,255,0.07));
    }

    .lp-pq-metrics {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .lp-mc {
        flex: 1 1 calc(50% - 1px);
        border-left-width: 0;
        border-top: 3px solid transparent;
    }

    .lp-mc-teal  { border-top-color: #1BAEAE; }
    .lp-mc-green { border-top-color: #00E5B0; }
    .lp-mc-amber { border-top-color: #FFB74D; }
    .lp-mc-blue  { border-top-color: #4FC3F7; }
}

@media (max-width: 480px) {
    .lp-mc { flex: 1 1 100%; }
}


/* ================================================================
   DEVICE TELEMETRY INSPECTOR � LAL Mode Inspector-style
   ================================================================ */

/* -- Two-column grid of inspector cards ------------------------ */
.lp-inspector-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* -- Inspector card -------------------------------------------- */
.lp-insp-card {
    background: var(--mud-palette-surface, #0C1929);
    border: 1px solid var(--mud-palette-divider, rgba(255,255,255,0.07));
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.22s cubic-bezier(0.22,1,0.36,1),
                box-shadow  0.22s cubic-bezier(0.22,1,0.36,1),
                border-color 0.22s ease;
    cursor: default;
}

.lp-insp-card:hover {
    transform: translateY(-4px);
    border-color: rgba(27,174,174,0.3);
    box-shadow: 0 8px 40px rgba(27,174,174,0.12), 0 2px 8px rgba(0,0,0,0.25);
}

/* -- Card header � dark strip (LAL simulator header style) ----- */
.lp-insp-hdr {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(6, 14, 26, 0.9);
    border-bottom: 1px solid rgba(27,174,174,0.18);
    text-align: center;
}

.lp-insp-hdr > div { flex: 1; }

.lp-insp-device {
    display: block;
    font-size: 0.875rem;
    font-weight: 800;
    color: #E0EAFF;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
}

.lp-insp-meta {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #4FC3F7;
    margin-top: 0.2rem;
}

.lp-insp-online {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #00E5B0;
    white-space: nowrap;
    padding-top: 0.1rem;
}

.lp-insp-warn { color: #FFB74D; }

/* -- Section blocks (APPLICATION / POWER DATA / etc.) ---------- */
.lp-insp-section {
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--mud-palette-divider, rgba(255,255,255,0.06));
}

.lp-insp-section:last-child { border-bottom: none; }

.lp-insp-sec-hdr {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

/* Section dots */
.lp-insp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.lp-dot-teal  { background: #1BAEAE; box-shadow: 0 0 6px rgba(27,174,174,0.7); }
.lp-dot-blue  { background: #4FC3F7; box-shadow: 0 0 6px rgba(79,195,247,0.7); }
.lp-dot-amber { background: #FFB74D; box-shadow: 0 0 6px rgba(255,183,77,0.7); }
.lp-dot-green { background: #00E5B0; box-shadow: 0 0 6px rgba(0,229,176,0.7); }
.lp-dot-red   { background: #FF5252; box-shadow: 0 0 6px rgba(255,82,82,0.7); }

.lp-insp-sec-label {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mud-palette-text-secondary);
}

/* -- Metric cells grid (LAL inspector value cells) -------------- */
.lp-insp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.lp-insp-cell {
    background: var(--mud-palette-background-gray, #0A1929);
    border: 1px solid var(--mud-palette-divider, rgba(255,255,255,0.06));
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
    transition: border-color 0.18s, background 0.18s;
}

.lp-insp-card:hover .lp-insp-cell {
    border-color: rgba(27,174,174,0.14);
}

.lp-insp-key {
    display: block;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mud-palette-text-secondary);
    margin-bottom: 0.2rem;
}

.lp-insp-val {
    display: block;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: var(--mud-palette-text-primary);
    line-height: 1.2;
}

.lp-insp-val small {
    font-size: 0.65em;
    font-weight: 500;
    color: var(--mud-palette-text-secondary);
    margin-left: 1px;
}

/* Warning value highlight */
.lp-val-warn { color: #FFB74D !important; }

/* -- Full-width section row (Alert Status) ---------------------- */
.lp-insp-section-full {}

.lp-insp-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.lp-insp-status-badge {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
}

.lp-sb-green {
    background: rgba(0,229,176,0.1);
    color: #00E5B0;
    border: 1px solid rgba(0,229,176,0.2);
}

.lp-sb-amber {
    background: rgba(255,183,77,0.1);
    color: #FFB74D;
    border: 1px solid rgba(255,183,77,0.2);
}

.lp-insp-status-note {
    font-size: 0.65rem;
    color: var(--mud-palette-text-secondary);
    white-space: nowrap;
}

/* -- Responsive ------------------------------------------------- */
@media (max-width: 860px) {
    .lp-inspector-layout { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .lp-insp-grid { grid-template-columns: 1fr; }
    .lp-insp-status-row { flex-direction: column; align-items: flex-start; }
}


/* ================================================================
   DASHBOARD / APP CARD SYSTEM � colored left borders + micro-labels
   (applies to MudCard, MudPaper inside authenticated pages)
   ================================================================ */

.sb-card {
    border-left: 3px solid var(--sb-border, rgba(255,255,255,0.07)) !important;
    transition: transform 0.22s cubic-bezier(0.22,1,0.36,1),
                box-shadow  0.22s,
                border-color 0.2s;
}

.sb-card:hover { transform: translateY(-2px); }

/* Border colors */
.sb-teal   { --sb-border: #1BAEAE; }
.sb-blue   { --sb-border: #4FC3F7; }
.sb-green  { --sb-border: #00E5B0; }
.sb-amber  { --sb-border: #FFB74D; }
.sb-purple { --sb-border: #9C82E5; }
.sb-red    { --sb-border: #FF5252; }

/* Per-color hover glows */
.sb-teal:hover   { box-shadow: -3px 4px 24px rgba(27,174,174,0.18),  0 2px 8px rgba(0,0,0,0.2) !important; }
.sb-blue:hover   { box-shadow: -3px 4px 24px rgba(79,195,247,0.18),  0 2px 8px rgba(0,0,0,0.2) !important; }
.sb-green:hover  { box-shadow: -3px 4px 24px rgba(0,229,176,0.18),   0 2px 8px rgba(0,0,0,0.2) !important; }
.sb-amber:hover  { box-shadow: -3px 4px 24px rgba(255,183,77,0.18),  0 2px 8px rgba(0,0,0,0.2) !important; }
.sb-purple:hover { box-shadow: -3px 4px 24px rgba(156,130,229,0.18), 0 2px 8px rgba(0,0,0,0.2) !important; }
.sb-red:hover    { box-shadow: -3px 4px 24px rgba(255,82,82,0.18),   0 2px 8px rgba(0,0,0,0.2) !important; }

/* Micro-label pill badge */
.sb-micro-label {
    display: inline-block;
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.18rem 0.55rem;
    border-radius: 4px;
    line-height: 1.6;
    margin-bottom: 0.35rem;
}

.sb-ml-teal   { background: rgba(27,174,174,0.12);  color: #1BAEAE; }
.sb-ml-blue   { background: rgba(79,195,247,0.12);  color: #4FC3F7; }
.sb-ml-green  { background: rgba(0,229,176,0.12);   color: #00E5B0; }
.sb-ml-amber  { background: rgba(255,183,77,0.12);  color: #FFB74D; }
.sb-ml-purple { background: rgba(156,130,229,0.12); color: #9C82E5; }
.sb-ml-red    { background: rgba(255,82,82,0.12);   color: #FF5252; }

