/* ==========================================================================
   AI Build Animation Styles (TrendTüccar)
   All classes and IDs prefixed with lb- / lbAnim
   ========================================================================== */

:root {
    --lb-brand: #ff0087;
    --lb-accent-blue: #38a8ff;
    --lb-success: #34d399;
    --lb-panel: #12121c;
    --lb-panel-2: #1a1a29;
    --lb-line: #28283f;
    --lb-text: #ececf6;
    --lb-muted: #8f8fa9;
    --lb-sk-bg: #f6f7fb;
}

/* Tab Dot (Removed) */
.lb-tab-dot {
    display: none !important;
}

/* Chat Build Cards */
.lb-build-card {
    background: #1a1a29;
    border: 1px solid #28283f;
    border-radius: 14px;
    padding: 16px 18px;
    margin: 12px 0 6px 0;
    max-width: 400px;
    width: 100%;
    color: #ececf6;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    font-family: 'Inter', system-ui, sans-serif;
    animation: lbCardFadeIn 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.lb-build-card-compact {
    background: #1a1a29;
    border: 1px solid #28283f;
    border-radius: 12px;
    padding: 12px 16px;
    margin: 10px 0 6px 0;
    max-width: 360px;
    width: 100%;
    color: #ececf6;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    font-family: 'Inter', system-ui, sans-serif;
    animation: lbCardFadeIn 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lbCardFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.lb-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 700;
    color: #ececf6;
    margin-bottom: 14px;
}

.lb-build-card-compact .lb-card-header {
    margin-bottom: 0;
}

.lb-spinner-icon {
    width: 18px;
    height: 18px;
    border: 2.2px solid #28283f;
    border-top-color: #ff0087;
    border-right-color: #38a8ff;
    border-radius: 50%;
    animation: lbSpin 0.8s linear infinite;
    flex-shrink: 0;
}

.lb-check-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #34d399;
    color: #04130c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    flex-shrink: 0;
}

@keyframes lbSpin {
    to { transform: rotate(360deg); }
}

.lb-steps-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 4px;
    border-top: 1px solid #28283f;
}

.lb-step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    font-weight: 500;
    color: #8f8fa9;
    transition: color 300ms ease;
}

.lb-step-item.lb-step-active {
    color: #ececf6;
    font-weight: 600;
}

.lb-step-item.lb-step-done {
    color: #34d399;
    font-weight: 600;
}

.lb-step-ring {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid #28283f;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 300ms ease;
}

.lb-step-active .lb-step-ring {
    border-color: #ff0087;
    border-top-color: transparent;
    animation: lbSpin 0.7s linear infinite;
}

.lb-step-done .lb-step-ring {
    background: #34d399;
    border-color: #34d399;
    color: #04130c;
    font-size: 9px;
    font-weight: 900;
    animation: none;
}

/* Premium Animated Rotating Conic-Gradient Border */
.lb-glow-container {
    position: absolute;
    inset: 0;
    border-radius: 0 !important;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 600ms ease;
    overflow: hidden;
}

.lb-glow-container.lb-active {
    opacity: 1;
}

/* Crisp 3px Rotating Gradient Border Line (Masked Center) */
.lb-glow-border {
    position: absolute;
    inset: 0;
    border-radius: 0 !important;
    padding: 3px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(255, 0, 135, 0.35);
}

.lb-glow-border::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent 0deg, #ff0087 70deg, #38a8ff 160deg, #34d399 250deg, #a855f7 320deg, transparent 360deg);
    animation: lbSpinRotate 2.5s linear infinite;
}

/* Soft Inner/Outer Blur Glow Ring */
.lb-glow-blur {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 6px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    filter: blur(10px);
    opacity: 0.85;
    overflow: hidden;
}

.lb-glow-blur::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent 0deg, #ff0087 70deg, #38a8ff 160deg, #34d399 250deg, #a855f7 320deg, transparent 360deg);
    animation: lbSpinRotate 2.5s linear infinite;
}

@keyframes lbSpinRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Preview Overlay (Mode A Skeleton) */
.lb-preview-overlay {
    position: absolute;
    inset: 0;
    z-index: 80;
    background: #f6f7fb;
    display: flex;
    flex-direction: column;
    border-radius: 0 !important;
    overflow: hidden;
    opacity: 0;
    transition: opacity 600ms ease;
    pointer-events: none;
}

.lb-preview-overlay.lb-visible {
    opacity: 1;
}

.lb-fake-browser-bar {
    height: 38px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.lb-browser-dots {
    display: flex;
    gap: 6px;
}

.lb-browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.lb-browser-dot.lb-red { background: #ff5f56; }
.lb-browser-dot.lb-yellow { background: #ffbd2e; }
.lb-browser-dot.lb-green { background: #27c93f; }

.lb-url-pill {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 4px 12px;
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 320px;
    width: 100%;
}

.lb-skeleton-body {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    background: #f8fafc;
}

.lb-skeleton-body::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Skeleton Blocks & Shimmer */
.lb-sk-block {
    position: relative;
    background: #e3e5f0;
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px) scale(0.98);
    transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1), opacity 500ms ease, box-shadow 300ms ease;
}

.lb-sk-block.lb-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.lb-sk-block::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, #e3e5f0 20%, #f5f6fb 50%, #e3e5f0 80%);
    background-size: 300% 100%;
    animation: lbShimmer 4s linear infinite;
    z-index: 1;
}

.lb-sk-block::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 900ms ease;
    z-index: 2;
}

@keyframes lbShimmer {
    0% { background-position: 250% 0; }
    100% { background-position: -250% 0; }
}

/* Evolved Skeleton States (Neutral Grey Shimmer - No Pink) */
.lb-sk-evolved .lb-sk-button::after,
.lb-sk-evolved .lb-sk-hero-image::after {
    opacity: 0 !important;
}

/* Real Web Page Skeleton Layout Structure */
.lb-sk-building-tag {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 3px 10px;
    border-radius: 12px;
}

.lb-sk-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
    animation: lbDotPulse 1.2s infinite ease-in-out;
}

.lb-sk-navbar-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: #ffffff !important;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    min-height: 48px;
}

.lb-sk-logo-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lb-sk-logo-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: #fdf2f8;
    border: 1px solid #fbcfe8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-sk-logo-text {
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.lb-sk-nav-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

.lb-sk-nav-item {
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: color 0.15s ease;
}

.lb-sk-nav-item.active,
.lb-sk-nav-item:hover {
    color: #0f172a;
    font-weight: 700;
}

.lb-sk-nav-cta {
    padding: 6px 14px;
    border-radius: 20px;
    background: #0f172a;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
}

.lb-sk-hero-section {
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 6px 0;
}

.lb-sk-hero-left {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lb-sk-tag-pill { width: 90px; height: 16px; border-radius: 10px; background: #e3e5f0; }
.lb-sk-h1-line1 { width: 92%; height: 22px; border-radius: 6px; background: #cbd5e1; }
.lb-sk-h1-line2 { width: 68%; height: 22px; border-radius: 6px; background: #cbd5e1; }

.lb-sk-p-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 4px 0;
    width: 100%;
}

.lb-sk-p-line1 { width: 96%; height: 10px; border-radius: 4px; background: #cbd5e1; }
.lb-sk-p-line2 { width: 88%; height: 10px; border-radius: 4px; background: #cbd5e1; }
.lb-sk-p-line3 { width: 75%; height: 10px; border-radius: 4px; background: #e2e8f0; }
.lb-sk-p-line4 { width: 50%; height: 10px; border-radius: 4px; background: #e2e8f0; }

.lb-sk-btn-row {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.lb-sk-btn-primary { width: 110px; height: 34px; border-radius: 17px; background: #cbd5e1; }
.lb-sk-btn-secondary { width: 90px; height: 34px; border-radius: 17px; background: #e2e8f0; }

.lb-sk-trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.lb-sk-avatars {
    display: flex;
    align-items: center;
}

.lb-sk-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #cbd5e1;
    border: 2px solid #ffffff;
    margin-left: -6px;
}
.lb-sk-avatar:first-child { margin-left: 0; }

.lb-sk-trust-text {
    width: 100px;
    height: 10px;
    border-radius: 3px;
    background: #cbd5e1;
}

.lb-sk-hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
}

.lb-sk-banner-card {
    width: 100%;
    height: 170px;
    border-radius: 14px;
    background: #ffffff !important;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    gap: 10px;
}

.lb-sk-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.65;
}

.lb-sk-hero-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 80%;
}

.lb-sk-hero-card-line1 { width: 80%; height: 8px; border-radius: 3px; background: #cbd5e1; }
.lb-sk-hero-card-line2 { width: 55%; height: 8px; border-radius: 3px; background: #e2e8f0; }

.lb-sk-floating-stat {
    position: absolute;
    bottom: -10px;
    left: -10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 6px 12px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
}

.lb-sk-stat-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; }
.lb-sk-stat-line { width: 60px; height: 8px; border-radius: 3px; background: #cbd5e1; }

/* Canvas Top Bar Responsive & Container Queries */
.ai-canvas-panel {
    container-type: inline-size;
    container-name: canvaspanel;
}

.canvas-top-bar {
    position: relative;
    height: auto;
    min-height: 44px;
    background: #ffffff;
    border-bottom: 1px solid #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    flex-shrink: 0;
    gap: 8px 12px;
    box-sizing: border-box;
    z-index: 10;
}

.canvas-domain-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    flex: 1 1 auto;
    z-index: 1;
}

/* Full Domain Display (NO OVERLAPPING, RESPONSIVE LAYOUT) */
.canvas-domain-pill {
    position: relative;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 11.5px;
    font-weight: 600;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    max-width: 100%;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
    z-index: 1;
}

.canvas-domain-pill span,
#canvas-domain-text {
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: normal !important;
}

.canvas-top-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    z-index: 2;
}

.viewport-switcher {
    flex-shrink: 0;
    z-index: 2;
}

/* Responsive Single-Row Layout when Preview Panel / Screen is Narrow */
@container canvaspanel (max-width: 780px) {
    .canvas-top-bar {
        flex-wrap: nowrap !important;
        padding: 4px 8px !important;
        gap: 6px !important;
        min-height: 38px !important;
        height: 38px !important;
    }

    .canvas-domain-wrapper {
        order: 1 !important;
        width: auto !important;
        flex: 0 1 auto !important;
        display: flex !important;
        justify-content: flex-start !important;
        margin-bottom: 0 !important;
        min-width: 0 !important;
    }

    .viewport-switcher {
        display: none !important;
    }

    .canvas-top-controls {
        order: 2 !important;
        margin-left: auto !important;
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        flex-shrink: 0 !important;
    }

    .canvas-domain-pill {
        max-width: 130px !important;
        padding: 3px 8px !important;
        font-size: 10.5px !important;
    }
}

@media (max-width: 820px) {
    .canvas-top-bar {
        flex-wrap: nowrap !important;
        padding: 4px 8px !important;
        gap: 6px !important;
        min-height: 38px !important;
        height: 38px !important;
    }

    .canvas-domain-wrapper {
        order: 1 !important;
        width: auto !important;
        flex: 0 1 auto !important;
        display: flex !important;
        justify-content: flex-start !important;
        margin-bottom: 0 !important;
        min-width: 0 !important;
    }

    .viewport-switcher {
        display: none !important;
    }

    .canvas-top-controls {
        order: 2 !important;
        margin-left: auto !important;
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        flex-shrink: 0 !important;
    }

    .canvas-domain-pill {
        max-width: 130px !important;
        padding: 3px 8px !important;
        font-size: 10.5px !important;
    }
}

/* Metrics Counter Bar Wireframe */
.lb-sk-metrics-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    background: #ffffff !important;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
}

.lb-sk-metric-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    text-align: center;
}

.lb-sk-m-val {
    width: 50px;
    height: 16px;
    border-radius: 4px;
    background: #cbd5e1;
}

.lb-sk-m-lbl {
    width: 75px;
    height: 9px;
    border-radius: 3px;
    background: #e2e8f0;
}

/* Feature Cards Grid (3 side-by-side wireframe cards) */
.lb-sk-cards-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.lb-sk-feature-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 165px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.lb-sk-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lb-sk-card-icon-badge {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lb-icon-emerald { background: #ecfdf5; border: 1px solid #a7f3d0; }
.lb-icon-blue { background: #eff6ff; border: 1px solid #bfdbfe; }
.lb-icon-pink { background: #fdf2f8; border: 1px solid #fbcfe8; }

.lb-sk-card-title-pill {
    width: 70px;
    height: 12px;
    border-radius: 4px;
    background: #cbd5e1;
}

.lb-sk-card-chip {
    width: 90px;
    height: 14px;
    border-radius: 6px;
    background: #f1f5f9;
}

.lb-chip-emerald { background: #dcfce7; }
.lb-chip-blue { background: #dbeafe; }
.lb-chip-pink { background: #fce7f3; }

.lb-sk-card-check-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 2px;
}

.lb-sk-check-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lb-sk-check-icon {
    font-size: 11px;
    font-weight: 900;
    color: #10b981;
}

.lb-sk-check-text1 { width: 85%; height: 8px; border-radius: 3px; background: #cbd5e1; }
.lb-sk-check-text2 { width: 65%; height: 8px; border-radius: 3px; background: #cbd5e1; }

.lb-sk-card-link-pill {
    width: 75px;
    height: 10px;
    border-radius: 4px;
    background: #e2e8f0;
    margin-top: auto;
}

/* Bottom 2-Column Split Section (NOT 3 stacked full-width boxes!) */
.lb-sk-bottom-split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.lb-sk-testimonial-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lb-sk-stars-row {
    display: flex;
    gap: 4px;
    align-items: center;
}

.lb-sk-quote-line1 { width: 92%; height: 10px; border-radius: 3px; background: #cbd5e1; }
.lb-sk-quote-line2 { width: 70%; height: 10px; border-radius: 3px; background: #cbd5e1; }

.lb-sk-author-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.lb-sk-author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #cbd5e1;
}

.lb-sk-author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lb-sk-author-name { width: 80px; height: 10px; border-radius: 3px; background: #cbd5e1; }
.lb-sk-author-role { width: 55px; height: 8px; border-radius: 3px; background: #e2e8f0; }

.lb-sk-cta-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

.lb-sk-cta-h { width: 75%; height: 14px; border-radius: 4px; background: #cbd5e1; }
.lb-sk-cta-p { width: 90%; height: 10px; border-radius: 3px; background: #e2e8f0; }
.lb-sk-cta-btn { width: 95px; height: 28px; border-radius: 14px; background: #cbd5e1; margin-top: 4px; }

.lb-sk-footer-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #ffffff !important;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-top: auto;
}

.lb-sk-footer-copy { width: 140px; height: 10px; border-radius: 4px; background: #cbd5e1; }

.lb-sk-footer-links {
    display: flex;
    gap: 14px;
}

.lb-sk-foot-link { width: 48px; height: 9px; border-radius: 3px; background: #cbd5e1; }

.lb-sk-footer-socials {
    display: flex;
    gap: 8px;
}

.lb-sk-social-dot { width: 14px; height: 14px; border-radius: 50%; background: #cbd5e1; }



/* AI Cursor Overlay (Icon ONLY - No Text Label) */
.lb-cursor-overlay {
    position: absolute;
    z-index: 120;
    pointer-events: none;
    top: 0;
    left: 0;
    transform: translate3d(0, 0, 0);
    transition: transform 900ms cubic-bezier(0.5, 0, 0.2, 1), opacity 300ms ease;
    opacity: 0;
}

.lb-cursor-overlay.lb-active {
    opacity: 1;
}

.lb-cursor-body {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-cursor-svg {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 2px 8px rgba(255, 0, 135, 0.6));
}

/* Target Element Ring (Mode B Edit) */
.lb-edit-ring {
    position: absolute;
    z-index: 110;
    pointer-events: none;
    border: 2px solid #ff0087;
    border-radius: 6px;
    box-shadow: 0 0 0 2px #ff0087, 0 0 20px rgba(255, 0, 135, 0.55);
    transition: all 400ms ease;
    opacity: 0;
}

.lb-edit-ring.lb-active {
    opacity: 1;
}

@property --lbRoamAngle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes lbRoamRotateAngle {
    0% { --lbRoamAngle: 0deg; }
    100% { --lbRoamAngle: 360deg; }
}

/* Skeleton Roaming Laser Frame (Zero Gap, Zero Fill Inside Box!) */
.lb-sk-roaming-frame {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 105;
    pointer-events: none;
    opacity: 0;
    background: transparent !important;
    transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1),
                width 600ms cubic-bezier(0.16, 1, 0.3, 1),
                height 600ms cubic-bezier(0.16, 1, 0.3, 1),
                border-radius 600ms cubic-bezier(0.16, 1, 0.3, 1),
                opacity 300ms ease;
    overflow: visible;
    box-sizing: border-box;
    will-change: transform, width, height, border-radius;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Subtle, Elegant Outer Glow (Snug against box, soft blur, 0.35 opacity) */
.lb-sk-roaming-glow {
    position: absolute;
    inset: -2px;
    padding: 3px;
    border-radius: inherit;
    background: conic-gradient(from var(--lbRoamAngle, 0deg), #ff0087 0%, #ff0087 25%, #38a8ff 50%, #34d399 75%, #ff0087 100%);
    filter: blur(5px);
    opacity: 0.35;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 1;
    pointer-events: none;
    box-sizing: border-box;
    animation: lbRoamRotateAngle 1.6s linear infinite;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Crisp Solid Perimeter Border Line - Fits EXACTLY on Box Edge with ZERO GAP and CLEAR DYNAMIC ROTATION */
.lb-sk-roaming-border {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2.2px;
    background: conic-gradient(from var(--lbRoamAngle, 0deg), #ff0087 0%, #ff0087 20%, #38a8ff 45%, #34d399 70%, #ff0087 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 2;
    pointer-events: none;
    box-sizing: border-box;
    animation: lbRoamRotateAngle 1.6s linear infinite;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.lb-sk-highlight {
    transition: box-shadow 300ms ease;
}

/* Finish Ready Badge */
.lb-ready-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 130;
    background: #34d399;
    color: #04130c;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(52, 211, 153, 0.4);
    animation: lbPopIn 350ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: opacity 500ms ease;
    pointer-events: none;
}

@keyframes lbPopIn {
    0% { opacity: 0; transform: scale(0.6); }
    100% { opacity: 1; transform: scale(1); }
}

/* Test Buttons Bar (Hidden for production) */
.lb-test-buttons-bar {
    display: none !important;
}

.lb-test-btn {
    background: #1a1a29;
    color: #ececf6;
    border: 1px solid #28283f;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 150ms ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lb-test-btn:hover:not(:disabled) {
    background: #ff0087;
    color: #ffffff;
    border-color: #ff0087;
}

.lb-test-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Responsive & Reduced Motion */
@media (max-width: 640px) {
    .lb-sk-hero-section { flex-direction: column; align-items: stretch; }
    .lb-sk-hero-right { display: none; }
    .lb-sk-cards-section { grid-template-columns: 1fr; }
    .lb-sk-nav-links { display: none; }
    .lb-sk-building-tag span:last-child { display: none; }
    .lb-build-card { max-width: 100%; }
    .lb-test-buttons-bar { bottom: 10px; right: 10px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    .lb-glow-border::before, .lb-glow-blur::before, .lb-scan-line, .lb-sk-block::before, .lb-tab-dot.lb-building, .lb-spinner-icon, .lb-pulse-blue-dot {
        animation: none !important;
    }
    .lb-sk-block, .lb-cursor-overlay, .lb-edit-ring, .lb-pulse-dots-layer {
        transition: none !important;
    }
}

/* ==========================================================================
   Canvas Dot Grid Preview Overlay (INSIDE Preview Area)
   ========================================================================== */

.lb-grid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 500; /* Above skeleton overlay (z-index: 80) & real preview, below AI cursor (900) & ready badge (1000) */
    opacity: 0;
    transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.lb-grid.lb-grid-visible.lb-visible-mode-a {
    opacity: 1;
}

.lb-grid.lb-grid-visible.lb-visible-mode-b {
    opacity: 0.45;
}

/* Mobile Hardware Acceleration & Layer Optimization */
.lb-grid,
.lb-preview-overlay,
.lb-cursor-overlay,
.lb-sk-block::before {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: opacity;
}



