    /* Base Styles */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    html {
        --scrollbarBG: rgba(0, 0, 0, 0.8);
        --thumbBG: rgb(55, 88, 249);
    }

    body {
        font-family:Basier circle,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";
        -webkit-font-feature-settings: normal;
        font-feature-settings: normal;
        font-variation-settings: normal;
        -webkit-tap-highlight-color: transparent;
        overflow: hidden;
        background: #1a1a1a;
        color: #fff;
        user-select: none;
        /* Disable browser zoom and navigation gestures */
        touch-action: none;
        -ms-touch-action: none;
        /* Prevent overscroll behavior that can trigger browser navigation */
        overscroll-behavior: none;
        -ms-overscroll-behavior: none;
    }

    /* App Container */
    #app {
        padding-top: 80px;
        width: 100vw;
        height: 100vh;
        position: relative;
        overflow: hidden;
        cursor: grab;
        /* Additional prevention for browser navigation gestures */
        overscroll-behavior: none;
        -ms-overscroll-behavior: none;
        touch-action: none;
        -ms-touch-action: none;
    }

    #app.dragging {
        cursor: grabbing;
    }

    #grid-container {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
    }

    /* Grid Box Styles */
    .image-box {
        position: absolute;
        border: 2px solid #333;
        border-radius: 8px;
        overflow: hidden;
        background: #2a2a2a;
        transition: border-color 0.3s ease;
        will-change: transform;
        container-name: imageBox;
        container-type: inline-size;
    }

    .image-box:hover {
        border-color: #555;
    }

    .image-box.current {
        border-color: #3758F9;
        box-shadow: 0 0 20px rgba(55, 88, 249, 0.3);
        z-index: 10;
    }

    .image-box img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .image-box:hover img {
        transform: scale(1.05);
    }

    .image-box.current img {
        transform: scale(1.1);
    }

    /* Loading States */
    .image-box.loading img {
        opacity: 0.3;
    }

    .loader {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 30px;
        height: 30px;
        border: 3px solid #333;
        border-top: 3px solid #3758F9;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        z-index: 2;
    }

    @keyframes spin {
        0% {
            transform: translate(-50%, -50%) rotate(0deg);
        }

        100% {
            transform: translate(-50%, -50%) rotate(360deg);
        }
    }

    /* Info Label Styles */
    .info-label {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), transparent);
        color: #fff;
        padding: 15px 10px 10px;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        font-size: 11px;
        line-height: 1.3;
        z-index: 3;
    }

    @container imageBox (max-width: 200px) {
        .info-label {
            text-align: center;
        }

        .info-label .btn-preview {
            position: static;
            margin-top: 10px;
            width: 100%;
            text-align: center;
        }
    }

    .image-box.current .info-label {
        transform: translateY(0);
    }

    .info-label .category {
        font-weight: bold;
        color: #3758F9;
        margin-bottom: 4px;
        font-size: 12px;
    }

    .info-label .framework {
        color: #fff;
        margin-bottom: 2px;
    }

    .info-label .library {
        color: #ccc;
        font-size: 12px;
    }

    .btn-preview {
        display: none;
        margin-top: 5px;
        padding: 5px 10px;
        background: #3758F9;
        color: #fff;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 12px;
        position: absolute;
        right: 10px;
        bottom: 10px;
    }

    .image-box.current .btn-preview {
        display: block;
    }

    /* Logo Styles */
    .logo-container {
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 100;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 8px;
        padding: 8px 16px;
        backdrop-filter: blur(10px);
    }

    .logo-container:hover {
        background: rgba(0, 0, 0, 0.8);
    }

    .logo {
        height: 40px;
        width: auto;
    }

    .logo-container:hover .logo {
        transform: scale(1.05);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Controls Styles */
    .controls {
        position: fixed;
        top: 100px;
        right: 20px;
        z-index: 40;
    }

    /* Search Bar Styles - Hidden since we use modal search */
    .search-container {
        display: none;
    }

    .search-input-wrapper {
        display: flex;
        align-items: center;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 12px 16px;
        gap: 8px;
        transition: all 0.3s ease;
    }

    .search-input-wrapper:focus-within {
        background: rgba(0, 0, 0, 0.8);
        border-color: #3758F9;
        box-shadow: 0 0 20px rgba(55, 88, 249, 0.15);
    }

    .search-icon {
        width: 16px;
        height: 16px;
        color: #ccc;
        transition: color 0.3s ease;
    }

    .search-input-wrapper:focus-within .search-icon {
        color: #3758F9;
    }

    #search-input {
        background: transparent;
        border: none;
        outline: none;
        color: #fff;
        font-size: 14px;
        flex: 1;
        font-family: inherit;
    }

    #search-input::placeholder {
        color: #888;
    }

    .clear-search {
        background: none;
        border: none;
        color: #ccc;
        cursor: pointer;
        padding: 2px;
        border-radius: 3px;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .clear-search:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }

    /* Center Search Modal */
    .search-modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(10px);
        z-index: 2000;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 20px;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .search-modal.visible {
        display: flex;
        opacity: 1;
    }

    .search-modal-content {
        width: 100%;
        max-width: 600px;
        background: rgba(20, 20, 20, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
        transform: scale(0.95);
        transition: transform 0.3s ease;
    }

    .search-modal.visible .search-modal-content {
        transform: scale(1);
    }

    .search-modal-input-wrapper {
        display: flex;
        align-items: center;
        padding: 20px 24px;
        gap: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .search-modal-icon {
        width: 20px;
        height: 20px;
        color: #3758F9;
        flex-shrink: 0;
    }

    #search-modal-input {
        background: transparent;
        border: none;
        outline: none;
        color: #fff;
        font-size: 18px;
        flex: 1;
        font-family: inherit;
    }

    #search-modal-input::placeholder {
        color: #666;
    }

    .search-modal-shortcut {
        background: rgba(255, 255, 255, 0.1);
        color: #888;
        padding: 4px 8px;
        border-radius: 6px;
        font-size: 12px;
        font-family: monospace;
        flex-shrink: 0;
    }

    .search-modal-dropdown {
        max-height: 400px;
        overflow-y: auto;
    }

    .search-modal-dropdown .autocomplete-item {
        padding: 16px 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 14px;
    }

    .search-modal-dropdown .autocomplete-item:last-child {
        border-bottom: none;
    }

    .search-modal-dropdown .autocomplete-item:hover,
    .search-modal-dropdown .autocomplete-item.selected {
        background: rgba(55, 88, 249, 0.15);
    }

    .search-modal-dropdown .item-type {
        background: rgba(55, 88, 249, 0.2);
        color: #3758F9;
        padding: 3px 8px;
        border-radius: 6px;
        font-size: 11px;
        margin-right: 12px;
        text-transform: uppercase;
        font-weight: 600;
    }

    .search-modal-dropdown .item-name {
        color: #fff;
        font-weight: 500;
    }

    /* Active Filter Display */
    .active-filter {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%) translateY(100px);
        z-index: 900;
        opacity: 0;
        transition: all 0.3s ease;
    }

    .active-filter.visible {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    .active-filter-content {
        display: flex;
        align-items: center;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(55, 88, 249, 0.3);
        border-radius: 12px;
        padding: 12px 16px;
        gap: 8px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .active-filter .filter-type {
        background: rgba(55, 88, 249, 0.2);
        color: #3758F9;
        padding: 3px 8px;
        border-radius: 6px;
        font-size: 11px;
        text-transform: uppercase;
        font-weight: 600;
    }

    .active-filter .filter-value {
        color: #fff;
        font-size: 14px;
        font-weight: 500;
    }

    .close-filter {
        background: none;
        border: none;
        color: #ccc;
        cursor: pointer;
        padding: 4px;
        border-radius: 4px;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        line-height: 1;
        margin-left: 4px;
    }

    .close-filter:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }

    /* Autocomplete Dropdown */
    .autocomplete-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        margin-top: 4px;
        max-height: 200px;
        overflow-y: auto;
        z-index: 1000;
        display: none;
    }

    .autocomplete-dropdown.visible {
        display: block;
    }

    .autocomplete-item {
        padding: 10px 16px;
        cursor: pointer;
        transition: background 0.2s ease;
        font-size: 13px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .autocomplete-item:last-child {
        border-bottom: none;
    }

    .autocomplete-item:hover,
    .autocomplete-item.selected {
        background: rgba(55, 88, 249, 0.15);
    }

    .autocomplete-item .item-type {
        display: inline-block;
        background: rgba(55, 88, 249, 0.2);
        color: #3758F9;
        padding: 2px 6px;
        border-radius: 4px;
        font-size: 11px;
        margin-right: 8px;
        text-transform: uppercase;
        font-weight: 500;
    }

    .autocomplete-item .item-name {
        color: #fff;
    }

    .autocomplete-item .item-description {
        color: #ccc;
        font-size: 12px;
        margin-left: 8px;
    }

    .no-results {
        padding: 16px;
        text-align: center;
        color: #888;
        font-style: italic;
    }

    .search-results-count {
        position: fixed;
        bottom: 20px;
        left: 20px;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 8px 12px;
        color: #3758F9;
        font-size: 12px;
        z-index: 100;
        display: none;
    }

    .device-mode-switcher, .categories-switcher {
        display: flex;
        background: rgba(0, 0, 0, 0.8);
        border-radius: 8px;
        padding: 8px 8px 9px 8px;
        gap: 4px;
        backdrop-filter: blur(10px);
    }

    .inspiration-icon {
        position: fixed;
        top: 100px;
        right: 414px;
        z-index: 40;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(10px);
        color: #fff;
        border-radius: 8px;
        padding: 8px;
    }

    .inspiration-icon button {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
        border-radius: 6px;
        cursor: pointer;
        padding: 9px;
    }

    .inspiration-icon button:hover {
        background: rgba(255, 255, 255, 0.2);
        color: #fff;
    }

    .inspirations-info {
        position: fixed;
        top: 100px;
        right: 414px;
        z-index: 40;
        width: 540px;
        background: rgba(26, 26, 26, 0.95);
        backdrop-filter: blur(10px);
        color: #fff;
        border-radius: 8px;
        padding: 1rem 1.5rem 1.25rem 1.5rem;
        gap: 4px;
    }

    .inspirations-info h1 {
        font-weight: 700;
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
        max-width: 95%;
    }

    .inspirations-info p {
        font-weight: 500;
        margin-bottom: 1rem;
    }

    .inspirations-info p:last-child {
        margin-bottom: 0;
    }

    .close-info {
        font-size: 1.5rem;
        position: absolute;
        top: 0.5rem;
        right: 1rem;
    }

    .categories-switcher {
        position: fixed;
        top: 100px;
        right: 174px;
        z-index: 40;
        width: 230px;
        color: #fff;
        font-weight: 500;
        padding: 8px;
    }

    .categories-switcher .current-title {
        position: relative;
        padding: 9px 16px;
        border: none;
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        margin: 1px;
        width: 100%;
        text-align: center;
        transition: all 0.3s ease;
    }

    .categories-switcher .current-title:hover {
        background: rgba(255, 255, 255, 0.2);
        color: #fff;
    }

    .categories-switcher .current-title svg {
        position: absolute;
        right: 8px;
        top: 15px;
    }

    .categories-list {
        position: absolute;
        right: 0;
        left: 0;
        top: 0;
        margin-top: 66px;
        max-height: 60vh;
        overflow-y: auto;
        background: rgba(0, 0, 0, 0.9);
        border-radius: 8px;
        padding: 8px;
        gap: 4px;
        backdrop-filter: blur(10px);
        scrollbar-width: thin;
        scrollbar-color: var(--thumbBG) var(--scrollbarBG);
    }

    .categories-list::-webkit-scrollbar {
        width: 12px;
    }

    .categories-list::-webkit-scrollbar-track {
        background: var(--scrollbarBG);
    }

    .categories-list::-webkit-scrollbar-thumb {
        background-color: var(--thumbBG);
        border-radius: 6px;
        border: 3px solid var(--scrollbarBG);
    }

    .categories-list a {
        display: block;
        padding: .375rem 1rem;
    }

    .categories-list a:hover {
        background: rgb(55, 88, 249);
        color: #fff;
        border-radius: 8px;
    }

    .cat-hidden {
        display: none !important;
    }

    .device-btn {
        width: 40px;
        height: 40px;
        border: none;
        background: rgba(255, 255, 255, 0.1);
        color: #ccc;
        border-radius: 6px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .device-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        color: #fff;
    }

    .device-btn.active {
        background: #3758F9;
        color: #fff;
    }

    .device-btn svg {
        transition: transform 0.2s ease;
    }

    .device-btn:hover svg {
        transform: scale(1.1);
    }

    /* Zoom Controls Container - Bottom Right */
    .zoom-controls-container {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 100;
    }

    /* Zoom Controls */
    .zoom-controls {
        display: flex;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.8);
        border-radius: 8px;
        padding: 8px;
        gap: 4px;
        backdrop-filter: blur(10px);
    }

    .zoom-btn {
        width: 40px;
        height: 40px;
        border: none;
        background: rgba(255, 255, 255, 0.1);
        color: #ccc;
        border-radius: 6px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        font-size: 18px;
        font-weight: bold;
    }

    .zoom-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        color: #fff;
    }

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

    .zoom-btn:disabled:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #ccc;
    }

    .zoom-level {
        font-size: 11px;
        color: #888;
        text-align: center;
        padding: 4px 0;
        margin: 2px 0;
        min-width: 40px;
        cursor: pointer;
        border-radius: 4px;
        transition: all 0.3s ease;
    }

    .zoom-level:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #ccc;
    }

    /* Loading Overlay */
    .loading-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(5px);
        z-index: 2000;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 1;
        transition: opacity 0.3s ease;
    }

    .loading-overlay.hiding {
        opacity: 0;
        pointer-events: none;
    }

    .loading-container {
        position: relative;
        color: #ccc;
        font-size: 18px;
        gap: 24px;
        text-align: center;
        max-width: 90vw;
        padding: 40px;
        background: rgba(26, 26, 26, 0.95);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    }

    .loading-spinner {
        width: 60px;
        height: 60px;
        border: 4px solid rgba(255, 255, 255, 0.1);
        border-top: 4px solid #3758F9;
        border-radius: 50%;
        animation: loading-spin 1s linear infinite;
        margin: 0 auto 1.5rem auto;
    }

    @keyframes loading-spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

    .loading-text {
        font-size: 20px;
        font-weight: 500;
        color: #fff;
        margin-bottom: 8px;
    }

    .loading-subtitle {
        font-size: 14px;
        color: #888;
        margin-bottom: 16px;
    }

    .loading-shortcuts {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .shortcuts-title {
        font-size: 16px;
        font-weight: 600;
        color: #3758F9;
        margin-bottom: 8px;
    }

    .shortcuts-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px 24px;
        font-size: 13px;
        line-height: 1.4;
    }

    .shortcut-item {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #ccc;
    }

    .shortcut-key {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 4px;
        padding: 2px 6px;
        font-family: monospace;
        font-size: 11px;
        color: #fff;
        min-width: 16px;
        text-align: center;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }

    .shortcut-description {
        color: #aaa;
    }

    @media (max-width: 768px) {
        .loading-container {
            padding: 32px 24px;
            gap: 20px;
        }

        .shortcuts-grid {
            grid-template-columns: 1fr;
            gap: 6px;
            text-align: left;
        }

        .loading-text {
            font-size: 18px;
        }
    }

    /* Preview Modal Styles */
    .preview-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.9);
        z-index: 1000;
        display: none;
        opacity: 0;
        cursor: auto;
    }

    .preview-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .close-preview {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        border: none;
        background: rgba(0, 0, 0, 0.5);
        color: #fff;
        font-size: 24px;
        border-radius: 6%;
        cursor: pointer;
        z-index: 1001;
        transition: background 0.3s;
    }

    .close-preview:hover {
        color: #fff;
        background: #3758F9;
    }

    /* Component Information Panel */
    .component-info-panel {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 20px;
        min-width: 280px;
        z-index: 1001;
        display: flex;
        flex-direction: row;
        gap: 25px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        align-items: center;
    }

    .component-info-content {
        display: flex;
        flex-direction: row;
        gap: 25px;
        align-items: center;
    }

    .component-category,
    .component-library,
    .component-frameworks {
        display: flex;
        flex-direction: column;
        gap: 8px;
        text-align: left;
    }

    .info-label-text {
        color: #888;
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.8px;
    }

    .info-value {
        color: #fff;
        font-size: 14px;
        font-weight: 500;
        line-height: 3;
        text-overflow: ellipsis;
        overflow: hidden;
        #fff-space: nowrap;
    }

    .component-category .info-value {
        color: #3758F9;
        font-weight: 600;
        font-size: 15px;
    }

    .component-library .info-value {
        color: #00ff88;
        font-weight: 600;
    }

    .component-frameworks .info-value {
        color: #ccc;
        font-size: 13px;
    }

    /* Enhanced Editor Actions Styles */
    .editor-actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
        min-width: 240px;
    }

    .editor-variants-list {
        display: flex;
        flex-direction: row;
        gap: 3px;
        position: relative;
        height: 44px;
        align-items: center;
    }

    .btn-open-editor {
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.85) 100%);
        border: 1px solid rgba(255, 255, 255, 0.12);
        padding: 8px;
        font-size: 12px;
        width: 40px;
        height: 40px;
        border-radius: 12px;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
        position: relative;
        backdrop-filter: blur(15px);
        flex-shrink: 0;
        cursor: pointer;
        color: #fff;
    }

    .btn-open-editor:hover {
        width: 140px;
        padding: 8px 12px;
        justify-content: flex-start;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.95) 100%);
        border-color: rgba(255, 255, 255, 0.25);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(20px);
        z-index: 10;
    }

    .framework-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 18px;
        height: 18px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        flex-shrink: 0;
        margin-left: 2px;
    }

    .framework-icon svg {
        width: 100%;
        height: auto;
    }

    .btn-content {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        transition: all 0.3s ease;
    }

    .btn-text {
        font-weight: 600;
        font-size: 12px;
        line-height: 1.2;
        #fff-space: nowrap;
        opacity: 0;
        width: 0;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        letter-spacing: 0.02em;
        margin-left: 0;
    }

    .btn-open-editor:hover .btn-text {
        opacity: 1;
        width: auto;
        margin-left: 6px;
    }

    .btn-open-editor:hover .framework-icon {
        transform: scale(1.05);
    }

    /* Hover group effect for accordion */
    .editor-variants-list:hover .btn-open-editor:not(:hover) {
        transform: scale(0.96);
        opacity: 0.7;
    }

    /* Framework-specific button styles - more subtle */
    .btn-open-editor.framework-tailwind {
        background: linear-gradient(135deg, rgba(14, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.9) 100%);
        border-color: rgba(6, 182, 212, 0.15);
    }

    .btn-open-editor.framework-tailwind:hover {
        background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(51, 65, 85, 0.95) 100%);
        box-shadow: 0 8px 25px rgba(6, 182, 212, 0.2);
        border-color: rgba(6, 182, 212, 0.3);
    }

    .btn-open-editor.framework-tailwind .framework-icon {
        color: #38bdf8;
    }

    .btn-open-editor.framework-bootstrap {
        background: linear-gradient(135deg, rgba(26, 22, 37, 0.8) 0%, rgba(45, 27, 61, 0.9) 100%);
        border-color: rgba(121, 82, 179, 0.15);
    }

    .btn-open-editor.framework-bootstrap:hover {
        background: linear-gradient(135deg, rgba(45, 27, 61, 0.9) 0%, rgba(65, 41, 81, 0.95) 100%);
        box-shadow: 0 8px 25px rgba(121, 82, 179, 0.2);
        border-color: rgba(121, 82, 179, 0.3);
    }

    .btn-open-editor.framework-bootstrap .framework-icon {
        color: #a855f7;
    }

    .btn-open-editor.framework-bulma {
        background: linear-gradient(135deg, rgba(15, 27, 26, 0.8) 0%, rgba(26, 47, 43, 0.9) 100%);
        border-color: rgba(0, 209, 178, 0.15);
    }

    .btn-open-editor.framework-bulma:hover {
        background: linear-gradient(135deg, rgba(26, 47, 43, 0.9) 0%, rgba(42, 74, 66, 0.95) 100%);
        box-shadow: 0 8px 25px rgba(0, 209, 178, 0.2);
        border-color: rgba(0, 209, 178, 0.3);
    }

    .btn-open-editor.framework-bulma .framework-icon {
        color: #10d9c5;
    }

    .btn-open-editor.framework-material-ui {
        background: linear-gradient(135deg, rgba(13, 26, 42, 0.8) 0%, rgba(27, 45, 59, 0.9) 100%);
        border-color: rgba(33, 150, 243, 0.15);
    }

    .btn-open-editor.framework-material-ui:hover {
        background: linear-gradient(135deg, rgba(27, 45, 59, 0.9) 0%, rgba(45, 68, 85, 0.95) 100%);
        box-shadow: 0 8px 25px rgba(33, 150, 243, 0.2);
        border-color: rgba(33, 150, 243, 0.3);
    }

    .btn-open-editor.framework-material-ui .framework-icon {
        color: #42a5f5;
    }

    .btn-open-editor.framework-shadcn {
        background: linear-gradient(135deg, rgba(10, 10, 10, 0.8) 0%, rgba(26, 26, 26, 0.9) 100%);
        border-color: rgba(161, 161, 170, 0.15);
    }

    .btn-open-editor.framework-shadcn:hover {
        background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(42, 42, 42, 0.95) 100%);
        box-shadow: 0 8px 25px rgba(24, 24, 27, 0.4);
        border-color: rgba(161, 161, 170, 0.3);
    }

    .btn-open-editor.framework-shadcn .framework-icon {
        color: #e4e4e7;
    }

    /* Enhanced focus states for accessibility */
    .btn-open-editor:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(55, 88, 249, 0.3);
    }

    /* Loading states */
    .btn-open-editor.loading {
        pointer-events: none;
        position: relative;
    }

    .btn-open-editor.loading::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 20px;
        height: 20px;
        margin: -10px 0 0 -10px;
        border: 2px solid rgba(255, 255, 255, 0.2);
        border-top: 2px solid #fff;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        z-index: 10;
    }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

    .btn-open-editor.loading .btn-text,
    .btn-open-editor.loading .framework-icon {
        opacity: 0.3;
    }

    /* Stagger animation for buttons */
    .editor-variants-list .btn-open-editor:nth-child(1) {
        animation-delay: 0s;
    }

    .editor-variants-list .btn-open-editor:nth-child(2) {
        animation-delay: 0.1s;
    }

    .editor-variants-list .btn-open-editor:nth-child(3) {
        animation-delay: 0.2s;
    }

    .editor-variants-list .btn-open-editor:nth-child(4) {
        animation-delay: 0.3s;
    }

    .editor-variants-list .btn-open-editor:nth-child(5) {
        animation-delay: 0.4s;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

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

    .editor-variants-list .btn-open-editor {
        animation: fadeInUp 0.3s ease forwards;
    }

    .device-switcher {
        position: absolute;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 10px;
        background: rgba(0, 0, 0, 0.5);
        padding: 10px;
        border-radius: 8px;
        z-index: 1001;
    }

    .device-switcher button {
        padding: 8px 16px;
        border: none;
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        transition: all 0.3s;
    }

    .device-switcher button.active {
        background: #3758F9;
        color: #fff;
    }

    .device-frame {
        position: relative;
        background: #222;
        border-radius: 8px;
        padding: 20px;
        transition: all 0.5s ease;
    }

    .device-frame.desktop {
        width: 90vw;
        height: auto;
        max-height: 98%;
    }

    .device-frame.tablet {
        width: 768px;
        height: auto;
        max-width: 100%;
        max-height: 98%;
    }

    .device-frame.mobile {
        width: 375px;
        height: auto;
        max-height: 98%;
    }

    .device-screen {
        width: 100%;
        height: auto;
        overflow: auto;
        background: #fff;
        border-radius: 4px;
        overflow: auto;
        max-height: 100%;
    }

    .device-content {
        width: 100%;
        height: auto;
        overflow: auto;
        position: relative;
    }

    .device-content img {
        width: 100%;
        height: auto;
        display: block;
        transition: opacity 0.3s ease;
    }

    .device-content img.loading {
        opacity: 0;
    }

    .preview-loader {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 40px;
        height: 40px;
        border: 4px solid #333;
        border-top: 4px solid #3758F9;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        z-index: 2;
    }

    @media (max-width: 980px) {
        .inspiration-icon, .inspirations-info {
            display: none;
        }
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .logo-container {
            top: 10px;
            left: 10px;
        }

        .logo {
            height: 32px;
        }

        .controls {
            top: 110px;
            right: 10px;
        }

        .zoom-controls-container {
            bottom: 10px;
            right: 10px;
        }

        .device-mode-switcher, .device-mode-switcher {
            padding: 6px;
            gap: 2px;
        }

        .categories-switcher {
            display: none; /* temporary */
            top: 110px;
            right: 140px;
        }

        .current-title {
            padding: 5px 16px !important;
            margin: 0 !important;
        }

        .categories-switcher .current-title svg {
            top: 13px;
        }

        .device-btn {
            width: 36px;
            height: 36px;
        }

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

        .device-frame.tablet,
        .device-frame.mobile {
            width: 90vw;
            height: 70vh;
        }

        /* Mobile Zoom Controls */
        .zoom-controls {
            padding: 6px;
            gap: 3px;
            border-radius: 6px;
        }

        .zoom-btn {
            width: 36px;
            height: 36px;
            border-radius: 4px;
            font-size: 16px;
        }

        .zoom-level {
            font-size: 10px;
            padding: 3px 0;
            margin: 1px 0;
        }
    }
